Redis user permissions (ACL) and python connection

 Recently, I was working on setting up a redis cluster along with separate users for readwrite and readonly. I setup the readonly user using the below privileges (ACLs):   user redisreadonly on >mySuperSecretPassword ~* resetchannels -@all +@read +ping +asking   Once this is setup, I wrote a simple program in python to connect to the redis cluster using the readonly credentials and print the number of keys.   #!/usr/bin/env python3 """ pip3 install redis """ from redis.cluster import RedisCluster, ClusterNode # ─────── Cluster connection ─────── startup_nodes = [ ClusterNode("redis_host_1", 6379), ClusterNode("redis_host_2", 6379), ClusterNode("redis_host_3", 6379) ] rc = RedisCluster(startup_nodes=startup_nodes,decode_responses=True,username='redisreadonly',password='mySuperSecretPassw...

Solution to "End Program - WMS Idle"

Though this topic is unrelated any Apps DBA topics, I found it necessary to share the solution so that everyone benifits out of it!

Issue:


I used to receive the below error message whenever I tried to shutdown windows XP. A rather vexing problem, no doubt.




Cause:

This message appears because when windows is trying to shutdown and end all the running processes, the WMS idle process keeps working. Thus an end-program message appears. The two most common reasons for this are:

  1. Scout service run by Nero 7
  2. Microsoft Office Communicator 2005

Solution:

The fix is simple, disable the Nero 7 scout service if it is enabled.

For this, go to Start > All Programs > Nero > Tools > Nero Scout.

On this screen ,Uncheck Enable the Nero scout.



This will fix the issue for most of the users, for the rest of you who are not using Nero are most probably getting this error because of Microsoft Office Communicator 2005. For that you need to either manually exit the communicator 2005 from the system tray before you shutdown windows, or also you can use this hot-fix provided by Microsoft for WMI Idle error message.


References: http://www.troublefixers.com/end-program-wms-idle-message-on-windows-shutdown/

Comments

Popular posts from this blog

Interesting Oracle Applications (EBS) Interview Questions

Modify retention period of workflow queues

Check if UTL_FILE and FND_FILE are working fine