21 Nov 2023

How to install VueJS, Vuex in Laravel 8 with its dependencies library

 In this post, you will be learning how to install or Set up Vue JS, Vuex, Saas, Vue-loader and its dependencies libraries in Laravel 8.

Step 1: Install Laravel 8 as follows:

$ composer create-project --prefer-dist laravel/laravel laravelvue "8.0.*"

Step 2: Install Vue with Laravel UI Package as follows:

$ composer require laravel/ui
$ php artisan ui vue --auth

Step 3: After ui vue auth successfully installed. Let's run the command for setup node modules as follows:

$ npm install

Step 4: Let's Install Vue as follows:

$ npm install vue

Step 5: Now, Let's install all required VUE tools and libraries by a single command:

$ npm install vue-template-compiler vue-loader vue-router vuex axios vue-axios  --save-dev --legacy-peer-deps

Step 6: Run the command to build the development package by following cmd:

$ npm run dev

Step 7: You are done. Lets run the application by:

$ php artisan serve
$ npm run watch

19 Oct 2023

Email Sentences and Phrases in different situations

20 Sentences and Phrases for Beginning an Email 

  1. Thank you for your message/email/phone call. 
  2. I hope you are doing well. 
  3. I hope you had a great weekend. 
  4. I hope this finds you well. 
  5. Just checking in. 
  6. Thanks again for your help. 
  7. It was great talking to you. 
  8. It was great meeting you. 
  9. Thanks for the additional info. 
  10. Just wanted to send you a quick note to... 
  11. How is everything? 
  12. Thanks for the quick response. 
  13. Thanks for your help with. 
  14. I have a quick question. 
  15. I have a quick request. 
  16. Thanks for the update. 
  17. Just checking in to make sure that. 
  18. I wanted to reach out to you because. 
  19. I am looking forward to. 
  20. It is great to hear from you 

20 phrases for closing an email


Expressions for thanking 

  1. Thank you for your help. / time / assistance / support 
  2. I really appreciate the help. / time / assistance / support you’ve given me 
  3. Thank you once more for your help in this matter. 


Expressions with a future focus 

  1. I look forward to hearing from you soon / meeting you next Tuesday. 
  2. I look forward to seeing you soon._ 
  3. I’m looking forward to your reply._ 
  4. We hope that we may continue to rely on your valued custom. 
  5. We look forward to a successful working relationship in the future. 
  6. Please advise as necessary. 
  7. I would appreciate your immediate attention to this matter. 


Expressions for showing them You want to help 

  1. If I can be of assistance, please do not hesitate to contact me. 
  2. If you require any further information, feel free to contact me. 
  3. If you require any further information, let me know. 
  4. Please feel free to contact me if you need any further information. 
  5. Please let me know if you have any questions. 
  6. I hope the above is useful to you. 
  7. Should you need any further information, please do not hesitate to contact me. 
  8. Please contact me if there are any problems. 
  9. Let me know if you need anything else 
  10. Drop me a line if I can do anything else for you.

11 Oct 2023

How to protect your website against DDoS attacks

Intro

Experts believe that the total number of DDoS attacks will double from the 7.9 million seen in 2018 to over 15 million by 2023. One of the reasons for this significant increase is that DDoS attacks are quite easy to pull off, making them very appealing to cyber criminals around the world.


Research states that small businesses can suffer damages of up to $120,000 per DDoS attack, while enterprise-level attacks can cost as much as $2 million.


So it really doesn’t matter whether you’re a small business or a huge multinational conglomerate, your online services, including email, websites, and anything that faces the internet, can be slowed down or completely blocked by a DDoS attack.


In this article, we list the most common types and offer resources to protect against DDoS attacks.



DDoS Attacks in a Nutshell


Distributed Denial-of-Service or DDoS attacks are malicious attempts to block businesses from its traffic. During a DDoS attack, the target server is flooded with bad traffic generated by exploited systems on the internet.


When your site falls victim to a DDoS attack, your website becomes unavailable for a while, or a very long time, depending on the intensity of the attack. Protecting your website against DDoS attacks means implementing a series of solutions to deal with the fake traffic sent by hackers to overwhelm your server resources.


Website owners shouldn’t need to wait until their site is under attack before they act. It is recommended to adopt a proactive approach towards DDoS attacks, and here are some non-technical, effective solutions to protect your website against this malicious traffic.


Effective tactics to mitigate DDoS attacks

Here’s what you could do to protect your site or web apps against various types of DDoS attacks and help to keep your website online all the time.

1. Increase bandwidth

One of the most basic steps you can take to protect against DDoS attacks is to make your hosting infrastructure “DDoS resistant”. In essence this means that you prepare enough bandwidth to handle traffic spikes that may be caused by cyber attacks.

Please be reminded however that purchasing more bandwidth itself does not satisfy as a complete solution to mitigate DDoS attacks. When you increase bandwidth, it does raise the bar which attackers have to overcome before they can launch a successful DDoS attack, but you should always combine this with other mitigation tactics to completely safeguard your website.




2. Leverage a CDN Solution, or even better Multi CDN

CDN providers offer plenty of cybersecurity features and tools to protect your website from hackers. They also offer free SSL certificates. What’s more, when you add your website to these service providers, by default it provides DDoS protection to mitigate attacks on your server network and application.

The rationale behind this is that when you leverage a CDN network, all malicious requests targeting L3/L4 that aren’t accessing via port 80 and 443 will be filtered out automatically thanks to CDN’s port protocol.

Using a CDN can balance out website traffic so that your capped server would not be overwhelmed. Also, CDNs spread your traffic across servers in different locations, making it difficult for hackers to spot your original server to launch an attack.

In addition, with a Multi CDN solution you’ll be able to make use of a large network of PoPs from not one, but multiple CDN providers, allowing your website to sustain DDoS attacks via an even larger, multi-terabit-per-second globally distributed network.

3. Implement server-level DDoS protection

Some web hosts include server-level DDoS mitigation tools in their offering. As this feature is not always offered by web hosting companies, you should check with your web host. Some companies include it as a free service, while others offer it as a paid add-on. It all depends on the provider and hosting plan.



4. Fear the worst, plan for DDoS attacks ahead

Planning for a cyberattack in advance, enables you to respond quickly before they actually start harming your website.

A proper cyber security plan includes a list of co-workers who will deal with the attack. It also outlines the way the system will prioritize resources to keep most apps and services online, which could keep your business from crashing. Finally, you can also plan how to contact the Internet Service Provider that’s supporting the attack, since they may be able to help stop it entirely.

5. Remind yourself that you’re never ‘too small’ to be DDoS’ed

Many small business owners think that they’re scale isn’t large enough to fall victim to cyber attacks. However, as truth has it, cyber criminals target small businesses and startups more often than large enterprises. This is because bigger companies usually are more inclined to implement security solutions to deal with hacker’s attempts.

As mentioned earlier, small businesses can suffer damages of up to $120,000 per DDoS attack, so, your website is a possible victim to hackers and you should work on enhancing your website’s security.

6. Switch to a hybrid or cloud-based solution

When you switch to using hybrid or cloud-based services, chances are that you’ll have access to unlimited bandwidth. Many websites that are affected by DDoS are sites which run with limited resources. Moving to a cloud-based solution can help you be on the safe side.



7. Bullet-proof your network hardware configurations

You can prevent a DDoS attack by making a few simple hardware configuration changes.

For instance, you can configure your firewall or router to drop incoming ICMP packets or block DNS responses from outside your network (by blocking UDP port 53). This will help protect against certain DNS and ping-based volumetric attacks.

12 Jul 2023

8 tips : How to improve your spoken English

 1. Speak, speak, speak

Let’s start right off by saying that there isn’t a magic pill for better speaking. That would be too easy, right? Basically, the best way to speak better is to, well – speak! Commit to practicing often and with as many different people as possible. Do you already live or study overseas? Take advantage of the thousands of native speakers in your immediate community, such as your friends, their families, your coworkers, classmates, employees at the coffee shops, supermarket, post-office and other places you visit. If you’re learning in your own country, increase your practice time by meeting your classmates after class, finding an language exchange partner or joining an online community of learners.


2. Reflect on your conversations

After your conversation is over, take a moment to reflect. How did it go? How much do you think you understood? How comfortable did you feel with that subject matter? Did you encounter any unknown words? The mere act of thinking about it in this way will increase your confidence for the next time you speak (and give your targeted things to work on, for example vocabulary you didn’t understand).


3. Listen and read

You need words in order to talk, right? Class time is great for learning vocabulary, but there are other ways you can increase yours: Watch movies, listen to music, the radio and to podcasts. Read books, magazines and blogs. When listening and reading, find new and interesting expressions, slang terms and synonyms, write down this new material and look up anything you’re not familiar with. All this will provide more “meat” for you to use next time you practice.


4. Prepare cheat sheets

Part of nervousness around speaking is the feeling of not knowing what to say. To combat this, prepare a cheat sheet. Are you going to the doctor’s? Before your appointment, research vocabulary relating to your condition and some common phrases you’ll probably need. Use the technique before going to pay a bill, eating at a restaurant, job interviews, making a complaint, or for any other situation that might make you anxious.


5. Pick up the phone

Most people find phone conversations particularly challenging. Why? Because on the phone, we can’t see the other person’s body language or watch their mouth move, both of which are tools that really help communication. To feel more confident on the phone, start small with phone conversations with friends – then move on to more challenging calls like making appointments or inquiries. (This is a great time to use tip 4, and prepare a list of questions and useful vocabulary to help you during your call!)


6. Record your voice

We know, we know – most people dislike hearing their voice recorded – but it’s actually an extremely beneficial way to improve your speaking! Hearing yourself on tape shows you things you might not realize (maybe you tend to speak quickly when nervous, swallow your “s’s” or mumble). On the other hand, you could be pleasantly surprised to hear that your speaking is far better than you thought! For bonus points, take your recording to your teacher or to a native speaker friend and have them give you feedback.


7. Learn phrases rather than single words

Another tip to increase your fluency is to speak using a variety of phrases rather than individual words. (You probably do this all the time in your native language.) Instead of automatically asking “Hello, how are you today?”, mix it up by choosing other expressions like “What’s up, man?” “Hey dude!” or “How ya going, mate?” (Be careful though: Some expressions will be very informal and not ideal for some situations!)


8. Have fun

Let’s face it. It’s far easier to learn something new when you’re having fun. Inject silliness into your speaking practice by talking to yourself when you’re alone, singing along with popular songs in English, doing tongue twisters (Try our top tongue twisters) or doing one-minute “impromptu speeches” on randomly-chosen topics (such as snakes, coffee, India or subjects such as “If I ruled the world, I would…”, “Three surprising facts about me,” or “Which came first, the chicken or the egg?”). Great practice and great, silly fun.

24 May 2023

How to show the current time and date in Lightning Web Components (LWC) in Salesforce

use JavaScript's Date object and the LWC template syntax. Here's an example of how you can achieve this:

Open your LWC component's JavaScript file (e.g., myComponent.js) and define a property to store the current date and time.


import { LightningElement, track } from 'lwc';

export default class MyComponent extends LightningElement {

    @track currentDate;

    connectedCallback() {

        this.getCurrentDateTime();

    }

    getCurrentDateTime() {

        setInterval(() => {

            const now = new Date();

            this.currentDate = now.toLocaleString(); // Format the date and time as per your preference

        }, 1000); // Update every second

    }

}

Open your LWC component's HTML file (e.g., myComponent.html) and use the currentDate property to display the date and time.


<template>

    <div>{currentDate}</div>

</template>


 Now, when you use the MyComponent in your Lightning page, it will continuously update to display the current date and time.

Note: The example above sets the interval to update the date and time every second (1000 milliseconds). You can adjust the interval value to your desired frequency.

 

To display the current date and time in a specific format in Lightning Web Components (LWC) in Salesforce, you can use the toLocaleString method of the Date object and specify the desired format options. Here's an example:

import { LightningElement, track } from 'lwc';

export default class MyComponent extends LightningElement {

    @track currentDate;

    connectedCallback() {

        this.getCurrentDateTime();

    }

    getCurrentDateTime() {

        setInterval(() => {

            const now = new Date();

            const options = {

                year: 'numeric',

                month: 'long',

                day: 'numeric',

                hour: 'numeric',

                minute: 'numeric',

                second: 'numeric',

                hour12: true // Use 12-hour format (true) or 24-hour format (false)

            };

            this.currentDate = now.toLocaleString('en-US', options); // Adjust the locale as per your requirement

        }, 1000); // Update every second

    }

}


To display the current date and time in Indian date format using Lightning Web Components (LWC) in Salesforce, you can modify the options object in the toLocaleString method to match the desired format. Here's an example:

import { LightningElement, track } from 'lwc';

export default class MyComponent extends LightningElement {

    @track currentDate;

    connectedCallback() {

        this.getCurrentDateTime();

    }

    getCurrentDateTime() {

        setInterval(() => {

            const now = new Date();

            const options = {

                weekday: 'long',

                year: 'numeric',

                month: 'long',

                day: 'numeric',

                hour: 'numeric',

                minute: 'numeric',

                second: 'numeric',

                hour12: true, // Use 12-hour format (true) or 24-hour format (false)

                timeZone: 'Asia/Kolkata', // Set the desired time zone

                timeZoneName: 'short' // Show abbreviated time zone name

            };

            this.currentDate = now.toLocaleString('en-IN', options); // Use 'en-IN' locale for Indian date format

        }, 1000); // Update every second

    }

}