Showing posts with label content. Show all posts
Showing posts with label content. Show all posts
Thursday, July 13, 2017
Display File Content with Colors and Line Number Alternative to cat Ubuntu
Display File Content with Colors and Line Number Alternative to cat Ubuntu
Sometimes you may want to quickly display the contents of a file directly on the command line with the `cat` command. And sometimes the contents of that file is the source code of a program.
If you want to display the source code markup with colors and line numbers, then this trick is what you are looking for.
What you need to do first is install Pygments, a python syntax highlighter.
sudo apt-get install python-pygments python3-pygmentsAfter installing pygments, you can now view source code with colored markups. just run the ff:
pygmentize testfile.rbNow for the line numbers, you will have to pipe the `nl` command
pygmentize testfile.rb | nl --body-numbering=aThe option
--body-numberingmeans it will accept a style for line numbering and it is any of the ff:
a - number all lines
t - number only nonempty lines
n - number no lines
I used a so that everything will be numbered including empty lines.
We can actually add nl options in bash alias so that we do not have to type it everytime.
alias nl=nl --body-number=aWhile at it, lets also shorten the pygmentize command.
alias ccat=pygmentizeNow the source code syntax will be highlighted everytime we ran this command:
ccat testfile.rb | nl
Friday, May 19, 2017
Destiny 2 Will Still Have Playstation Exclusive Content
Destiny 2 Will Still Have Playstation Exclusive Content

Sony will likely share more information about what the exclusives coming to the PS4 will be in the coming months, assumedly at its E3 conference (where Destiny has traditionally been shown), with the trailer�s fine print stating: �More details to come this summer.�
While many fans have grown averse to idea of console exclusives, the partnership between Bungie and PlayStation is nothing new. In fact, Destiny has always offered exclusive content to Sony consoles since the launch of vanilla Destiny. Some of that content has been relatively minor, while at other times, that content has included additional PvP maps and some of the best exotic weapons in the game.
This news also adds another layer onto the rumor that Destiny 2 will be coming to PC, which if it does, looks to join the Xbox One in not having first access to all the available content. Also, while it says that it is a timed exclusive, there is no guarantee that the exclusive content will even come to other platforms.
Currently, there is a handful of exclusive content in Destiny on PS4 that has never made its way to Xbox One, such as The Jade Rabbit exotic scout rifle. And it looks like Destiny fans on Xbox may never get it. Today�s Age of Triumph live event is the last piece of content that Destiny will receive, and it did not include adding those exclusives to Xbox, which is likely the last chance to do so.
The �Last Call� trailer is a teaser for a full reveal trailer, which is set to debut on Thursday, March 30 at 10 a.m. Pacific.
Destiny 2 is in production, set for release in 2017.
Saturday, May 13, 2017
Disable and Enable Automatic update in Workbook links of External Content section Microsoft Office Excel 2007
Disable and Enable Automatic update in Workbook links of External Content section Microsoft Office Excel 2007
=======================================================
To Enable and Disable Automatic Update For Data Connections of Blocked Content of Workbook links in External Content section [Trust Center Setting]
=======================================================
Follow these Steps:
- 1. Click the Microsoft Office Button, and then click Excel Options
- 2. Click Trust Center
- 3. Click Trust Center Settings
- 4. Click External Content
Prompt user about Data Connections and Prompt user on automatic update for Workbook Links
To Disable Check: Check the Radio Button of The Following..
Disable automatic for Workbook link and Disable all Data connection.
- 5. Click Message Bar.
To Enable: Check the Radio Button of The Following..
Show the Message Bar in All Application when content has been block.
To Disable Check: Check the Radio Button of The Following..
Never Show information about blocked content. .
- 6. Click OK to close the Trust Center dialog box.
- 7. Click OK to close the Excel Options dialog box.
Subscribe in a reader
Subscribe to:
Posts (Atom)