sigil – ebook editor

2018-06-18 2 min read Fedora

sigil is WYSIWYG ebook editor, here are more details.

 

Name         : sigil

Version : 0.9.9 Release : 2.fc28 Arch : x86_64 Size : 3.6 M Source : sigil-0.9.9-2.fc28.src.rpm Repo : fedora Summary : WYSIWYG ebook editor URL : https://sigil-ebook.com/ License : GPLv3+ Description : Sigil is a multi-platform WYSIWYG ebook editor. It is designed to edit books : in ePub format. : : Now what does it have to offer… : : * Full Unicode support: everything you see in Sigil is in UTF-16 : * Full EPUB spec support : * WYSIWYG editing : * Multiple Views: Book View, Code View and Split View : * Metadata editor with full support for all possible metadata entries with : full descriptions for each : * Table Of Contents editor : * Multi-level TOC support : * Book View fully supports the display of any XHTML document possible under : the OPS spec : * SVG support : * Basic XPGT support : * Advanced automatic conversion of all imported documents to Unicode : * Currently imports TXT, HTML and EPUB files; more will be added with time : * Embedded HTML Tidy; all imported documents are thoroughly cleaned; : changing views cleans the document so no matter how much you screw up : your code, it will fix it (usually)

Continue reading

ranger – try terminal file manager

2018-06-11 1 min read Fedora Learning

ranger is a terminal file manager, just install and run and have some fun.

Tip: You might want to try it on uxrvt terminal and in Photos folder once.

 

Name : ranger
Version : 1.7.2
Release : 8.fc28
Arch : noarch
Size : 1.2 M
Source : ranger-1.7.2-8.fc28.src.rpm
Repo : @System
From repo : fedora
Summary : A flexible console file manager
URL : http://savannah.nongnu.org/projects/ranger/
License : GPLv3+
Description : Ranger is a free console file manager that gives you greater flexibility and a
good overview of your files without having to leave your *nix console. It
visualizes the directory tree in two dimensions: the directory hierarchy on
one, lists of files on the other, with a preview to the right so you know where
you’ll be going.

glances – new way to look at contention

2018-06-04 1 min read Fedora

glances is like top/htop but little different. It shows you sort based on contention (smartly and automatically) unless you change that and hence if you just want to check what is biggest bottleneck in system, then head over to glances quickly. Here is quick description from dnf info command

 

Name : glances
Version : 2.11.1
Release : 2.fc28
Arch : noarch
Size : 3.2 M
Source : glances-2.11.1-2.fc28.src.rpm
Repo : @System
From repo : fedora
Summary : CLI curses based monitoring tool
URL : https://github.com/nicolargo/glances
License : GPLv3
Description : Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.
Glances uses the PsUtil library to get information from your system.
It is developed in Python.

Python Class Attributes: An Overly Thorough Guide

2018-05-21 26 min read Uncategorized

This article is originally published at Toptal.

I had a programming interview recently, a phone-screen in which we used a collaborative text editor.

I was asked to implement a certain API, and chose to do so in Python. Abstracting away the problem statement, let’s say I needed a class whose instances stored some 

  <td>
    <div class="text codecolorer">
      data
    </div>
  </td>
</tr>
1

 and some 

  <td>
    <div class="text codecolorer">
      other_data
    </div>
  </td>
</tr>
1

.

Continue reading

Rails Service Objects: A Comprehensive Guide

2018-05-07 20 min read Uncategorized

This post was written by Amin Shah Gilani, Ruby Developer for Toptal.

Ruby on Rails ships with everything you need to prototype your application quickly, but when your codebase starts growing, you’ll run into scenarios where the conventional Fat Model, Skinny Controller mantra breaks. When your business logic can’t fit into either a model or a controller, that’s when service objects come in and let us separate every business action into its own Ruby object.

Continue reading

Display IP address in console login screen

2018-04-30 1 min read Learning

Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers):

(ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' ',';echo)>>/etc/issue

Just execute the above command as root. It will add the required code in “/etc/issue” to display the IP address. BTW, you can also use “\4” or “\6” instead of that command to get the IP but that will not work with some old versions of Linux.

Continue reading

Port php mysql scripts to php 7.0 from 5.x version

2018-04-23 2 min read Learning

Recently I got a script or series of scripts that were written for PHP 5.6x and hence used mysql_connect which as you know by now does not work with PHP 7.0. Since there were number of scripts, I thought it would be waste of time to change them manually and wrote a script to fix them. If you have similar situation then probably this few lines could help you.

Since my scripts did not use all the functions so I did not put the sed commands for all of them but you get the idea 🙂

Continue reading
Older posts Newer posts