Command to filter the file with tag amenity=school and write the filtered data in second file.
$ osmosis –read-xml file=”ludhiana.osm” –nkv keyValueList=”amenity.school” –write-xml file=”school.osm”
Do you want to update your OSM data without deleting existing data?
So here are the steps given below.
Derive a change set between two files. The first file is the file after changing, the second planet file is the file before changing. The changeset will be written in the third file.
$ osmosis –read-xml file=”classroom.osm” –read-xml file=”class_lib_tcc.osm” –derive-change –write-xml-change file=”classroom_classlibtcc_diff.osm”
Dump the changeset to the database in append mode. It means it will change only affected data. Rest will exist there.
$ osm2pgsql –slim -a -d classroom -C 2500 –hstore -S openstreetmap-carto.style ~/osmosis_files/class_audi_diff.osm
And you are done.:)
Note: Osmosis and osm2pgsql have different schemas. So for using postgis flags of osmosis we have to create schema compatible with osmosis. I followed this link to create ans setup database.
For my satisfaction, I have written that command again.
$ psql -d classroom -f /home/amisha/osm/osmosis/script/pgsnapshot_schema_0.6_action.sql
Variety is an open source wallpaper changer for linux.
- It allows to set your own wallpapers.
- Provide an option to change wallpaper automatically on hourly, daily basis.
sudo add-apt-repository ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety
Open it either from dashboard or from terminal by running command “variety”. Set it according to your needs.
Screenlets: Desktop Widgets
The next thing to make your Ubuntu more beautiful is to display desktop widgets like clock, infoPanelDesktop in Ubuntu system with the help of Screenlets software using this link.
Wireshark: Packet Analyzer
Install Wireshark from this link.
Are you bored of using standard vim editor?
Do you really want to style and customise your vim editor? Then what you are waiting for.
I have configured vim using this link . The complete source code and documentation of vimrc file is written in my Github repo
Just follow the instruction given in the README.md file and impress your friends with it.;-)
After adding and installing plugin “YouCompleteMe” for auto-complete I was getting message while opening any file with vim.
Even after running command :YcmRestartServer the problem stucked. After searcing on internet, I ran the python script “install.py” under “$HOME/.vim/bundle/YouCompleteMe”
The following table contains some of vim basic commands and the commands run for my vimrc file.
|Type v, yank lines then press Ctrl-c
||It will copy lines in visual mode. It will work if you copy this .vimrc file.
|Tap Esc, then Ctrl -p
||It will paste lines in normal mode. It will work if you copy this .vimrc file.
||It will open that file within the vim editor. You can also select file instead of typing filename. For that type :Te and then open NerdTree(Ctrl +n) and select the exact file.
||Switch between the files opened with :Te command.
|Ctrl + ww
||Switch between the files opened with :Te command.
||It enables the search within the vim. It uses plugin ctrlp.vim.
||Split the layout vertically. It means the vim window is divided in two parts upper and lower.
||Split the layout horizontally. It means the vim window is divided in two parts left and right.
||Switch to that particular buffer.
||List all buffers. Buffers are the files open in that vim session.
||To reach the beginning of a line.
||To reach end of a line.
||Move to the next occurrence of the word under cursor.
||Move to the previous occurrence of the word under cursor.
||To reach beginning of a file.
||To reach end of a file.
||To insert text into a new line.
||Deletes the first word on the right side of the cursor.
||To repeat the previous command.
||To delete a character.
||Delete from cursor to the end of current line.
||Copy 5 lines.
||To go to particular line number.
|Yank lines,then type :e filename.
||Copy-paste from one file to other. Filename is the destination file where you want to paste the lines.
What is Bitcoin?
Bitcoin is a new currency that was created in 2009 by an unknown person using the alias Satoshi Nakamoto and released as open-source software. It is a cryptocurrency and worldwide payment system. It is the first decentralized digital currency .
Transactions are made with no middle men – meaning, no banks! The price of bitcoin skyrocketed into the thousands in 2017.
With the help of bitcoins, international payments are easy and cheap because they are not tied to any country or subject to regulation.
Some people just buy bitcoins as an investment, hoping that they’ll go up in value.
Bitcoins are stored in a “digital wallet,” which exists either in the cloud or on a user’s computer. Bitcoins are traded from one personal ‘wallet’ to another ( peer to peer communication).
Though each bitcoin transaction is recorded in a public log, names of buyers and sellers are never revealed – only their wallet IDs. That’s why it has become the currency of choice for people online buying drugs or other illicit activities.
Why bitcoins in demand?
1. It does not rely on a central bank.
2. Due to limited supply, people will pay more to get the coins they think have value.
3. It can be used for investment.
Future in question
No one knows what will become of bitcoin. It is mostly unregulated, but some countries like Japan, China and Australia have begun weighing regulations. Governments are concerned about taxation and their lack of control over the currency.