Posts

'composer' is not recognized as an internal or external command in windows server

'composer' is not recognized as an internal or external command in windows server   1) Download the composer installer (.exe) and put it on C:/XAMPP. 2) Run the installer by just clicking next till the end. 3) Open command-line (cmd) and cd to your project directory (C:/XAMPP/htdocs/myproject) and type composer and see if you have it installed. 4) It should work now, let's say you want to install a PHP framework from your project directory:  cmd=>composer require slim/slim "^3.0" . Sol 2: The solution is to use complete composer path instead of  composer install  eg:-  C:\ProgramData\ComposerSetup\bin\composer install" instead of "composer install Better still, add  "C:\ProgramData\ComposerSetup\bin\"  to your environment variables, so that you can use  "composer install" . Sol 3: If u can 't find composer file than follow only 2 steps 1- Download composer file from [https://getcomposer.org/download/...

Three Favorite Open Source Java Libraries

Image
Three Favorite Open Source Java Libraries Java developers are lucky to have a long list of community libraries to pull from. Here are a few standouts that have made their way into virtually all of my new development. These were chosen because they have clean interfaces, provide significant value, are well tested, and most of all … help me write less code.   Google Guava https://github.com/google/guava This one is probably at the top of a lot of developer’s lists. Back in my C/C++ days, we had Boost. Early in my Java days, we used Apache Commons. Now, Google Guava is the primary core/utility library for Java. If you ever find yourself writing anything that could be common to the Java language, look here first. Here are a few classes from Guava that I’m always using: Use the Optional class instead of using null: https://github.com/google/guava/wiki/UsingAndAvoidingNullExplained Use the Preconditions class to validate parameters and fail fast: https://githu...

3 Reasons You Won’t Starve as a Java Developer

Image
3+ Reasons You Won’t Starve as a Java Developer   Considering such massive popularity and the thousands of video tutorials, in-depth textbooks, online courses, and offline coding schools that offer free or affordable Java training to anyone willing to learn, you might jump to the conclusion that the market is oversaturated with Java developers desperate to find a job. In fact, quite the opposite is true. The demand for Java engineers is at an all-time high and shows no signs of waning anytime soon, so it’s highly unlikely that you’ll starve if you have Java skills. Here are five good reasons why: 1. The unemployment rate is low, the jobs are plenty The overall demand for tech talent is so high that the tech industry’s unemployment rate in the US is only 2.5 percent . We’re pretty sure this figure isn’t much different in other parts of the world. What’s more, according to a skills and salary analytics platform Gooroo, 6.49 percent of job ads mention Java. And if...

React js

How to use Props in React? If you are new to React, you must have noticed the term  props  all across the tutorials and the code snippets that you come across. So what exactly are _props _and how do you use them correctly? Props  is short for Properties. In React,  props can be passed to a component, and they should not be changed within a component. Props _cannot be changed within a component. _Props are immutable. Keep in mind that in React, the data flow is unidirectional from parent to the child. Irrespective of whether you declare your component as a _class _or a _function, _the _props _should not be modified. Conversation Between Components Let’s visualize a conversation between the components in React to see if we can get some clarity around  props. Parent Component 1:  “Hey there child component, I have some props that I want to send your way! You can use them to render, and you can pass them on to your children too! Remember you ...
Image
The Ultimate Beginners Guide to Firebase Today we’re going back to the basics in  Firebase  by building a basic web app from scratch. Even though this is beginner level, I think it’s very useful to write code with Firebase using nothing but plain JS, especially if you’re used to developing with a framework library like  AngularFire ,  ReactFire , or  Vuefire . In addition, I want give you my  Why Firebase? opinion and explain why it’s my goto cloud provider. What is Firebase? Firebase is a Backend-as-a-Service, which really boils down two things - (1) A container for Google Cloud Platform resources, and (2) a collection of SDKs to interact with these resources from the web, iOS, Android, Unity, and more. Why Firebase? Why not AWS or Heroku? Firebase does not compensate me to say nice things, I am just a happy customer :) In my opinion, Firebase offers the  quickest path to get your app in the hands of users . It accomplishes this by simp...

lEARN :: SQL | Views

SQL | Views Views in SQL are kind of virtual tables. A view also has rows and columns as they are in a real table in the database. We can create a view by selecting fields from one or more tables present in the database. A View can either have all the rows of a table or specific rows based on certain condition. In this article we will learn about creating , deleting and updating Views. Sample Tables : StudentDetails CREATE TABLE FOLLOWING FIELDS STD_ID, NAME,ADDRESS StudentMarks CREATE TABLE FOLLOWING FIELDS id , NAME,MARKS, AGE CREATING VIEWS We can create View using CREATE VIEW statement. A View can be created from a single table or multiple tables. Syntax : CREATE VIEW view_name AS SELECT column1, column2..... FROM table_name WHERE condition; view_name : Name for the View table_name : Name of the t...

Java Basics

Java Basics On Days 1 and 2, you learned about Java programming in very broad terms—what a Java program and an executable look like, and how to create simple classes. For the remainder of this week, you’re going to get down to details and deal with the specifics of what the Java language looks like. Today, you won’t define any classes or objects or worry about how any of them communicate inside a Java program. Rather, you’ll draw closer and examine simple Java statements—the basic things you can do in Java within a method definition such as main(). Today you’ll learn about the following: n Java statements and expressions n Variables and data types n Comments n Literals n Arithmetic n Comparisons n Logical operators Technical Note: Java looks a lot like C++, and—by extension—like C. Much of the syntax will be very familiar to you if you are used to working in these languages. If you are an experienced C or C++ programmer, you may want to pay special attention to the Technical Notes (...