Home

Techno Workshop provides technical solutions about different technologies like PHP, MySQL, PostgreSQL, Bootstrap Front-end Framework, JQuery, GIS, JasperServer, and PHP frameworks like Laravel, Codeigniter, CakePHP, etc. It also provides tutorials for Ajax, APIs, CURL, Composer Packages, etc. If you cannot find anything, you can also search for tutorials in the search box below.

  • Git Commands: How to Remove Local Git Branches that are Merged or Nonexistent
    Over time, your local git branches list can become overwhelming, particularly if you develop on a single branch, generate a pull request, merge it into the main branch, and then remove the remote git branch once it has been merged. After the branch is removed from the remote repository, there is no need to keep it on your local machine. The following command will delete all local branches that have been merged into the main branch. If your git trunk branch is not named main or you wish to remove all branches that have been merged into a branch other … Continue reading “Git Commands: How to Remove Local Git Branches that are Merged or Nonexistent”
  • How to upload file code using Laravel
    To upload a file using Laravel, you can follow these steps: Create a new form in your Laravel view with an input field for the file: Define a new route in your routes/web.php file that points to a controller method that will handle the file upload: Create a new controller method in FileController that will handle the file upload: In the upload() method, we first validate that the uploaded file meets our requirements (in this case, it must be a file and not exceed 1 MB in size). We then use the store() method on the uploaded file to store … Continue reading “How to upload file code using Laravel”
  • The Lexical Structure of JavaScript
    To understand the structure of JavaScript, you need to learn the following building blocks of it: Unicode, case sensitivity, semicolons, comments, white space, literals, identifiers, and reserved words. Unicode You can use Unicode in JavaScript. So, you can use Emojis as variable names and write identifiers in any language, for example, Japanese or Chinese, with some rules.  If you want to know whether your Unicode variable is acceptable or not, you can check it at https://mothereff.in/js-variables. Case sensitivity JavaScript is case-sensitive like many languages. So, a variable name written in a lower case format is different from the same variable name … Continue reading “The Lexical Structure of JavaScript”
  • Getting started with ReactJS
    Setting up a local environment is recommended way to learn ReactJS because the local setup allows you to complete the tutorial using your choice of editor, use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. Let’s start with creating a new ReactJS application. Create React App Creating React App is a comfortable environment for learning and building an application in React. There are few prerequisites for creating a React app as follows, Node.js >= 14.0.0 npm >= 5.6 If above requirements are satisfied, you can run the following command to create a new react application, You can … Continue reading “Getting started with ReactJS”
  • Using ReactJS in the HTML File
    Now that we know what ReactJS is, we can start with different usage of ReactJS. If you don’t know what ReactJS is, read the ReactJS introduction. In this article, we will learn to use ReactJS directly in the HTML file. There are some prerequisites to adding ReactJS script inside the HTML code. We need to include the following three javascript in the head section of the HTML file. ReactJS ReactDom Babel The first two allow us to write ReactJS code in our JavaScripts, and Babel will allow to write JSX syntax and ES6 in older browsers. Example Let’s see an … Continue reading “Using ReactJS in the HTML File”
  • ReactJS Introduction
    ReactJS is one of the most popular JavaScript front-end libraries for building user interfaces with a strong foundation. It has a robust and rapidly growing developer community and a declarative, efficient, and flexible library for building reusable UI components. It is an open-source, component-based front-end library responsible only for the application view layer. 
  • Solved – error while loading shared libraries: libpangox-1.0.so.0: Anydesk on Ubuntu 22.04 LTS
    After successfully upgrading from Ubuntu 20.04 LTS to 22.04 LTS, most of the applications are working perfectly. But, some of the applications behave unusually. Such as, I tried to run the Anydesk application, but it doesn’t launch/start. when I checked the status service, the AnyDesk service was failed and the reason for failing is mentioned in the below error message, libpangox-1.0.so.0 is a library used for text layout and rendering the text. Most of the work on Pango-1.0 was done using the GTK+ widget toolkit as a test platform. So, I ran the command to install it using the apt as … Continue reading “Solved – error while loading shared libraries: libpangox-1.0.so.0: Anydesk on Ubuntu 22.04 LTS”
  • What is Middleware and how to create one in Laravel?
    It’s best to envision middleware as a series of “layers” for HTTP requests that must pass through before they hit your application. Each layer can examine the request and even reject it entirely.
  • What are accessors and mutators?
    Accessors and mutators are public member functions in a class that exists solely to set or get the value of a class member variable. They are often referred to as getter and setter or set and get functions. I will use the term setter for mutators and getter for accessors for this article. Many programmers think why we should create getter and setter functions when we can declare public member variables and access them easily using the object of the class. But, there are many benefits from a software engineering point of view to create classes with only private member … Continue reading “What are accessors and mutators?”
  • Geocoding with Python – Convert any address to a geographic location
    Learn how to work with geocoding APIs to receive location data from addresses and plot maps of your customer’s location.