Sufi Nawaz

I build stuff

SELinux settings to allow apache to send mail

Posted by in Code Snippets, Tutorials

I was working in a WordPress instance today that is installed in a Centos box. The issue was that I could not send any email through wp_mail() function in wordpress, which essentially uses PHP’s mail() function, which in turn, uses sendmail. So the very first thing I’ve tried doing was to create a simple PHP test script and ran it from the machine locally. The email worked fine so I knew sendmail was not the problem. Next, I tried to execute the script over the webserver, and sure enough, the…read more

Better Headshot Photography by Tilting Subject’s Head Forward

Posted by in Photography, Tutorials

If you’re into portrait photography like me, you’d find this video highly useful. This video tutorial is by Peter Hurley, a photographer from New York, talks about the importance of jawlines. As trivial as it sounds, his video demonstrates the significance of jawlines in headshots and how you can take great headshots by simply having the subject pull forward their chin and tilting their forehead towards the camera. Under the correct light settings, I’ve had seen the difference myself and this video serves as an enforcement for me. If you…read more

Map of ongoing DDoS attacks around the globe

Posted by in Technology

Digital Attack Map displays a map of the world with ongoing Distributed Denial of Service (DDoS) attacks. It also lets you visually replay a trend of DDoS attacks over last few months along with other things. The core of this is running on Arbor Networks data with collaboration from Google Ideas. http://www.digitalattackmap.com/#anim=1&color=0&country=ALL&time=16001&view=map