How to display remotely hosted HTML content as SCORM package in Moodle, Totara or any other LMS?
SCORM requires the content to be served from the same domain as the SCORM player or the Learning Management System (like Moodle, Totara) in use otherwise it Read more…
C# : Triggering the Local Outlook for forward, reply and reply all actions from existing .msg file
For the desktop based applications when user is dealing with the store outlook files in msg format we can open local outlook when required.
In outlook when we open a email message Read more…
While implementing a custom plugin in wordpress, we can simply add submenu items for our plugin by this code:
public function PluginMenu()
$this->my_plugin_screen_name = add_menu_page(
But in wordpress, if we add any submenu items to the plugin Read more…
Why we need to code properly because a well written code not only does its job well but is also easy to extend, maintain and debug. So here are some key points:
1. Follow a consistent coding standard:
There are a lot of coding standards, follow one of Read more…
In WordPress, each user profile has many fields like first name,last name, website url etc which are almost sufficient to get the user information. We also have the user’s contact info like his email address but still sometimes situation arises when we need some extra information from the Read more…
Scenario : We have the situation where we want to create a backup of all the contacts in Salesforce on daily basis to AWS S3. We are using PHP code to create files according to the desired criteria and upload them to AWS S3. A crucial step is to Read more…
Every developer/designer should be aware of some developer tools and extensions available in the chrome browser.
Accessing the DevTools :
Select the Read more…
What is Webkit?
There are two ways to edit the question content in Captivate question pool :
1. First way is by enabling custom workspace settings. You can enable workspace settings with these steps :
a.) Click on Edit>Preferences on top menu bar like this :
b.) After clicking preferences menu item following window Read more…
Tabindex: The tabindex is used to define the sequence for the cursor to move from field to field in an HTML form, to have a control over this flow of the cursor. By default, tab takes the user to the next field created on the page Read more…
Server Side Scripting is – when the user’s request is served by the script on the server to provide customized or dynamic data. Server-side processing on DataTables is that when all the DataTable functions like searching, ordering, pagination etc. are controlled by Server Side. This is used when we Read more…
It is already discussed “What is AutoComplete feature of jQueryUI” in one of my previous blogs. Please refer to following link for description of jQueryUI Autocomplete:
How to add font-awesome progress icon in textbox for autocomplete Jquery-UI plugin
Here, in this blog, I will Read more…
Use of Branches:
You can create different branches of your working tree with different names. For example if you don’t want to make changes on your working tree (clone repository on your system) you can create a new branch and make changes in it, add new files Read more…
Problem: FPDF which is a php class to generate pdf does not render many HTML tags like <style>,<img>. So it generates an unformatted pdf from HTML content.
Solution: TCPDF solves the problem of not rendering of HTML tags. It is a Read more…
GrapesJS is an open-source, Web Builder Framework to build HTML templates without any knowledge of coding.
Some tips for customizing GrapesJS Editor:
1. To add custom blocks in block manager.
Add this code to block manager json with other blocks:
id Read more…
Below are some CSS best practices that every developer and designer should follow to write better code.
Reset user agent stylesheet or default styling of the browser :
There are default CSS properties in website pages that come from “user agent” stylesheet. Every browser has its own Read more…
Add float button with CSS and html without using any external library with on hover show/hide effect.
Mostly people use third party plugins or complex and unnecessary long css to add floating buttons, but we can create the same button with simple css and a single div Read more…
Swagger is a very powerful tool to generate documentation of your Rest based web services API containing Spring annotations. You don’t need to add any type of comments to your code to generate documentation. It will pick the Spring annotations and will generate the documentation for you. Below are Read more…
Problem: How to create a function in Postgres that will remove HTML tags from a piece of text?
Solution: Create function in Postgres :
CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$
SELECT regexp_replace($1, ‘<[^>]*>’, ”, ‘g’)
$$ LANGUAGE SQL;
How to use:Read more…
Before understanding how to maintain or start a project in SCSS we should understand what is SCSS and why it is used?
SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style sheets for a browser. SASS adds lots of Read more…