Akom's Tech Ruminations

Various tech outbursts - code and solutions to practical problems

Reviews Amazon no longer lists the items you ordered in emails

Posted by Admin • Wednesday, December 30. 2015 • Category: Reviews
Which is really a pity. When I search my mailbox for something I ordered, I'd like to find it. I should not have to remember where I ordered it and go to every store website. I tried to bring this up with Amazon customer service with entertaining results:


You are now connected to Pooja from Amazon.com
Me: How can I enable itemized order information in order confirmation emails? I understand that I can view it on your site, I am specifically asking about emails.
Pooja: Hello, my name is Pooja. I'm here to help you today.
Pooja: To be able to pull up your account please provide me your name, e-mail address and the billing address.
Me: My question is not account-specific
Pooja: May I please place you on hold for 2 minutes while I look in to this for you?
Me: Yes please
Pooja: I'm sorry but you'll not be bale to view the order details unless it is directed from the website.
Me: So when I order 10 items from Amazon I cannot have an email listing them?
Pooja: You'll receive an email confirmation for the items once you've completed the order/
Me: This email only lists the first one or two, followed by "... and 8 more items".
Pooja: In the email if you'd click on the link you'd be directed to the site for full item details.
Me: Can I have an email listing all the items?
Pooja: Would you like me to send you one ?
Me: I'd like you to send me one every time I place an order
Pooja: I'm sorry but that is not possible.
Me: Pity

Java Linux Jenkins: Bulk editing jobs to remove a trigger

Posted by Admin • Thursday, December 17. 2015 • Category: DevOps, Java, Linux
I have about 200 jobs that have the HudsonStartupTrigger (this is a plugin) turned on. This makes all of them run every time the master is restarted, causing the build queue to go crazy. I don't know why people turned this on in so many jobs (probably blindly copying jobs) over the years, but I'd like it gone. I don't want to restart the master or uninstall the plugin.

Here is a script console snippet to do this (can be adapted to remove other triggers easily). This does not do folders, if you're using that plugin.


import hudson.triggers.*
 
for (item in Hudson.instance.items) {
    name = item.name
       
  if (item instanceof AbstractProject) {
    triggers = ((AbstractProject)item).getTriggers()
   
    triggers.each{descriptor, trigger ->
      if (descriptor instanceof org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger$HudsonStartupDescriptor) {
            out.println("Removing startup trigger from job " + name)
        ((AbstractProject)item).removeTrigger(descriptor)
      }
    }
  }
}
 

Linux Suse11 cannot mount NFS share

Posted by Admin • Wednesday, December 9. 2015 • Category: DevOps, Linux
This is a recent issue on Suse 11.3. I have hundreds of machines mounting the same share fine - Centos, RedHat, even AIX.
mount -v /mountpoint                                                                                                               
mount.nfs: timeout set for Wed Dec  9 11:09:27 2015
mount.nfs: trying text-based options 'rsize=8192,wsize=8192,intr,hard,addr=X.X.X.X'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=3, prot=17
mount.nfs: portmap query failed: RPC: Program not registered
mount.nfs: prog 100003, trying vers=2, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=2, prot=17
mount.nfs: portmap query failed: RPC: Program not registered
mount.nfs: prog 100003, trying vers=2, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=2, prot=17
mount.nfs: portmap query failed: RPC: Program not registered
mount.nfs: requested NFS version or transport protocol is not supported


Suprisingly, the problem is exactly what it says it is. Adding ",vers=4" to the options takes care of the problem. Hope this saves you time.