Note: I have used Ubuntu 18.04 with Macbook Pro 2017 version.
After hearing so many news about Linux users being able to play games through proton, I could not resist. My laptop that could play decent enough game is a Macbook pro. Therefore I wanted to setup Linux in it. In this article I talk about my setup experience of Ubuntu in Macbook pro. I will also cover my Steam with Proton gaming experience. Continue reading
In this guide I will try to provide necessary steps and some debugging tips to setup Steam Link app and Steam. In this guide, I use Mac OS, PS4 controller, HDMI cable and HDMI to USB-C connector. You will need to adjust the setup if you have different devices and OS. Lets get started. Continue reading
In this tutorial I will list few commands that can be used to convert set of web pages (recursively) to a single pdf document.
First, download the web pages.
$ cd /tmp
$ mkdir wget
$ wget --mirror -w 2 -p --html-extension --convert-links -P /tmp/wget http://www.someweblink.com/somedir
In my last post, I talked about setting up Emacs with Prelude. With Prelude you get most of the features many professionals spend days setting up their emacs. I believe it is right set of features to start with.
In this post, I will expand on that and talk about how to leverage the features for actual work. I will talk about features that I use all the time.
Everyone’s work style and use case is different. Emacs does not come with all the features one might need. It is not uncommon to switch between emacs and terminal window to seperate editing and execution/processing of documents. However, if you repeat that process for all your work, it may be beneficial to use lisp functions to ease your work. I will talk that in later half of this post. Continue reading
Prelude provides a pre-defined set of functionalities that modernizes emacs without the user requiring to install countless packages and initializing them manually. Therefore, prelude can be a good starting point for your emacs setup.
However, the default installation of prelude will override all your packages including the startup init.el file. It auto-generates the init.el file.
If you want to manually enable packages or scripts you can do that in ~/.emacs.d/personal directory.
For installation of Prelude with default settings and packages run following command.
curl -L https://git.io/epre | sh
See https://github.com/bbatsov/prelude for more information.
If you start emacs, it should initialize and install the required packages. Continue reading
Key points of Java
- In Java, all methods are declared in a class. You invoke a nonstatic method on an object of the class to which the method belongs.
- Static methods are not invoked on objects.
- Java has eight primitive types: five integral types, two floating-point types, and boolean.
- The Math class provides common mathematical functions.
- String objects are sequences of unicode code points in UTF-16 encoding. Or more precisely code units, the 16-bit quantities of the UTF-16 encoding.
- With the System.out object, you can display output in a terminal window. A Scanner tied to System.in lets you read terminal input.
- Arrays and collections can be used to collect elements of the same type.
If you are a long time Arch Linux user, you probably have collected huge number of packages. Most of them you probably don’t need. May be you thought about cleaning up the packages by removing the core GUI packages E.g., gnome or xorg-server. If you use -Rsc argument then most of its dependent packages are also removed. After the packages are uninstalled you will start from the basics and install the core packages, so that you can pick and choose the ones you require as you need them later. You might forget to install some of the packages that is needed for boot (E.g., The kernel itself linux, systemd or grub or may be mkinitcpio). These packages are core for Arch to work. If you forget to install these packages you might end up with an empty grub prompt.