Posts published by: Alejandro Liu

Chrome Kerberos Authentication

To config chrome to use kerberos authentication you need to start the application the following parameter: auth-server-whitelist - Allowed FQDN - Set the FQDN of the IdP Server. Example: chrome --auth-server-whitelist="*aai-logon.domain-a.com" auth-negotiate-delegate-whitelist - For which FQDN credential delegation will be allowed. ...

Deploying Chrome Extensions

The following links outline how to deploy Chrome extensions in a enterprise manner: Installing Chrome Extensions Other Deployment Options Force Installing Extensions ...

wp-cron and cron

Normal WordPress operation has a cron like functionality that runs scheduled tasks as users visit the blog. It is possible to replace this with a standalone cron (like UNIX cron). To disable the "webcron" (i.e. trigerring tasks as URLs are visited) add to your wp-config.php the following: define('DISABLE_WP_CRON', true); Then call this from cron: ...

Using wget with given IP/vhost

This is one neat trick. For vhosts you can connect with an IP yet provide the right host name with the following: wget http://1.1.1.1/ --header 'Host: www.example.com' ...

Using a NAS200 as a Print server

Last weekend I had a small weekend project to move my All-In-One Printer/Scanner from my Xen host server to a spare NAS200 I had lying around. Since the NAS200 has a i486 compatible CPU, and I had been able to run a CentOS 5 distro before, I figure it would make a good server with low power consumption. For that I updated my NASCC firmware so that it would boot a USB key, and update my CentOS image creation script. This worked well, I was able to boot CentOS without that much effort altogether. I myself have an Epson Stylus CX5500 which unfortunately only comes with binary drivers. This was not much of a problem since the NAS200 has a i486 compatible CPU. I find this is relatively unique among different NAS models. Alas, the performance was quite disappointing. I should be used to the NAS200 underperforming. But really, this was truly sad. I did not bother to test the printing, but I did try scanning with it. Running scanimage to scan a single page was taking over 15 minutes before I hit Ctrl+C. It was an idea, but the results were so sub par. The only take-aways of this are: ...

UNIX find with dates

-atime/-ctime/-mtime the last time a files's access time, file status and modification time, measured in days or minutes. Time interval in options -ctime, -mtime and -atime is an integer with optional sign. n: If the integer n does not have sign this means exactly n days ago, 0 means today. +n: if it has plus sing, then it means more then n days ago, or older then n, -n: if it has the minus sign, then it means less than n days ago (-n), or younger then n. It's evident that -1 and 0 are the same and both mean today. ...

Enable local file caching for NFS share on Linux

In Linux, there is a caching filesystem called FS-Cache which enables file caching for network file systems such as NFS. FS-Cache is built into the Linux kernel 2.6.30 and higher. In order for FS-Cache to operate, it needs cache back-end which provides actual storage for caching. One such cache back-end is cachefiles. Therefore, once you set up cachefiles, it will automatically enable file caching for NFS shares. ...

sdf.org

sdf.org This one is an interesting site. The Super Dimension Fortress is a networked community of free software authors, teachers, librarians, students, researchers, hobbyists, computer enthusiasts, the aural and visually impaired. It is operated as a recognized non-profit 501(c)(7) and is supported by its members. Our mission is to provide remotely accessible computing facilities for the advancement of public education, cultural enrichment, scientific research and recreation. Members can interact electronically with each other regardless of their location using passive or interactive forums. Further purposes include the recreational exchange of information concerning the Liberal and Fine Arts. Members have UNIX shell access to games, email, usenet, chat, bboard, webspace, gopherspace, programming utilities, archivers, browsers, and more. The SDF community is made up of caring, highly skilled people who operate behind the scenes to maintain a non-commercial INTERNET. ...

Driving Continuous Integration from Git

Testing, code coverage, style enforcement are all check-in and merge requirements that can be automated and driven from Git. If you're among the rising number of Git users out there, you're in luck: You can automate pieces of your development workflow with Git hooks. Hooks are a native Git mechanism for firing off custom scripts before or after certain operations such as commit, merge, applypatch, ...

Alarm Notification

This tutorial describes how to use the alarm manager to set alarms and how to use the notification framework to display them. In short, the sequence goes like this: In an Activity AlarmManager.set is called with a PendingIntent containing a Uri. When the alarm goes off, the Uri is called triggering a BroadcastReceiver. In the BroadcastReceiver NotificationManager.notify is called with a PendingIntent. When the notification is clicked, the Activity in the PendingIntent is started. ...

DID vendors

So I have been researching DID vendors with limited success. So far my leading candidates are: Vendor ...

Parsing JSON in Shell scripts

This can be simple by using jq. This is a command line JSON processor. Here are a couple of examples of what can be done: $ cat json.txt { "name": "Google", ...

Yealink W52P

Yealink W52P So I was looking to replace my analog cordless phones mainly because I wanted to have a centralized way to maintain phonebooks. Right now I have two cordless phone that I have to manually enter phonebook entries on the two handsets independently. Initially I was thinking of getting small/cheap Android tablet and load it with a SIP soft phone. Trying with a couple of tablets I had was not very successful. On one hand my network topology did not work very well, on the other hand, the integration of the SIP soft phone with the directory and the other phone functions did not work as well as I expected. So when I came across the W52P, I was initially attracted to the low price. Grandstream had a cheaper phone, but it did not have remote phonebooks. After checking the documentation of the W52P, I confirmed that it did have a remote phonebook functionality. So bought it and tried it out. As a phone itself, it is about the same as the analog phones that it was replacing. The voice quality was pretty good. ...

Grandstream GXP1400

Grandstream GXP1400 The other day I replaced an analog phone with a Grandstream GXP1400 IP phone. I think it is a great value phone. It is one of the cheapest I could find yet supports all the features I was looking. Specifically I wanted a IP phone that could: Have a remote phone directory ...

Backing up GMail

The other day I found Gmvault. Gmvault is an open source Gmail backup software written in Python. This article provides a good overview on how it works (found it better than the Gmvault documentation): How to back up and restore Gmail account on Linux ...