Category: Web Development
Apache Solr | Indexing all files in a folder recursively
Indexing of all files inside a folder and all its subfolders can be done using java language in the following ways: 1. Using data import handler. 2. Without data import handler i.e by creating a recursive function in java code.
Moodle | Uploading Scorm Package and some internal function calls
1.Uploading a scorm package (.zip) in moodle: a. Log-in to moodle, navigate to your course and “turn editing on”: b. Click “Add an activity or resource” link: c. Select Scorm package from list and click Add button: d.Add basic information
Java Servlets | Converting relative path to absolute for file upload
In the program of uploading files to a server location, instead of using absolute location for saving file to that path, relative path needs to be used. Program was working correctly for absolute path. In the maven project with the
Apache Tomcat | No change reflected on re-deploying war file into tomcat’s webapps folder
Issue: I had deployed latest war file of my Java project into tomcat’s webapps folder but I could not see any changes reflected while running my project. What I tried? It looked like war file must not have been uploaded properly.
PHP | Password hashing
Password hashing is the new recommended way to store the password using hashing method (PHP 5 >= PHP 5.5, PHP7). Password hashing is used to encrypt the password similar to the way md5, sha1, sha256 etc do. But this method
Spring Framework | How to define interceptor for a spring web project
Interceptors are components that intercept requests before passing to controller and responses before rendering the view. Interceptors can intercept request and response in our web application. With the help of interceptor we can check whether a user has the authority
Moodle / Totara | Null response on calling Plugin api from outside
Description: In one project we were invoking methods of a Moodle plugin from outside in the web app with the help of curl post requests. At the Moodle’s end, we have created a custom plugin and defined our methods in
Apache Solr | Finding term frequency of a specific term in Solr for indexed Documents
Document frequency and Term frequency are the terms that are generally used for finding relevance of the documents to the search query. When user types some word, then the number of documents containing the word returned in the result set
How to create a new Template in your Mandrill Account
1. Log in to your mandrill account with your credentials, you will see below screen after successful login: Fig 1: Logged In user Screen 2. Click on the outbound tab in the left pane of the above screenshot: Fig 2: