New things

Today I installed java and eclipse on windows. I was getting an error while installing eclipse due to some problem with jdk setup. So, I installed a fresh jdk8. Later on, I have to set the java environment till the java/bin.

For setting java path: https://www.javatpoint.com/how-to-set-path-in-java

As a result, eclipse started working and now I want to install Remote Server Explorer (RSE).

Now, install RSE from eclipse marketplace.  Follow this blog’s video : Installation

Now, build a connection with any remote server.

Besides, I encountered a new site for brushing up the basics of HTML and CSS. I really found it interesting and more informative.

http://learnlayout.com/

https://learn.shayhowe.com/

Apart from this I get to know about two different chat platforms for teams: Flock and HipChat.

https://flock.com/in/

https://www.atlassian.com/software/hipchat

 

 

Advertisements

Enhancing Skills

Hello everyone.

In the blog post, I will be delivering my day to day experience regarding technical stuff. In my previous post, I have discussed about Rocket Chat which got implemented today.

3.PNG

Here are few screenshots, I would like to share.

2

Besides this, I will annotate about the errors I encountered while attempting this task.

My system’s dpkg was interupted, so I have to run:

sudo dpkg --configure -a

But, I was facing another problem:

dpkg: error: parsing file ‘/var/lib/dpkg/updates/0045’ near line 0: newline in fieldname `#padding’

Solution:

cd /var/lib/dpkg/updates && sudo rm -rf 0045

1

Afterwards, I got to know about a new thing that is Google App Engine. One can follow this to run a basic Java Application: Guestbook

Apart from this, one of the best page for understanding GAE’s datastore: https://github.com/objectify/objectify/wiki/Concepts

I will be discussing about the key areas where I got stuck:

You need to have Maven version 3.5, I was having 3.1.1 which got me in trouble. Later, I was with 3.3.x which made things set straight.

Install Maven 3.3.9

But still, 3.5 is advisable.

Also, one of the other dependency is JDK.

<

p class=”lang-java prettyprint prettyprinted”>sudo add-apt-repository ppa:webupd8team/java -y

sudo apt-get update

sudo apt-get install oracle-java8-installer

Now you don’t need to bother about Dependencies, let Maven do it’s job.

What is Maven?  Maven addresses two aspects of building software: first, it describes how software is built, and second, it describes its dependencies. It is a build automation tool used primarily for Java projects.

In Yiddish, the word maven means “accumulator of knowledge” 🙂

Though, Maven creates it own new VM. Hence, for accessing it on remote browser. You need to do some changes in pom.xml file. Just add:

<address>0.0.0.0</address>
<port>8080</port>

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.

f

Now, you can see your work on http://Ip_Address:8080

gg

I also get acquainted about Java Servlets and JSP. Give a look: http://met.guc.edu.eg/OnlineTutorials/JSP%20-%20Servlets/A%20servlet%20example.aspx

 

 

 

 

 

Daily Dose!

Hey folks!

Today I encountered with a strange problem. Few days back I was installing Ubuntu 16.04.01 VM. Today when I operated it, I noticed that it was reading something else against my keywords.

Example: Though I was typing ?, but it was displaying .

I was really bumfuzzled and then I realised it’s happening because of an exception in keyboard configuration. To solve my issue I gave command:

dpkg-reconfigure keyboard-configuration

ooh la la :p  It worked.

The other thing I came across with is IP conflict. I cloned a VM and not I was getting same IP address for two parallel VM’s.

For getting rid of this, I shut down a VM and went to:

Settings -> Network -> Advanced -> MAC Address Refresh

Matter solved 🙂

I also get to know about a way to publish a static webpage on github. You can follow this procedure: https://pages.github.com/

Apart from this, for downloading a whole website using wget, go for:

wget –random-wait -r -p robots=off -U mozilla www.example.com

Also, I wanted to change content in no. of files. What I need id to replace .html with .php. So I used:

sed -i 's/.html/.php/g' *.html

You may go through my old blog related to sed: https://deepti96.wordpress.com/2016/04/05/sed-command/

I also installed Rocket Chat on Ubuntu today.

One can follow :

apt-get install mongodb

systemctl enable mongodb
systemctl start mongodb

Apart from this, I get back to ERPNext for GST Forms and for migrating the changes donw on a single server to other, What I followed: Backup and Restore

I have to rename a database as the name was creating a conflict.

Documentation: Dropbox

To unzip a .sql.gz file:

gzip -d a.sql.gz

 

Unprecedented things!

Today I installed LXDE in my ubuntu. For accomplishing this task:

sudo apt-get install lxde

Further, it will create session files under:  /usr/share/xsessions 

LXDE.desktop         openbox.desktop

It’s a light weight desktop version and I found it really cool. But somehow I have to uninstall it later on (official reason).

sudo apt-get –purge autoremove lxde

c1.PNG

Apart from this, I was trying to install phpmyadmin and not only this program. Usually whenever I try to install stuff I encountered an error related to unmet dependencies and uninstallable candidate.
So, for banishing this:
sudo rm -rf  /var/lib/apt/lists/*
sudo apt-get update
Then, sudo apt-get install phpmyadmin
Further, add this in /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache2.conf
Now, restart apache2.
Beside this, I get to know about an open source Accounting Software today i.e ERP Next
e1.PNG
ERPNext  can setup email alerts on anything, Invoices, Orders, Leads, Opportunities, so you never miss a thing.
e2.PNG
Beside this, some previous work regarding project and website.

SEO Website

Today I brushed up some of the basic key terms related to Page Rank of a website. I get to know about Back-links: http://smallseotools.com/backlink-checker/ 

Also you can check it using: www.seoreviewtools.com/valuable-backlinks-checker/

OR http://www.backlinkwatch.com

To get more backlinks for your blog, there are no. of ways like write good content etc. Plus, start commenting on these forums: Increase Backlinks

Also, can be silly but I am the one who likes writing everything in her blog starting from a penny to huge things. I didn’t knew about shortcut for Redo i.e “Ctrl+ Y”

Moreover, I get  introduced with a tool to download almost any website: (HTTracker Website) https://www.httrack.com/

I searched with google Australia to figure out highest ranking websites over there (https://www.google.com.au/?gws_rd=ssl)

We are gonna make a website related to Hair Transplant with 0% Plagiarism. It must be optimized and must get at least an average page rank. I also get to know about Google AD words Keyword planner to enhance the Ranking.

Also I practiced some of the aptitude questions, brushed up technical and non-technical questions from here: http://cpt.hitbullseye.com/Infosys-Aptitude-Questions.php

Plus, I get to know a method for reading latest content. On Google Go to tools and select option as per your need.

Also, from a long time I was getting a warning on my terminal whenever I work with sudo:

sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700

For solving:

sudo chown -R root:sudo /var/lib/sudo   
sudo chmod -R 700 /var/lib/sudo  

I was getting above error because  the current permissions of /var/lib/sudo allow either the file’s group or the other group to write into the directory, while only the owner (root) should be able to do so.

Apart from this I was also facing another warning

W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)

Solution:

sudo rm /etc/apt/sources.list.d/google-chrome.list

Beside this, one of my software hanged my system, so to kill that process:

ps aux | grep <software name>

sudo kill -9 <Id number>

To my surprise, I get to know an interesting thing today. May be many of you are acquainted with this but still I would like to share.
Today when I was working, I noticed that for same file Windows and Ubuntu are showing different sizes.
At first, It made me sought of thinking like corrupted file or something.
Later on, I noticed that each OS has it’s own paradigm. One was showing 1.2 GB size and the other was 1.10 GB. (Though the bytes shown are same)
It was because in Windows, 1 KB = 1024 Bytes
Whereas, Ubuntu assumes 1 KB = 1000 Bytes

w.PNG

w.png

Also, for making unique logos, there is an online tool: http://www.onlinelogomaker.com/

To check whether your system is 32 or 64 bit, “run dxdiag” on Windows.

On Linux, go with commands like:

uname -m
or
arch

Moreover, “uname -a” will give alot of information like:
Kernel name, network node hostname, kernel release, kernel version, machine hardware name, processor type, hardware platform and operating system.

Also I created a basic documentation using Doxygen.

sudo apt-get install doxygen

doxygen -g <config-file>  //For creating a file

doxygen <config-file>  //For generating documentation in LaTeX, HTML etc formats.