Run this command, (assuming the format and mounting was done correctly).
sudo resize2fs /dev/{device}

Kj
Here are the steps you can follow to upgrade NodeJS on an Ubuntu system.
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* ~/.npm sudo rm -rf /usr/local/lib/node* sudo rm -rf /usr/local/bin/node* sudo rm -rf /usr/local/include/node* sudo apt-get purge nodejs npm sudo apt autoremove Download the latest installable archive for your OS from https://nodejs.org/en/download/ tar -xf your-archiveFile sudo mv extracted-archiveFolder-name/bin/* /usr/local/bin/ sudo mv extracted-archiveFolder-name/lib/node_modules/ /usr/local/lib/ node -v #should display the latest version of node
Install Cordova
npm install cordova -g
Create a Cordova project
cordova create ReactBasedPhoneApp
Open package.json of the existing ReactJS App.
Copy the sections – scripts, dependencies, browserList from the above package.json and paste it into the ReactBasedPhoneApp/package.json
Build the existing ReactJS App
npm run build
After the build completes successfully, copy the contents inside the build folder of the existing reactJS app to ReactBasedPhoneApp/www folder
Set Android Home
export ANDROID_SDK_ROOT=/home/{username}/Android/Sdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Add Android plugin
cordova platform add android #in case you use phone camera in the application cordova plugin add cordova-plugin-camera
Build the APK
cordova build android #if you want to debug the app in a running simulator or USB connected android phone cordova run android
Problem: The Cordova App when run on Android give a Connection refused error on https://localhost/* URLs.
Fix: Follow these steps:
Probable Reason: Localhost seems to get routed to the host while the emulator runs the App within a virtual container (assumption).
10.0.2.2 is a special IP mapped to the “localhost” of the emulated environment.

Here are the steps you can follow to upgrade NodeJS on an Ubuntu system.
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* ~/.npm sudo rm -rf /usr/local/lib/node* sudo rm -rf /usr/local/bin/node* sudo rm -rf /usr/local/include/node* sudo apt-get purge nodejs npm sudo apt autoremove Download the latest installable archive for your OS from https://nodejs.org/en/download/ tar -xf your-archiveFile sudo mv extracted-archiveFolder-name/bin/* /usr/local/bin/ sudo mv extracted-archiveFolder-name/lib/node_modules/ /usr/local/lib/ node -v #should display the latest version of node
I had recently lost my domain codemarvels.com; the warning emails from my domain provider was reaching a currently unused inbox, and thus had to spawn up the same website on codemarvels.in (the one that you are currently on).
The only command that worked for me on my EasyEngine deployment (for my ssl enabled website) was:
#upgrade to ee4 with this command wget -qO ee https://rt.cx/ee4 && sudo bash ee #clone existing website to new one. ee site clone codemarvels.com codemarvels.in --ssl=le
If your new domain is mapped to this server, it should be ready for serving.
Follow these steps when maven clean install just doesn’t update the transitive dependencies in nested projects.
rm -rf .m2/repository/path-to-your-library
cd your-project-folder
find . -maxdepth 2 -name "pom.xml" -exec mvn clean -f '{}' \;
mvn clean install -DskipTests=true
#confirm if the versions are as you wanted
mvn dependency:tree | grep -B 75 the-bugging-library
If the above method doesn’t work, you might have missed to add the required version in the dependency management.
Lets assume BL is the library which has been bugging you with these version issues 😉
cd your-mvn-parent-project
vi pom.xml
#add
<dependencyManagement>
<dependencies>
<dependency>
<groupId>BL-group</groupId>
<artifactId>BL-artefact</artifactId>
<version>required-version-of-the-BL</version>
</dependency>
</dependencies>
</dependencyManagement>
Let me know if these steps helped.
Rather than a how to, written as a must do for our servers.
Probably the most important command for 60% of developers out there 🙂
sudo timedatectl set-timezone Asia/Kolkata
Problem: Maven package gives this compile time error when using Open JDK.
Fatal error compiling[m: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [1m[Help 1][m
Reason: Lombok version included in the project seemingly had a dependency on Oracle JDK, which is fixed in 1.18.2
Fix: Upgrade lombok to 1.18.2 in the POM file.
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.2</version> <scope>provided</scope> </dependency>
Glad to write about a twitter bot I had written and launched during the last Independence day – Tat Kim. For those who are not in the know, Tat Kim means “What’s that?” in Sanskrit – a very apt name for a Bot and allied service which answers questions of Sanskrit enthusiasts.
Currently Tat Kim bot can be used to read Sanskrit tweets in your own script (Eg, Malayalam or Kannada) – there by taking away the need to know how to read Hindi (or Devanagari) to be able to consume these tweets.
Sanskrit is a pan-Indian language and it should be free from the constraints of a regional Lipi like Devanagari. Also, it helps to remember that some of the seminal works in Sanskrit were recorded not in Devanagari, but in Grantha Lipi (more or less Malayalam of our times)
If you happen to find a Sanskrit tweet from your favourite Sanskrit tweeple, comment on that tweet in the below format
@TatKimBot {languageCode}
Where language could be one from:
en, hi, bn, gu, kn, ml, or, pa, te, ta, mr
Details of Language codes:
| Code | script |
| en | English |
| hi | Devanagari (Kept to support translations to Hindi at a later point of time) |
| bn | Bengali |
| gu | Gujarati |
| kn | Kannada |
| ml | Malayalam |
| or | Oriya |
| pa | Punjabi |
| te | Telugu |
| ta | Tamizh (The transliterations will be lossful due to Tamil script not being elaborate enough to represent all sounds of Sanskrit) |
| mr | Marathi (Kept to support translations to Marathi at a later point of time) |
Example:
@TatKimBot ml
And the bot responds in 15 seconds as in the below screenshot:

The archives of the transliterations done by Tat Kim Bot will be available at the web portal https://tat.kim
(A sample screenshot below)

Look forward to people finding and using it during the next few months!