Skip to content

Instantly share code, notes, and snippets.

@VenkataRaju
VenkataRaju / After Ubuntu Installation.txt
Last active March 16, 2023 13:37
After Ubuntu Installation
1) Install QuiteRSS (Instructions https://quiterss.org/quiterss-for-other-os)
sudo add-apt-repository ppa:quiterss/quiterss
sudo apt-get update
sudo apt-get install quiterss
Note: While copypasting above commands from the website, first copy them to notepad (some characters seem to be causing problem, installation stalls)
2) Disable guest session (Ubuntu 16.04)
sudo sh -c 'printf "[Seat:*]\nallow-guest=false\n" >/etc/lightdm/lightdm.conf.d/50-no-guest.conf'
To undo (restore Guest option), remove the file created:
sudo rm /etc/lightdm/lightdm.conf.d/50-no-guest.conf
More info: https://askubuntu.com/questions/62564/how-do-i-disable-the-guest-session
@VenkataRaju
VenkataRaju / Util.java
Last active June 29, 2021 17:16
Java Util
public final class Util
{
/** Returns unique parent paths without their child paths */
public static Collection<Path> uniqueParentPaths(Collection<Path> paths)
{
if (paths.isEmpty())
return Collections.emptySet();
Set<Path> parentPaths = new TreeSet<>(paths);
@VenkataRaju
VenkataRaju / Ubuntu Softwares.txt
Last active June 6, 2021 10:11
Ubuntu Softwares
Notepadqq: Text editor
Meld: Text files diff and merge (No context menu to select 2 files and open the application)
KDiff3: Text files diff and merge (Context menu to select 2 files and open the application. Also select files one after the other)
KDiff is creashing. Meld is better though there is no context menu
Firefox
Useful Addons:
1) Complete Youtube Saver
2) Disable Ctrl-Q shortcut
@VenkataRaju
VenkataRaju / Java Unicode Notes.txt
Last active August 11, 2020 12:34
Java Unicode Notes
U+FFFF (Uniicode repesentation) is same as 0xFFFF (Hexa decimal)
To convert "U+FFFF" to code point
int codepoint=Integer.parseInt(str.substring(2), 16);
Basic Multilingual Pane (BMP) = U+00000 ( 0) to U+FFFF ( 65535) (1111111111111111 (16 1s) in Binary)
Supplementary chars = U+10000 (65536) to U+10FFFF (1114111)
All unicode characters = U+00000 ( 0) to U+10FFFF (1114111)
An unicode character in Java represented by two UTF-16 characters
@VenkataRaju
VenkataRaju / ExcelParser.java
Last active June 30, 2020 04:07
Parses Excel(only .xlsx) file in SAX style
package excelparser;
import com.google.common.base.Joiner;
import static com.google.common.base.Preconditions.*;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
@VenkataRaju
VenkataRaju / AndroidApps.md
Last active June 21, 2020 13:48
Android Apps

. Call Recorder - ACR from 'NLL' (nllapps.com)

. Code Viewer from Pavel Gudkov

. Evernote- Organizer, Planner for Notes & Memos from 'Evernote Corporation'

. IP Webcam from 'Pavel Khlebovich'

. Lock Screen from olalab

@VenkataRaju
VenkataRaju / KotlinAnnoyances.md
Last active March 16, 2020 15:55
Kotlin Annoyances
@VenkataRaju
VenkataRaju / Create a wifi hotspot in Ubuntu 16.04 laptop.txt
Last active February 27, 2020 09:10
Create a wifi hotspot in Ubuntu 16.04 laptop
1. Click on Network Icon on top panel
🡪 Edit Connections
🡪 click on "Wifi" in the pop-up
🡪 click on "Add" button in the pop-up
2. In the popup, choose Hardware > Wi-Fi 🡪 click on "Create"
3. In the next pop-up
a. Give connection a name. e.g. laptop-wifi-hotspot
b. In "General" tab
1. Uncheck 'Automatically connect to this network when it is available'
Note: Otherwise, since the hotspot is always active, you won't see the menu entries to connect to other Wi-Fi networks in the network manager
@VenkataRaju
VenkataRaju / TeluguMaasaaluRutuvulu.html
Last active January 21, 2020 01:52
భారతదేశంలోని ఋతువులు, అవి ఏ మాసంలో వస్తాయి, వాటి లక్షణాలు Telugu Maasaalu Rutuvulu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>భారతదేశంలోని ఋతువులు, అవి ఏ మాసంలో వస్తాయి, వాటి లక్షణాలు</title>
<style>
body
{
text-align: center;
cursor: default;
@VenkataRaju
VenkataRaju / AccessCountingCharSequence.java
Last active January 20, 2020 08:03
Access Counting CharSequence
public final class AccessCountingCharSequence implements CharSequence
{
private final CharSequence str;
private final List<Integer> accessCounts = new ArrayList<>();
private final List<Integer> unmodifiableAccessCounts = Collections.unmodifiableList(accessCounts);
private int accessCount = 0;
public AccessCountingCharSequence(CharSequence str)
{