Could fix the touch-pad of my Ubuntu system which went off due to an unknown reason with these commands –
- On terminal run –
- sudo rmmod i2c_hid
- sudo modprobe i2c_hid
- Restart the system.
Could fix the touch-pad of my Ubuntu system which went off due to an unknown reason with these commands –
Just thought of sharing this.
If you buy a new laptop bag, you have to be careful to remove the small sachets that contain small silica balls (or whatever they are. See photo).
I allowed them to remain in the bag (new one from American Tourister), the sachets broke, and the released silica balls entered the USB, HDMI, LAN and audio slots of the laptop.
While I could get rid of them from other slots, a nasty particle is still stuck in the 3.5 mm audio slot. (Because I didn’t know of it and pushed in the audio jack, which took the darn ball further down the slot)
So yes, remember to to remove such sachets from your laptop bag before you use them.
Problem : Getting the message “Websocket already in CLOSED or CLOSING state” from browser console after sending the first message.
Reason: The packet size is larger than the one set for Text/Binary message on Spring WebSocket handler.
Fix: Increase size limit for individual packages/frames in the Spring handler –
[java]
@Override
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
session.setTextMessageSizeLimit(1024 * 1024);
session.setBinaryMessageSizeLimit(1024 * 1024);
log.info(“Connection established”);
}
[/java]
Problem : UTF-8 content is displayed and treated as garbage (eg: DL4J vector search misses all the time)
Reason: User’s default encoding not set to UTF-8.
Fix: Set default encoding to UTF-8
Edit ~/.profile to include this –
export LC_CTYPE=en_US.UTF-8
Save, logout of SSH, login back and restart applications.
Problem : JSON file which store top level JSON arrays just wouldn’t parse (using org.json library), and gives out an error message like – “Json Array should begin with [ …..”. Editors like Vim or Gedit or IntelliJ show no errors (or any character before “[” )in these files.
Reason : Byte order marker character is prefixed to the file content (this was probably added when I converted the files from UTF-16 to UTF-8).
Fix:
Problem : Pressing Tab keys not auto-completing when using Bash within a VNC session (to guest VM running on Ubuntu and XFCE.)
Reason : Unknown, possibly tabs are caught and consumed by the window switch handler.
Fix:
Reference : https://ubuntuforums.org/archive/index.php/t-1771058.html
Problem : When connected from a remote client, this error is thrown (at client) – An unexpected connection driver error occured (Exception message: Socket closed)
Reason : As per default settings, the default user (“guest”) can access only from localhost (or Loop back IP).
Fix: Remove “guest” user from “loopback_users”. This is how –
[bash]
sudo vi /etc/rabbitmq/rabbitmq.config # create new file if in Ubuntu
[{rabbit, [{loopback_users, []}]}]. # Add this line, save and quit vim.
sudo rabbit-server restart # this mostly fails. So we grep & kill in next steps.
ps auxx|grep rabbitmq # gives multiple processes
kill -9 3099 3288 3289 10263 # process-Ids are place holders
sudo rabbitmq-server start
[/bash]
Should be able to connect from remote clients now.
This is how I could make Spring Zuul work with my backend XMPP (over BOSH) server which had a hanging post of 5 mins.
Please find the relevant settings in application.yml here –
[bash]
zuul:
add-host-header: true
host:
connect-timeout-millis: 5000
socket-timeout-millis: 601000
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 601000
xmppServer:
execution:
timeout:
enabled: false;
ribbon:
eureka:
enabled: false
xmppServer:
ribbon:
ReadTimeout: 601000
ConnectTimeout: 601000
[/bash]