uday's blog

How to set up Ubuntu 20.04 laptop

Recently, I could not boot into my laptop because the laptop ran out of space. No attempt to resize sda was successful. Since the disk was encrypted, I could not even access my data files.

I had to wipe out my current installation of Ubuntu 18.10 and install Ubuntu 20.04

Here are the steps I had to take to get the laptop ready.

0. Create Ubuntu iso image CD and install Ubuntu 20.04 onto laptop.

1. Install Mullvad VPN client

2. Customize Firefox browser

Raiser's Edge DLL registration

regsvr32 command can be used to register .dll file as command components in the registry.

Windows commands can be accessed from here.

Examples:

1. Unload Research.bat

The file will contain:

regsvr32 /u /s "%programfiles(x86)%\Blackbaud\Research.dll"
del "%programfiles(x86)%\Blackbaud\Research.dll" 

2. Save Resarch.bat

Rails and environment variables - Lesson Learned 5

I was trying  to send emails from my Rails app and I was NOT getting any success.

As per Rails documentation, I did everything I was supposed to do.

$rails generate mailer UserMailer

Then I created method inside UserMailer class /app/mailers/user_mailer.rb and built the email templates in folder /app/views/user_mailer folder.

Then I added code to invoke the user mailer with following code.

Environment variable

$printenv (or $env) # TODO: I need to investigate what is difference in printenv Vs. env.

(This command will print ALL environment variables.)

$printenv USER

$echo $USER

(This will show value for environment variable = USER )

$printenv | grep RUBY

(This will show only those environment variable that contain RUBY. We have used grep command for this.)

$export EDITOR=atom