Writing

  • Ways to check what SMTP server a Linux server is using

    , ,

    Quickest way to test is send yourself a blank email from the server, like so in terminal: mail -s "Test" address1@domain.com address2@domain.com < /dev/null Another way is and it will tell you what servers handle mail: host your_domain.com  Hope this helps.

  • Playing with .jar files

    ,

    For archival purposes. Operation Command To create a JAR file jar cf&nbsp;<em>jar-file input-file(s)</em> To view the contents of a JAR file jar tf&nbsp;<em>jar-file</em> To extract the contents of a JAR file jar xf&nbsp;<em>jar-file</em> To extract specific files from a JAR file jar xf&nbsp;<em>jar-file archived-file(s)</em> To run an application packaged as a JAR file  (version 1.1)…

  • Change hostname in OS X

    From the terminal: sudo scutil –set HostName new_hostname.local. UPDATE: See Change computer name in OS X Yosemite instead.

  • Zip and password-protect any file via OS X’s Terminal

    Pretty simple — just do the following: Open Terminal (Applications > Utilities > Terminal) CD to the directory with the file(s) to zip and password-protect Type the following and wait: “zip -e archive.zip file1 file2” Note: I zipped my iPhoto Library, so I did “zip -re photos.zip Pictures/”. The -r means recursive.

  • Free PDF to mobi or epub converter

    ,

    I have a Kindle and love it, so archiving and sharing this awesome app.  Cool thing is it’s available on multiple platforms. “calibre is a free and open source e-book library management application developed by users of e-books for users of e-books. It has a cornucopia of features divided into the following main categories.”

  • Python: Send e-mail to multiple recipients using Gmail SMTP

    Below is the method I used. def SendEmail(content):     gmailUser = ‘me’     password = ‘password’     recipients = [‘you1’,                 ‘you2’,                 ‘you3’                 ]     msg = MIMEMultipart(‘alternative’)…