Sufi Nawaz

I build stuff

Fitbit App to Control Wink Smart Devices

Posted by in DIY, Hobbies, Technology, Tutorials

On our first anniversary, my wife gifted me a Fitbit Versa smart watch and I’d been playing around with Fitbit Studio. While the Fitbit app gallery is far from mature, to my pleasant surprise, I’ve found the Fitbit developer studio very intuitive and easy to work with. Their SDK is also fairly well documented with some basic code examples (albeit not comprehensive by any means) to get anyone up and running to build their first app or clock face. One of the first app I wanted to install on my…read more

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

Linux /etc/resolv.conf equivalent in Windows 8 to add Domain Suffixes

Posted by in Tutorials

To add search domain names to resolve in Linux, I can simple add them to /etc/resolv.conf file. But what about in Windows 8? Follow these simple steps to add search domain names in Windows 8. Find your network adapter in Network Connections. In my case, I’m using Wi-Fi adapter. Right click on it and go to Properties. Select TCP/IPv4 and click on Properties. Under General tab, click on Advanced. This will open Advanced TCP/IP Settings window Check on Append these DNS suffixes(in order) and click on Add… Add one or multiple domain suffix….read more

0