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.

  • 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.
  • Finding bugs using PHPStan as a Static Analyzer
    With PHP being an interpreted language it has a downside when it comes to finding bugs in your code. It will not show you errors in your software until you actually run it. PHPStan tries to solve this problem by doing static analysis on your code. It was recently created by Ondrej Mirtes. Running PHPStan will tell you about bugs in your codebase almost instantly (yes, it’s very fast). At the time of writing this article, PHPStan currently checks your code on: The existence of classes and interfaces in an instance of, catch type hints, other language constructs, and even annotations. PHP does … Continue reading “Finding bugs using PHPStan as a Static Analyzer”
  • Error Handling in PHP (Part 2)
    Now that we know, how to log errors in any system developed in PHP, we can move to our next section for keeping track of these logged errors. If you haven’t read how to log errors, read part 1 of error handling in PHP. To keep track of these logged errors, we need to create a script to read those log files in a systematic way. Refer to the below code to read log files, Explanation: This line of code will read the file line by line from the provided file path. After reading the file, if the size of … Continue reading “Error Handling in PHP (Part 2)”