PARABANS Weblogs

PARABANS weblog service, create yours now!

No MORE GOOGLE ADS! (nor others for what matters!)






I recently got bored of all the intrusive Ad techniques saturating every webpage i visit; especially now with the introduction of remarketing / retargeting techniques so i decided to use my friend google to find a way to get rid of all that crap; here is what i found:

Cookie protection:

Visit this site: http://www.networkadvertising.org/managing/opt_out.asp

Select all and apply; it will place a cookie that removes a lot of remarketing ad networks. (not exactly that but ads will not show anyway if you are interest in how it works read their site)

Host File protection: you edit the host file blocking all the known ad networks and they will loop back and dont show in your browser.

in windows XP  is: c:/windows/system32/drivers/hosts/

In vista and 7:  c:/windows/system32/drivers/etc/hosts/

just go to that folderopen the file with notepad and copy and paste the contents of this file: host or just copy the file there…

Voila no ads… not even mine!

Project Reality and Afterdune scripts (How to)

The amount of support tickets we get after each PR update about the AD scripts not working made us make this post.

The scripts work and they are fairly easy to install however the documentation is split in a web site (hosted here: http://afterdune.parabans.com/) and a readme file named HOW TO INSTALL.TXT in each script. If you don’t read both and follow the instructions they just wont work.

We decided to create this post with step by step instructions consolidating both.

  • 1st how they work

There is a base module that is needed for the rest to work (ad_base) and several submodules

  • 2nd how to make them actually work

To enable the base module you need to copy the contents of AD_BASE in your “/bf2/admin/” folder when you unzip it in there it will create a folder named: “/bf2/admin/ad_scripts/”

Once that is done you need to edit: “/bf2/mods/pr/phyton/game/__init__.py and add the following:

#——————————————————————
# Add your custom script’s initilization bellow
#

## [ad_scripts]
import sys
sys.path.append(‘admin/ad_scripts/’)
import ad_init
## [/ad_scripts]

Once that is done the base module will start but the submodules not.

Download the modules you want to use. (typically ad_admin)
trow them into your ad_scripts folder in “/bf2/admin/”

then yo need to edit: ad_init.py file in the same folder. And Add the following two lines in ad_init.py:

import ad_admin
ad_admin.init()

Then you add admins on the “ad_admin_settings.py” file.

Restart the server and they should work.
If your server refuses to start the most likely cause is that your “ad_admin_settings.py” file has errors being the most common that you left a colon on the last admin added.

admin1 hash power,
admin2 hash power,
last hash power

(NO COLON)

hope this helps.

SC_ TRANS Beta…. argghhh

Configuring this for the use of the calendar is a dark art…. (Lack of docs…) until i found: SC_TRANS AJAX API

Files to edit:
sc_trans.conf
calendar.xml: Read more…

Renaming Files

Rename a bunch of pictures in linux and resize them etc…

Nice command line commands…..

$ ls
IMG_0918.JPG	IMG_0925.JPG	IMG_0931.JPG	IMG_0940.JPG
IMG_0922.JPG	IMG_0926.JPG	IMG_0932.JPG	IMG_0945.JPG
IMG_0923.JPG	IMG_0927.JPG	IMG_0938.JPG	IMG_0946.JPG
IMG_0924.JPG	IMG_0930.JPG	IMG_0939.JPG	IMG_0947.JPG

Using a simple bash script, we can rename these and put them in order: Read more…