In PHP, we have a pre defined function nl2br which converts newlines to <br/> tag. Unfortunately we don’t have a function in Ruby similar to nl2br. We have to create a user defined function. Example function for nl2br def nl2br(string) string = string.gsub(/(\r)?\n/, ” “) return string end Thats it. Happy Coding! Cover Image: Ruby […]
How to take backup of Tomboy notes
There are two ways to backup the tomboy notes Method 1 In tomboy application itself there is the option to export notes as html files. In the Menus >> Tools >> Export All Notes To HTML Now you can save the files in your desired path. But you cannot import this backup in another system […]
How to use regular expressions in PostgreSQL with examples
How to set cursor focus to the end of text in textbox using Javascript
This example will be helpful to set the cursor focus to the end of the string in the textbox. Also can reuse the function to set the focus to first character of the textbox. Happy coding!
How to Install PostgreSQL 9.6 in Fedora 30/31/32
This guide explains about, How to install PostgreSQL 9.6 in Fedora 30/31/32. As of now PostgreSQL supports its latest version PostgreSQL 12 in Fedora 32. But still if you wish to install PostgreSQL 9.6 because of your application/language compatibility, this step by step guide will help you. Step 1: Install PostgreSQL 9.6 Repo Installing this repo will […]
Error: PDF could not be generated! Command Error: QSslSocket: cannot resolve CRYPTO_num_locks in wkhtmltopdf or Pdfkit – Solved
QSslSocket Issue The following issue raised while creating pdf using these libraries wkhtmltopdf_binary, wkhtmltopdf, PdfKit. Reason for issues: The above issue may be occurred for any one the following reasons. Recently you may be downgraded some libraries or removed it. You might be tried to install the latest version of ruby through rvm, but failed […]
How to install or update Zoom Client in Fedora
Zoom is the Video Communication software which is mainly useful for Video Conferencing, Meeting, Webinars, Conference Rooms, Phone Systems and Chatting. It is the Free software but with some limitations in the resource. In this blog I am explaining about how to install or update zoom Client If you are doing new installation of Zoom, […]