Tag Archives: advantages

How To Find Pinterest Unfollowers – Pinterest Unfollow Tool

pinterest-unfollowersHow To Find Pinterest Unfollowers – Pinterest Unfollow Tool

Removing Pinterest users that do not follow you, or they unfollowed you is not and easy task. Pinterest does not make sorting and finding your unfollowers a simple process. In theory, you shouldn’t worry too much about how many people you follow and they don’t follow back, but in practice, there are some advantages to clean your profile.

You followed a few hundred people, and now your feed is filling up your feed with their pins, but they don’t get your latest, and greatest pinning creations. Or they followed you first, and you returned the favor, but later on they unfollowed you so that they look like authorities. Authorities my a… Let’s remove them from your feed, unfollow them.

Pinterest Unfollowers for IOS Enabled Devices (iPhone, or iPad)

The great news is that if you own an Apple device, such as a tablet, or an iPhone, there is an app that does specifically this. The app is called “Who Unfollow Me For Pinterest”, and you can grab it here: Who Unfollow Me For Pinterest – Yong Peng. I don’t own a MAC IOS device, so I can’t tell you how good the app is, but it’s there. A more famous app seems to have disappeared from the iTunes store, but the app was called Followers on Pinterest.

The Hard Way to Unfollow

Now, what do you do if you don’t have an IOS device? I have seen on the Internet the following suggestion:
Step one: Go to your “Followers” tab and copy/paste in a text document all of your followers.
Step Two: After this, go to your “Following” tab and compare it with your text list. Take one name at  a time from your “Following” tab, and search it in your followers text list. If you find the name, then it means that Pinterest user follows you, if you didn’t find them in the list, just unfollow them right away.

The Easier Way To Unfollow on Pinterest

How to get all followers on PinterestI didn’t even considered doing this, because I figured it would take me days to complete the process, and because I knew it had to be easier.

So, I started the work, and the first thing to was obviously to view page source, like any person with a little HTML knowledge would do. That doesn’t work. The code for the page is served dynamically, through Ajax, so you would only see around 115 users at a time. I think this is somewhat done on purpose, so that unfollowing is very hard. It is in Pinterest’s interest, to maintain an artificial buzz, like everybody follows everybody. Anyway, back to work, we need the entire list for our operation, so I started to search again. Then I realized that if we scroll down to the last item in the HTML page, and we right click the user, and choose inspect element, we also get the HTML of the page, except this time we get all the users in the HTML code.  Just right click on the body element, and choose copy as HTML.

Pinterest-Copy-HTMLAfter that paste the HTML code in a notepad, and you have all your users in a document, save that document as Followers-raw-text.txt.

IMPORTANT: Save the text as UTF8 encoding to preserve the special characters, and to avoid a script freeze when saving as Unicode.

Don’t worry if the text looks gibberish to you, you just need to find the following HTML tag: <h3>. Immediately after the tag you will find the username. Don’t try to save the document as HTML and see it in a browser. The browser will crash while loading that long list.

Pinterest Find UsersAt this point you have a few options to further clean up your list of followers, one way is to use Microsoft Word’s find and replace feature, which does a decent job but is not meant for these kind of operations. Another option is to use an advanced string find/filtering utilities, such as grep, sed, awk, etc… Here is a command I wrote to spit out a plain text list with usernames only:

awk-Pinterest-script-two

 

awk-Pinterest-script-one

I couldn’t “convince” WordPress to  allow me to post the command as a text, so I posted it as a picture. Sorry, you have to write down that manually.

At this point you have a list with followers, and a list with your followings. I heard people trying to use text compare utilities, but they don’t work if you have many followers, or if you have followed only partially boards. I know I did that. Another problem is that the usernames in the following and followers lists, are not in perfect synch chronologically, so any text comparison will be tripped. But if you know they are in the same order, it should be easy enough to use notepad++, or Winmerge, to compare the two lists and get your unfollowers.
I wrote a script in awk, to compare the two lists, and give me only the unfollowers, so I don’t have to compare manually the lists. Here is the command that does that:

awk "FNR==NR{a[$0];next}!($0 in a)" list-of-my-followers.txt list-of-followings.txt > unfollowers.txt

The list in the unfollowers.txt will contain your unfollowers. When you search for them in your Following tab, you will see two types of users, some with a button saying “Follow”, and some with a button “Unfollow”. The ones from your unfollowers.txt are either users whom you followed part of their boards, (the button will say Follow), or users whom you followed all of their boards, (the button will say Unfollow). This will prove a bit difficult to clean, but to make it easier, you might want to follow all of their boards, and maybe they’ll follow you back. If not, you can always clean up next time, if you want.

Future Development

The only thing I have to do now, is to figure out the unfollow link structure, so with a few more adjustments with awk and sed, we can create the unfollow links automatically, so we don’t have to search for the users in page. That’s my next step. If you have an idea about that, drop me a line in the comments, or send me a message with the link below.
In the mean time follow me on Pinterest I will follow back, :).

If you want to ask me a question, or if you want the list of your unfollowers delivered by email, send me a message using this form: Contact Me about the Pinterest Script

UPDATE: If all of these look gibberish to you, you can hire this guy on Fiverr, for five bucks he’ll do it for you. Actually, his gig gave me the idea to make my own script. I didn’t want to pay the five dollars. Anyway, here is the link:  Find Unfollowers on Pinterest

Why Choose Commercial WordPress Hosting

Wordpress logo

Whether you are a seasoned blogger or a beginner one of the best options for your blog is WordPress. WordPress is very popular because of its great flexibility, capacity to adapt to an ever-changing Internet environment, great features, and effortless administration. WordPress was voted many times the best Content Management system in a competition with other renowned CMS.

As a beginner you can start with a free solution, and the WordPress community offers a great platform on their servers, free. On WordPress.com anyone can have their own blog and share their posts on a variety of topics, and interact with other bloggers. This is one of the most popular ways to start your blog. However, advanced bloggers, journalists or commercial blogs need more complex options.

Why Do You Need a Hosted WordPress?

Popular blogs, or business related blogs, need to accommodate larger numbers of visitors without any traffic limitations.
Here are just a few reasons why any rapidly expanding site should consider WordPress hosting.

The free WordPress platform will only give you a limited number of functions and plugins.
Other technical aspects of your blog are not accessible with a free solution. Some of these include: php.ini and .htaccess control, multiple databases, for other PHP scripts, the storage is limited, you have a limited choice of plugins, little control over the theme, etc…
One of the great benefits of using a WordPress web host is the customer service and support. We always do things that we can’t fix on the spot no matter how experienced we are. Using the help of a professional support team ensures that the site will be up in the shortest possible time if something bad happens. For an organization or business that operates online, it is critical that their website is up as soon as possible. It is at stake the company’s reputation, and the money lost during the interruption.
Maybe one of the greatest things with a hosted WordPress is the huge range of plug-ins and add-ons available. These plug-ins add features that can vastly improve the appearance and functionality of your site and ultimately your visitors’ experience.

If you are thinking moving your blog to a commercial service, don’t delay it, the costs of a professional WordPress web host are small compared to the advantages.

How to Choose a WordPress Hosting Company?

Ok, you decided you need a hosting company for your WordPress blog. There are a lot of companies on the market. How do you choose your host?
The services look very similar at first sight, and in most of the cases they are. You need to look for the package which is best able to cater for your requirements.
Define your requirements first and then make your list with companies that fit the requirements.
Compare the finalists on your list based on your personal requirements, customer service and support, Up-time, reputation, and price.

How to Install Squid with Active Directory Authentication on Debian

How to Install Squid with Active Directory Authentication on Debian

Squid is a caching proxy software, licensed under GNU GPL, (free software).
It can help your Organization to reduce bandwidth and improves response times by caching and reusing frequently-requested web pages.
Squid has extensive access controls and if you don’t mind Command Line Interface is not too hard to configure. It runs on most available operating systems including Windows.
The following article is a step by step HOW TO Install Squid on Debian. Most of the steps are easily applicable to any other Linux distribution such as: RedHat, Suse, Ubuntu, etc…

Hardware requirements

Choose the machine wisely – if you are running a 50 computers Network a PIII should be enough provided that all you do is Web Caching and Filtering.
The memory is the most important and after that the disk speed. If you plan your proxy for a bigger Network you should consider using SCSI drives or SAS, and a faster CPU.
Memory requirements are explained later in the document.

Package Installation

Instal Debian minimal. The install cd, (only 650Mb) should be enough for this.
Reboot after installing and add packages with Aptitude (grafical interface) or "apt-get install program".
Add the following packages:
Openldap
Samba
Kerberos apt-get install krb5-{admin-server,kdc}
PAM apt-get install libpam0g-dev
Squid
Apache if you want proxy Auto-Configuration apt-get install apache2
Dansguardian if you need advanced WEB filtering
SARG if you want a log analyzer for your WEB access/filter

– – – – – – – – – – – – – – – – – – – – – –

Configure Samba

Samba is going to be used for authentication.
Note that if you run squid in transparent mode the authentication will not work.

#nano -w /etc/samba/smb.conf

Add or remove daemons to autostart
#update-rc.d  winbind defaults
#update-rc.d  samba defaults

– – – – – – – – – – – – – – – – – – – – – –
[global]
netbios name = proxy
realm = SUBDOMAIN.DOMAIN.ROOT
workgroup = SUBDOMAIN
security = ADS
password server = server1.subdomain.domain.root server2.subdomain.domain.root
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
idmap uid = 10000-20000
domain master = no
local master = no
preferred master = no
winbind enum groups = yes
winbind enum users = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
winbind use default domain = Yes
encrypt passwords = yes
log level = 5 passdb:5 auth:10 winbind:5
server string = proxy
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0
encrypt passwords = true
load printers = no

– – – – – – – – – – – – – – – – – – – – – –
Do not add other parameters to the configuration file as they are not needed.
You can always tweak your configuration file later on if you need additional tweaking. If you do need further modifications do one at a time and test it extensively before release to production.
After editing smb.conf run the following command
# testparm
This will test your samba configuration file against any errors.
If there are no errors restart samba:
proxy:~# /etc/init.d/samba restart
proxy:~# /etc/init.d/winbind start
– – – – – – – – – – – – – – – – – – – – – –
Add the server to the domain
#net ads join "Ottawa Computers/Servers" -U Administrator -S server1.sub-domain.domain.edu
If you have Windows 7 you might get this in your /var/log/samba/log.wb: "NTLM CRAP authentication for user returned NT_STATUS_INVALID_PARAM"
If you get it follow the instructions below to tell Windows to use NTLM version1. Note that this is a security downgrade and it opens the door for an SMB man-in-the-middle attack. Asses the risks and the advantages before you do the change.

Run local GP on W7 gpedit.msc and look for:
Local Policies Security Options Network security: LAN Manager authentication level
Change from "Not Defined" to "LM & NTLM – Use NTLMv2 session if negotiated"
– – – – – – – – – – – – – – – – – – – – – –

Configure Squid

Make a backup copy of the default configuration file:
# cp /etc/squid/squid.conf /etc/squid/squid.conf.original
Edit the file squid.conf:
#nano –w /etc/squid/squid.conf
Replace everything in the file with the below text:

– – – – – – – – – – – – – – – – – – – – – –

#Proxy configurationuration - /etc/squid.squid.conf

# AUTHENTICATION
# -----------------------------------------------------------------------------
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 30
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Squid Proxy Server
auth_param basic credentialsttl 2 hours
acl authenticated_users proxy_auth REQUIRED
http_access allow authenticated_users
auth_param ntlm keep_alive on

# ACCESS CONTROLS
# -----------------------------------------------------------------------------
#Deafult acl’s
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8

#Declare your local network and any additional subnets
acl localnet src 192.168.100.0/24                # RFC1918 possible internal network
#acl remotesite src 192.168.200.0/24

#You would like that some of the users to be excluded from the logging.
###acl bosses src 192.168.100.255/30
###log_access deny bosses

#Tell Squid to not log google.ca
#Define the acl for google using regex
acl google url_regex ^http://www.google.ca
#Deny logging the acl
log_access deny google

#Allow the access for your localnet.
http_access allow localnet
#http_access allow remotesite

#Define allowed ports
acl SSL_ports port 443                    # https
acl SSL_ports port 563                    # snews
acl SSL_ports port 873                    # rsync
acl Safe_ports port 80                    # http
acl Safe_ports port 21                    # ftp
acl Safe_ports port 443                  # https
acl Safe_ports port 70                    # gopher
acl Safe_ports port 210                  # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280                  # http-mgmt
acl Safe_ports port 488                  # gss-http
acl Safe_ports port 591                  # filemaker
acl Safe_ports port 777                  # multiling http
acl Safe_ports port 631                  # cups
acl Safe_ports port 873                  # rsync
acl Safe_ports port 901                  # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# NETWORK OPTIONS
# -----------------------------------------------------------------------------
http_port 3128

# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------
#The memory needed for caching used files. The more you have the faster works. (No disk access.)
cache_mem 256 MB
#Objects bigger than this should be stored on the hard-drive. This can be lower than 8kb if your server has little memory.
maximum_object_size_in_memory 8 KB

# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------
#Make sure you have enough space. And mount this on a fast disk or a raid0.
##cache_dir ufs /var/squid/cache 1000 16 256
cache_dir diskd /var/squid/cache 500 16 256

#This is extremely useful if your users download big files. You can even increase this depending on usage.
maximum_object_size 40960 KB

# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
#This logging format includes the date the address requested the IP address of the requestor and the AD user who made the request.
#Human resources need to know what your users browse during the workday.
logformat squid %tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
#Where to store all of this data.
access_log /var/log/squid/access.log squid

# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_mgr admin@mycompany.net
mail_from squid@ mycompany.net
visible_hostname proxy

# DNS OPTIONS
# -----------------------------------------------------------------------------
##You have the option to use the ISP’s DNS here
# dns_nameservers 10.0.0.1 192.168.0.254
hosts_file /etc/hosts
uri_whitespace allow
http_access deny all

#### --- End of the configuration file --- ####

– – – – – – – – – – – – – – – – – – – – – –

Run the command squid –z to let squid create the necessary directories.
#squid –z
Add the squid daemon to auto-startup, on a Debian machine the command is: 
#update-rc.d  squid defaults
Start squid
#/etc/init.d/squid start

Suggestion:
Test squid without authentication first. If this works go to the next step.
To test without authentication, comment all of the parameters in the Authentication section by adding the “#” sign at the beginning of line and restart squid.

Add or remove daemons to autostart
cd /etc/init.d/
update-rc.d  winbind defaults
update-rc.d -f apache2 remove

Tweaking performance on SQUID

A few settings that can dramaticaly improve the performance on your proxy:

cache_dir ufs /var/spool/squid 1000 50 256
This is the default Squid storage type configuration.
Change the storage type from ufs to aufs if using a Linux or variants.
Change the storage type from ufs to diskd if using BSD or variants.
If you use Windows, is probably for testing purposes, or because you don’t have a machine. Once the testing is done change to Linux or BSD.
The numeric parameters are:
First parameter is the amount of disk space in Mbytes to be used by Squid. The more you use the more physical memory (RAM) you need for indexes in order to be effective.
The rule is that you need
If you want to use the whole drive’s, (partition), space make sure you subtract 20% and use that value. In other words you can only use 80% of the drive.
The second and third parameters are the number of first and second level subdirectories that are created.

cache_mem 64 MB
The more memory you have the better it performs. Local, (cached), objects are much faster to retrieve than external ones.
The more local objects you can store the faster Squid responds.
Squid uses cache for many things other than memory cache, so make sure you have enough memory left when you configure cache_mem.

Memory cache is better for speed than disk, but is lost more easily and you can get bigger cache total spending RAM on indexes.

maximum_object_size 20480 KB
Today’s Internet usage contains has a lot of traffic in the 2MB to 200MB range. This traffic is comprised of multimedia objects, update files, etc.
You need to investigate your traffic and see what is a good number for you.

maximum_object_size_in_memory 64 KB
If you have little memory keep the default 8 KB. It is better to serve more fast pages from memory than a few slow pages that will run faster.

Check if your proxy works and if is logging properly the access.
On your proxy machine run the following command to see realtime access on the proxy: tail -f /var/log/squid/access.log On a client computer open the browser of your choice and change Networking options so that the browser uses the newly installed proxy.
Start to browse and look on the proxy’s console to see your activity logged.