Popular recipes tagged "address"http://code.activestate.com/recipes/tags/address/popular/2014-07-31T17:11:03-07:00ActiveState Code RecipesMultiple host/ip DNS resolution - mass_nslookup.pl (Perl)
2014-07-31T17:11:03-07:00Brett Carrollhttp://code.activestate.com/recipes/users/4174322/http://code.activestate.com/recipes/578915-multiple-hostip-dns-resolution-mass_nslookuppl/
<p style="color: grey">
Perl
recipe 578915
by <a href="/recipes/users/4174322/">Brett Carroll</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/digg/">digg</a>, <a href="/recipes/tags/dns/">dns</a>, <a href="/recipes/tags/hostname/">hostname</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/nslookup/">nslookup</a>, <a href="/recipes/tags/perl/">perl</a>).
</p>
<p>Parse a text file containing a list of IP Addresses or hostnames (one per line) and print out the corresponding IP Address or hostname resolved by DNS.</p>
mac address from ip address (Python)
2013-07-07T17:34:06-07:00judyhttp://code.activestate.com/recipes/users/4186659/http://code.activestate.com/recipes/578593-mac-address-from-ip-address/
<p style="color: grey">
Python
recipe 578593
by <a href="/recipes/users/4186659/">judy</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/adress/">adress</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/mac/">mac</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>get the mac address from ip address
work only in linux system</p>
Sync your facebook friends list to your address book on Mac/iPhone/iPad (Python)
2011-12-17T09:27:02-08:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/577986-sync-your-facebook-friends-list-to-your-address-bo/
<p style="color: grey">
Python
recipe 577986
by <a href="/recipes/users/4168519/">Shao-chuan Wang</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/book/">book</a>, <a href="/recipes/tags/facebook/">facebook</a>, <a href="/recipes/tags/sync/">sync</a>).
</p>
<p><strong>READ BEFORE YOU USE THE CODE*</strong></p>
<p><strong>Requirement</strong></p>
<ol>
<li>Mac OS with python obj-c wrapper built-in. Typically, Mac OS Snow leopard, or Lion comes with python wrapper of objc.</li>
<li>If you want to also sync to your iphone, simply enable iCloud feature provided by apple, and run this script on a macbook with iCloud enabled.</li>
<li>Need fbconsole module, which can be downloaded at <a href="https://github.com/facebook/fbconsole" rel="nofollow">https://github.com/facebook/fbconsole</a></li>
</ol>
<p>This script will download the profile pictures, first name, last name of your friends, and insert them into your address book if it does not exist.</p>
Get user's IP address even when they're behind a proxy (Python)
2011-07-15T21:19:17-07:00Ben Hoythttp://code.activestate.com/recipes/users/4170919/http://code.activestate.com/recipes/577795-get-users-ip-address-even-when-theyre-behind-a-pro/
<p style="color: grey">
Python
recipe 577795
by <a href="/recipes/users/4170919/">Ben Hoyt</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/cgi/">cgi</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/webpy/">webpy</a>).
</p>
<p>Function to get the user's IP address in a web app or CGI script, even when they're behind a web proxy.</p>
<p>We use web.py as our web framework, but change web.ctx.env and web.ctx.get('ip') to whatever the equivalents are for the CGI environment variables and REMOTE_ADDR are in your framework.</p>