When I installed new Ubuntu 18.04, first thing I have my mind is to move the Dock at botton. I was very happy to see that Ubuntu 18.04 is already provided that option, to enable this you need to go to setting > Dock and then “Position of screen” to bottom.
Yessss, it works.
After this one more thing I noticed is “Show applications” is showing at the right side of the Dock but I like it on the left (Event in old versions and mac/ windows its in left). I tried to search in google but nothing found so I thought of writing a notes about it. And finally, I got it working so I thought it will be good to share it with everyone.
Here is the command you need to run for this
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true
Yayyy, its working.
And of course, to back set it false:
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top false
But it will take about 3-5 minutes to make all the setup under Linux properly. We need to run a upscmd at last, but there are a few steps before that.
First of all, install nut package:
$ sudo apt install nut
Append following lines to /etc/nut/ups.conf according to your ups device (descparameter not important, you don’t need to give correct brand name either but the given section name will be used later to identify configured ups device, we’re using eaton as config section name here):
driver = usbhid-ups
port = auto
desc = "Eaton 5E"
We’re so close, now append following lines to /etc/nut/upsd.users, change the username admin or password as you want:
password = "test1234"
actions = SET
instcmds = ALL
Reload upsd with the new users config:
$ sudo upsd -c reload
You can query the list of the commands which will be supported by your ups device with the upscmd:
$ upscmd -l eaton
Instant commands supported on UPS [eaton]:
beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.mute - Temporarily mute the UPS beeper
beeper.off - Obsolete (use beeper.disable or beeper.mute)
beeper.on - Obsolete (use beeper.enable)
load.off - Turn off the load immediately
load.off.delay - Turn off the load with a delay (seconds)
shutdown.stop - Stop a shutdown in progress
As you can see, there is a command named beeper.disable and we’ll be execute this command (give the username and password which we configured just before):
$ upscmd eaton beeper.disable
Username (root): admin
Now check the beeper status again:
$ upsc eaton ups.beeper.status
That’s it. It takes some time but your ears will be happy.
Apache CXF First JAX-WS (SOAP Web Service) Example (CXFNonSpringServlet)
The most of the people think that the Apache CXF supports only to develop Spring based Web Services. this is NOT true. is supports to build both Spring based and Non spring based web services.
1. CXFServlet – this will support for the Spring based web services.
2. CXFNonSpringServlet – this will support for the non spring web services.the purpose of this article is to demonstrate how to develop non spring based web service with Apache CXF. i have already developed and tetsed the service with SoapUI. i am just sharing the source code for your reference.the project structure looks as below.,
Recently started in debug mode on Transmission and I see:
[17:42:40.319] UDP Failed to set receive buffer: requested 4194304, got 262142 (tr-udp.c:75)
[17:42:40.319] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[17:42:40.319] UDP Failed to set send buffer: requested 1048576, got 262142 (tr-udp.c:86)
[17:42:40.319] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
By tuning the two variables, higher throughput can be achieved more easily using uTP.
Here’s the relevant part from the changeset :
Since we are using a single UDP socket to implement multiple UTP sockets,
and since we are not always timely in servicing an incoming UDP packet,
it is important to use a large receive buffer. The send buffer is probably
less critical, we increase it nonetheless.
Four megabytes might seem huge for embedded clients, but running behind a dedicated connection, it might even become too small. I recommend using 16 megabytes for receive buffering and 4 for the send buffer. That is, because uTP implements a retransmission algorithm and by scaling up the buffers we can achieve fewer retransmits because of dropped datagrams. Let’s set it up that way.