Tips Posts

How to check Laravel logs with UI Interface ?

Debugging the most important thing that developers always need while developing things.

If it's about local environments then we can easily check our logs by putting logs to local but when it's about live environments it's a time-consuming process.

We have to go to the files and open/download those files to local and then we are able to check live logs.

Here we are going to one package that will provide us the UI interface and we can easily check all our logs there.

We can also clear / delete our logs files from there. its better to use daily logs so we can trace logs easily.

Let's see how we can integrate that package to our existing laravel application.

Installation

composer require rap2hpoutre/laravel-log-viewer

Add Service Provider to config/app.php in providers section

Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

Access Logs UI By adding a new route

Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);

That's it and you can see all the logs thereby accessing the given route.

That will saves lots of debugging time, hope that will help you :)

February 25, 20221 minuteVishal RibdiyaVishal Ribdiya
An In-Depth Look at the Adobe Premiere Pro Editing Tools

Let’s Explain Every Tool From The Toolbar In Adobe Premiere Pro

As a beginner video editor you often struggle with finding the right tools to perform certain actions while editing. And once you’ve finally found some tools to edit, you don’t know what they do. We’ve all been there, so here’s a quick and easy explanation of every tool in the toolbar.

Selection Tool (V)

selection_tool

The Selection tool allows you to perform basic selections and edits. This will be your default and primary mouse function when using Premiere Pro, so make sure to remember the short key for it, which is V on your keyboard. Along with making basic selections, you can also select edit points and perform trims where you can increase or decrease a clip’s duration.

Track Selection Tool - Forward (A) / Backward (Shift+A)

track_selection_tool

The Track Select tool will let you select all of the clips in a sequence, either forward or backwards. All you need to do is use the keyboard shortcut (A) and you can highlight multiple clips at once, in whichever direction you prefer. If you hold shift, the tool will select only one track instead of all of the tracks.

Ripple Edit Tool (B)

ripple_edit_tool

One of my favorite shortcut tools in Premier Pro, Ripple Edit is a trim tool used to trim a clip and "wave" the rest of the clips in a timeline. This will effectively close the gap between the two editing points immediately at the point where you will be editing. This can save a lot of time when editing on-the-fly, as you don't have to manually navigate the rest of your timeline — especially if you're dealing with videos or sequences longer than a few minutes.

Rate Stretch Tool (R)

rate_stretch_tool

The Rate Stretch tool will help you speed up or slow down the clips in your order. When using the tool, note that the in and out points of the clip will always be the same. You will change the duration and speed of the clip according to the amount you "stretch" through the trim. For example, extending the outpoint of a clip will slow down the speed, while shortening the clip will speed up the duration.

Slip Tool (Y)

slip_tool

For visual editors who prefer to make their cuts based on specific images of the corresponding frames, Slip Tool is a great resource for working directly from the monitor. The slip tool "slips" the source of the clip in and out, but does not move it on the timeline.

Slide Tool (U)

slide_tool

Like the Slip Tool, the Slide Tool allows you to work with your clips drawn on the monitor. However, the slide tool works by "sliding" the clip on the timeline, while keeping the source in and out points the same. After sliding the clip, the tool will also close all the gaps.

Pen Tool (P)

pen_tool

Moving on to editing shortcuts and tools to help with keyframes and other elements (such as audio), the Pen Tool is your best choice for adding keyframes to any clip. By selecting the Pen Tool (P), you can click on any point on your clip to add a large number of features, including the opacity, scale, position, and even volume of the audio clip.

January 27, 20223 minutesKishan SavaliyaKishan Savaliya
Why developer choose React JS

There are a few reasons why developers choose ReactJS and they are :-

  1. JavaScript XML or JSX
  2. React use Virtual DOM
  3. ReactJs Props
  4. One-Way Data Binding
  5. Quick Rendering
  6. SEO Friendly
  7. Helpful Developer Toolset

JavaScript XML or JSX

It is a markup syntax that describes the appearance of the application's interface. It creates the same syntax as HTML and is used by developers to create feedback elements.

JSX is one of the best features of React JS as it makes it very easy for developers to write building blocks.

React use Virtual DOM

This feature helps speed up the app development process. The algorithm allows the web page to be copied into React's virtual memory.

The original DOM there is represented by a virtual DOM.

ReactJs Props

ReactJS Props allows developers to move custom development data into its specific UI components. This helps in rendering JavaScript components and improving the UI development experience.

One-Way Data Binding

Feedback uses a stream of data that is directionless, forcing developers to use the callback feature to edit components and prevent them from editing directly.

Control of data flow from a single point is achieved with a JS app architecture component called Flux. It really gives developers better control over the application and makes it more flexible and effective.

Quick Rendering

This means that a small edit made at the top level can hit the app UI hard. Thanks to the virtual DOM, it can be tested first to determine the risk level with each change before finalizing all changes.

SEO Friendly

To make any application work well, it is important that the search engine selects it; Two factors are important for applications: fast load time and rendering. If both of these boxes are ticked, your app will rank higher on Google results pages.

React's super-fast rendering feature drastically reduces page load time, enabling businesses to rank their apps on the first page of Google search.

Helpful Developer Toolset

Facebook has included many developer tools in the React JS framework for React and Chrome, and they greatly help developers find parents and child components, observe their hierarchies, and test their current status.

Through self-learning, developers will be able to use emerging technologies in real, live, projects.

So, developers choose ReactJS hope this help.

January 26, 20222 minutesVatsal SakariyaVatsal Sakariya
How To Setup SSH key in Windows

In this article, I show you how to set up SSH in windows10,

first of all, you have a question what is the ssh key, and why do we need it?

you can watch this video or follow an article.

Let me explain a bit more, An SSH key is a secure access credential used in the Secure Shell protocol. SSH keys use key pairs based on public key infrastructure technology, the gold standard for digital identity authentication and encryption, to provide a secure and scalable method of authentication. as you know all developers use git for pushing, fetching, and pulling their code from GitLab, GitHub, and any other tools.

So, using SSH key you can use git for your repository and get authentication from GitHub or any tool where you add ssh.

When you set up an SSH key, you create a key pair that contains a private key (saved to your local computer) and a public key.

So, Let's Set up SSH for Git on Windows

Step1: Set up your default identity

firs of all open your terminals like gitbash or cmDer.

  • Now, type the command ssh-keygen and enter and command prompts you for a file to save the key in:

$ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/emmap1/.ssh/id_rsa):

  • Press enter to accept the default key and path,/c/Users/<username>/.ssh/id_rsa. or you can specify the path and then press enter.

  • Enter and re-enter a passphrase when prompted.

  • final out put in your terminal is look likes,

    ssh-keygen 
    Generating public/private rsa key pair.
    Enter file in which to save the key (/c/Users/shailesh/.ssh/id_rsa):
    Created directory '/c/Users/shailesh/.ssh'.
    Enter passphrase (empty for no passphrase):
    Enter the same passphrase again:
    Your identification has been saved in /c/Users/shailesh/.ssh/id_rsa.
    Your public key has been saved in /c/Users/shailesh/.ssh/id_rsa.pub.
    The key fingerprint is: e7:94:d1:a3:02:ee:38:6e:a4:5e:26:a3:a9:f4:95:d4 shailesh@InfyOm-PC
  • Let's navigate to path cd /c/Users/shailesh/.ssh/ and fire ls command for confirming file generated or not.

  • ls command displays two files, one for the public key (for example id_rsa.pub) and one for the private key (for example, id_rsa) if successfully generated.

Step 2: Add SSH in Bitbucket.

  • let's fire command cat id_rsa.pub on the terminal and make sure you stay on the .ssh directory.
  • Now, you can see the key in the terminal. so, copy it and add it to bitbucket. click here for Github to add SSH to your account.

Step 3: Add the SSH key to the ssh-agent.

fire command $eval ssh-agent into the terminal and you get output like Agent pid 9795. 9765 PID may be different in your PC.

Step 4: Check Login in terminal

fire command ssh -T git@bitbucket.org in your terminal and you can get output like

Warning: Permanently added the RSA host key for IP address '104.192.141.1' to the list of known hosts.
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
January 10, 20223 minutesShailesh LadumorShailesh Ladumor
Best practices for React JS developer part-2

In the previous article, we learned 5 areas or tips on Best practices for React JS developer.

In this article, we will learn more about areas or tips

  1. Object Destructuring.
  2. When pass value in props
  3. Tags close it self.
  4. Do not use underscore in any method name.
  5. Use alt in img tag.

Object distracting

You can use object distracting

Not Good

return (
  <>
   {user.firstName}
  </>  
)

Good

const { firstName } = user;
return (
  <>
   {firstName}
  </>  
)

When pass value in props

When pass the data between two component that time use camelCase for prop names.

Not Good

<Home
  UserName="demo"
  phone_number={9898989898}
/>

Good

<Home
  userName="demo"
  phoneNumber={9898989898}
/>

Tags close it self

Any component in not use children so closing it self

Not Good

<Home userName="demo"></Home>

Good

<Home
  userName="demo"
/>

Do not use underscore in any method name

You don't need underscores in any React method.

Not Good

const _onClickHandler = () => {
  // Your code
}

Good

const onClickHandler = () => {
  // Your code
}

Use alt attribute in img tag

Do use alt attribute in the img tag. and don’t use picture or image name in your alt property.

Not Good

<img src="hello.png" />

Good

<img src="hello.png" alt="This is hero image" />
December 01, 20213 minutesVatsal SakariyaVatsal Sakariya
Marketing Strategies to Increase Sales

Finding new customers or retargeting the previous customers to buy your products or services is an important part of the entire sales process.

It may be tough for every people of your target to buy your product or service but to increase sales, you find which strategy works for you and try to use different types of a strategy used for buyer's intent.

Do you have great products but may not increase sales as you want? That's okay so don't worry below techniques maybe work for you.

Use the following marketing strategies to increase sales and gain the right customer who can buy your products or services easily.

First of all, we define customer journey in various steps:

  1. Awareness of product
  2. Interest in products
  3. Evaluation of customer
  4. Commitment about product or services
  5. Sale products your buying intent person

Marketing strategies to increase sales

1. People want to benefit from buying products

People never buy products, they buy results that the product will give so start to identifier your customer and talk about the benefits of products.

Think you are buyers and you want to purchase products like TV so think about what benefits I will get If I buy a TV. Always people thoughts about If they buy a product from you then what benefits they will get and validity of the product.

2. Define customer

Who is the person who is interested in your products and buying them immediately?

Think about that person in your mind create a visual picture of that person.

Ask some specific questions

  1. How old are they?
  2. Are they male or female?
  3. Do they have children?
  4. How much money do they make?
  5. Do they have an education?
  6. The working field of the person?
  7. Are they interested in your products?

3. Create videos of products

Video of product can give some extra benefits over photos so try to create an amazing video of particular products working or anything else.

In digital marketing, video is most popular to attract customers to buy products.

Short video or long video marketers use this media to convert more leads.

Types of video content for different use

  • Client testimonials video
  • Product review video
  • Animation video
  • How to use products video
  • Videos for PPC advertising

4. Organic traffic through SEO

Create a blog content of products and describe of products in a blog how to use, which material used in this products, how they can benefit you, reviews of products, etc using best practices of SEO.

They take a long time to search for an appearance on first-page google but when it comes it gives you more benefits than paid services.

Best practices of SEO

  • Optimized your image or video
  • Best title tag that users can easily attract
  • Always try to get benefits of users
  • Create user-friendly content
  • Links to other pages on your website that might interest the viewer

5. Pick the right price for a product

If you pick a high price of products then market rates, so definitely your product doesn't sell so choose price customer can afford it and you will get some income using sell products.

Do market research on your competitor and pick the right price for your products.

If you can make your product seem superior to your competitors, you can charge a higher price as you want but first, do market research.

November 15, 20213 minutesAnkit KalathiyaAnkit Kalathiya
Best practices for React JS developer

Today we are going to see best practices for React JS developer

  1. Passing a boolean variables.
  2. Do not define a function within a render
  3. Naming of the components
  4. Use of the Ternary Operators
  5. Don’t Need Curly Braces in string

Passing a boolean variables

Passing boolean variables in to two components.

Not Good

return (
   <Home showTitle={true}/>
); 

Good

return (
   <Home showTitle/>
); 

Do not define a function within a render

Don’t define a function inside render.

Not Good

return (
    <button onClick={() => dispatch(ACTION_TO_SEND_DATA)}>
      Example
    </button>  
)

Good

const submitData = () => dispatch(ACTION_TO_SEND_DATA)
return (
  <button onClick={submitData}>  
    Example 
  </button>  
)

Naming of the components

You can use PascalCase for name of the components and camelCase for name of the instances.

Not Good

import createCard from './CreateCard';
const ReservationItem = <ReservationCard />;

Good

import CreateCard from './CreateCard';
const reservationItem = <ReservationCard />;

Use of the Ternary Operators

Developer how can use ternary operator in React js.

Not Good

const { role } = user;
if(role === 'ADMIN') {
  return <AdminUser />
}else{
  return <NormalUser />
} 

Good

const { role } = user;
return role === 'ADMIN' ? <AdminUser /> : <NormalUser />

Don’t Need Curly Braces in string

When developer passing string props to a children component

Not Good

return(
  <Navbar title={"My Special App"} />
)

Good

return(
<Navbar title="My Special App" />  
)

Hope this helps for React js developer

November 06, 20213 minutesVatsal SakariyaVatsal Sakariya
Business Strategy for Software Companies

What is software marketing?

The process of creating a market for any software leads to software marketing. Simply put, it is a way to market any software in the digital space for more sales and promotion of software.

Every startup software company uses a variety of methods and techniques to harness the marketing resources available in the digital marketplace.

Each software has its own user goals and benefits. Target customers are also defined according to the software. You cannot market software like other products. There are specific strategies that every startup software company needs to follow. Every company wants to increase its profits. Investing in product marketing increases profits.

There are some rules before you devise a market strategy

  • Create your story before you appear
  • Set goals before you plan to achieve
  • Create an excellent website
  • Keep the website SEO friendly
  • Email marketing campaigns

Create your story before you appear

There is a story behind every creation and also of your software. Think about your startup and the software you want to market.

Software companies make the mistake of giving too many technical explanations in their communications before the customer understands the operation of the software and what it does.

You need to create and tell a story that explains the idea of ​​software, its functions, what it offers to its customers, and ways to differentiate businesses from competitors.

Set goals before you plan to achieve

Before formulating a marketing strategy, you need to set goals. Why? It is not possible to know success unless the goal is to be achieved.

Setting goals is one way to understand what you want from a marketing strategy. Ask yourself, what are you planning to achieve with the market strategy? Is it to increase sales or to reach more target customers or is it a brand awareness marketing strategy?

Keep the website SEO friendly

You need to try to make your website SEO-friendly. It helps with organic traffic to websites. Visitors coming through organic traffic are mostly your potential customers. Give them what they want.

Email marketing campaigns

Email marketing is one of the best marketing strategies for startups. It helps build a database of potential customers as well as convert potential customers into sales. Drip email leads to sales leads by downloading sequence content or providing trial software links. Offering something for free in an email leads to your website.

October 27, 20212 minutesAnkit KalathiyaAnkit Kalathiya