March 15, 2011

facebook – clearing your wall

Filed under: Firefox,Technical — george @ 11:48 am

Cleaning out your closet? well i had comments since back from 2007, so it was time to clean the wall up from comments from people no longer in my life (friends etc).  But the amount of posts and comments i had was rather big so i had to find a better way of cleaning it up.

The solution that worked for me: Firefox + Greasemonkey + Greasemonkey script

So in other words i used the script that deleted the comments on my wall that were visible.  I kept clicking the “show more” link for more comments and then kept deleting them.  Was done in less than 20 minutes (bad internet connection!).

The link for the script was found here:
http://blog.oneduality.com/2010/12/13/clear-your-facebook-wall-entirely-with-greasemonkey-and-firefox/
The actual script here:
http://userscripts.org/scripts/show/92664

November 8, 2010

RIAA – how to make money if you are an unemployed lawyer

Filed under: Interesting,Ranting,Technical — george @ 11:40 am

I have been reading about RIAA actions over the last few years but i think it’s time i expressed an opinion about them by simply stating the obvious.  Don’t expect them to be coherent, they are just thoughts after all.

Fact one:  the movie and music industries make billions every year, a big portion of which is profits which get distributed to the few elite people in the industry.  The figures? Google them up, and we are not talking about a few million dollars or whatever.

Fact two: Generalizing, People who download things illegally weren’t going to buy them to begin with, they either can not afford to or simply didn’t think they were worthy of spending money on.  One thing i have to mention is the fact that people didn’t just decide to indulge themselves in piracy over the last decade.

The piracy of modern media dates back to vhs and audio tapes, and everyone just lived with it.  No RIAA back then.  And these are only ways i remember.  I am not that old.

Fact 3: Industries fuel from the so called art by selling more blank media, recorders (computers and other hardware), but the RIAA doesn’t seem to be targeting them as they would surely loose the battle. Stake holders in this industry, the same as those in the media industry.  See a pattern here already?

The media industries didn’t go bankrupt, they moved on to grow and prosper.   So this model of piracy that dates decades back seems to work for the media industries.

What happens in reality is that those down-loaders will actually be more willing to buy a product such as a dvd as they have seen and enjoyed it, and probably associated it with a positive feelings.  If they might want to give something as a gift, it will be a movie or a music cd, and it will not be a copy.  It will be an original branded dvd, cd or any other sort of legal product.  It looks nice.  It is only natural that they give it to a loved one, or simply want it in their dvd collection. I myself rarely buy gifts that aren’t DVDs or CDs.

Fact 4:  The RIAA is basically a banch of unemployed lawyers who managed to find a way to make money out of people who can’t even afford to pay money.  Instead of targeting on the people that mass produce illegal copies of dvds etc, they focus on the consumer.  Why? individuals are easier to target and attack.

Scare tactics or not the manage to take to court people who have done nothing more than help the media industry market promote its products.

The RIAA is probably a place of investment for the media lords, who see it as yet another way to milk the cow and make some more money.

But really, governments should see the RIAA for what it is, a bunch of unemployed lawyers trying to make money on the expense of the public and individuals but at the same time are incompetent in targeting the organized crime syndicates fueling the creating and distribution of illegal copies of copyrighted material. And they are not doing it over the INTERNET via bittorrent, there is no money to be made there!!

By all means, instead of spending so much effort trying to get money out of people who were not going to give it to you anyway, try and promote your products in such a way that people will want to buy more of those “illegally” downloaded films and music.

RIAA: if you really have what it takes, start targeting the organized crime units that sell copies of your products and stop hassling users.

Music Industry: adapt to the changing world around you.  Don’t target the users who are after all your clients.  They will always outsmart you if you force them to.

Legal systems and governments : please adapt to the changing world around you.  Understand what the internet is and new technolodgies.  Killing net neutrality, sacrificing the right to privacy (as you are doing in the name of national security), and penilizing users isn’t the way.  Stop listening to industries and the BS they feed you when they pay to elect your politicians.

Unemployed Lawyers: go do something useful like helping people, or simply go study something else.

December 17, 2009

Speed up your XP (and vista) pc with 99 great tips!

Filed under: Interesting,Technical — george @ 11:14 am

Not all of the are great but some do help!!! :)

http://helpdeskgeek.com/windows-xp-tips/99-ways-to-make-your-computer-blazingly-fast/

November 19, 2009

Tor and Ubuntu

Filed under: security,Technical — george @ 2:56 pm

Anyone who wants anonymity when browsing the net has probably used TOR at some point.  Although anonymity in Tor has been proven to be broken with the help of flash applications or javascript scripts (if memory serves me right) it is still useful to have if you use something like NoScript to block scripts and flash applications.

https://help.ubuntu.com/community/TOR has a good tutorial on getting started on ubuntu which seems to be a pain in the ass, unlike the windows installation.

Have fun!

Pingdom dot com, A way to check your website’s up/down status

Filed under: Interesting,Technical — george @ 11:57 am

Pingdom.com is a company that makes a living by monitoring websites and alerting you of downtimes and other events.  There is a paid service (with a trial) but in addition there is a one website free account option that people might be interested in.

http://www.pingdom.com/

Apache webserver – Apache-GUI for configuring and managing Apache!

Filed under: Technical — george @ 11:13 am

For those who do not like changing those massive “it is all Greek to me!” configuration files of Apache the fear not!

Gui tools are here to make our lifes easier at the end of the day, especially at the end of a long day! I came across yet another tool which looks good (although i haven’t tested it myself yet) but i thought i would share it with you:

http://www.apache-gui.com/

Have a look at it and give me some feedback if you can!

By the way there are 2 versions, a free and a paid one, use the free one, it should do the basics! :)

Ubuntu, KVM switches and scroll lock …

Filed under: Technical — george @ 10:45 am

Can anyone explain to me why Ubuntu doesn’t like kvm switches that use a scroll lock key combination to switch from one workstation to another?  For that matter can anyone explain to me why Ubuntu / gnome doesn’t like scroll lock? Not sure if this is a gnome specific issue or an Ubuntu issue but someone should have fixed this by now.  There are forums mentioning this from back in 2004.

Anyway my quick workaround for kvm switches which don’t support Num lock X 2 is to simulate it from the command line.

xset led on
xset led off

The above will simulate a scroll lock on and off action, repeat until you are switched

Alternatively you can switch terminals (correct terminology?) and use scroll lock normally.

Control + Alt + F1 will take you to the console, then use scroll lock X2 to switch.  When back do a Control + Alt + F7 to return to the gnome console.

November 17, 2009

Ever wanted to restrict the sites firefox can reach?

Filed under: Firefox,Interesting,Technical — george @ 9:46 am

The mission: find a solution that can restrict FireFox from accessing pages other than ones we specify on a white list.

The solution: the ProCon Latte FireFox extension

This extension will let you do things like filter pages based on the words that appear on a page (e.g. no pages that include the word “bunkers”), restrict pages you can access based on what is included in a white-list you specify and more!  Best of all it lets you hide it, make it uninstallable and password protected to help you protect it from users wanting to tamper with it! (don’t think in terms of strongly encrypted data files et cetera, this is to keep your kids away!)

I hope you find it useful!

ProCon Latte

October 27, 2009

WSUS is a pain in the back!

Filed under: Technical — george @ 4:36 pm

WSUS is a great concept! Deploy updates for windows workstations on a domain, save bandwidth, control which updates get deployed to which workstations and when!

It is all nice until you need to start debugging those workstations that never report back, never get updated or never even appear on the WSUS server.  And they keep getting more and more, and oh they do!

I ll try additing whatever tips and tricks i can find here in hopes of helping some other tortured souls out there.

http://www.wsuswiki.com/
http://blogs.technet.com/sus/archive/2008/10/16/cool-wsus-troubleshooting-tools-and-script-examples.aspx

Identify the location of an IP

Filed under: Technical — george @ 3:21 pm

For some of you out there who came across GeoIP you know useful it is to get the location information of an IP.  Why? Assuming you are hosting a website and you want some statistics as to where your visitors come from then knowing what IP ranges are assigned to what country will give you an insight as to where your users come from.

Other uses might be to  block users from accessing your website or server based on what country they are from.

So how does GeoIP do its magic?  Well somewhere on the Internet there are databases which store information about what country has what ranges of IPs assigned to it.  By making a request to such a service you can ask where the IP came from, and you might also be able to get other information such as what ISP that IP belongs to.

Databases containing this information appear to be maintained by various people/organizations, with some people, such as the company behind GeoIP offering their data for a fee.  Free alternatives are available though. The second contains a CSV file containing LongIP ranges each indicating the country those IPs belong to.

The following are of use
http://www.countryipblocks.net/

http://ip-to-country.webhosting.info/node/view/6?XID=95e1f61de9cd95ac5718c2e4d1193889

Now what i wanted to do is take a list of ip addresses, convert each one of the to a LongIP and check in the CSV file to see if that IP corresponds to one of the countries inside.

A longIp is an IP where a mathematical function is applied to it to turn it into a unique number.  Have numbers instead of IPs makes it easier to search through and compare.  The following function is applied:
For IP AAA.CCC.ZZZ.XXX
LongIP = AAA * 256 * 256 * 256 + CCC * 256 *256 + ZZZ * 256 + XXX

The CSV data file as i found out does not contain all addresses.  So i resorted to the for mentioned website http://www.countryipblocks.net/.  I found that there were IP ranges for Africa that were not included in the original CSV file.  I wrote another script which turned all the IPs in the list into LongIPs and create a file similar to the original CSV.  I then did some manual work with the help of a spreadsheet editor (added the country info for the IPs).  I then cat the 2 files into 1 file which i then used in my original script to do the checking.

All scripts were written in Perl.  One thing to make notice of is that the speed fo the searches for a 3000 IP list takes around one hour due to the fact that i am searching through a CSV file.  Had i used a database product to store the info this process would have been a lot quicker.

I am tired and just had lunch so if this doesn’t make sense let me know and i ll add anything i neglected mentioning! :)

http://ip-to-country.webhosting.info/node/view/6?XID=95e1f61de9cd95ac5718c2e4d1193889

October 19, 2009

Updating Software Packages

Filed under: Technical,Windows — george @ 1:32 pm

A common problem in a Windows IT environment is keeping your systems, and more specifically applications, updated at all times.  The same goes for your laptops and home PCs.  Having the most up to date applications is very important as newer versions will have security and bug fixes which will  make your system more secure and stable (plus you might get a new feature or two!!)

There best approach to this is to have a system that will notify you of updates and give you the option to deploy them to all workstations and tada! after some magic happens all systems are up to date!  Reality (as far as i have experienced it and know) is far from it!  I can identify the following stages during an update cycle / procedure:

  1. Determine that updates of applications are available (and download any available updates)
  2. Notify the systems administrator that updates are available for XYZ applications.
  3. The administrator checks what fixes and improvements the update brings
  4. If he decides that the update should take place (i.e. it is worth the time and effort due to security fixes) he will then proceed to install it on a test environment to check for any stability or compatibility issues
  5. If the test environment is showing no signs of problems he will the proceed to deploy it to the rest of the workstations/systems.

In this series of posts (this being the first) i will attempt to present solutions to this common problem by tackling stages 1 and 2.

In this post i will take look at installers and how we can make sure we always have the latest installer at our disposal!  Even though this solution does not update our systems, it is a great way for us to know that there is a new version available and, should we choose, we can update our systems.  This approach has a significant benefit:  It allows us to first test the updates and make sure they do not cause any unexpected compatibility issues with our systems.  After  Testing we can then deploy the updates ourselves.

This solution makes use of a freely available tool, ketarin, found at http://ketarin.canneverbe.com/ .  A tutorial on how to use this tool can be found at: http://cdburnerxp.se/help/kb/20 .  This solution offers us 2 alternative methods of verifying and retrieving updates.  The first is by checking at the http://www.filehippo.com/ and the second is by specifying the location yourself.  Keratin offers a very flexible way of doing so as it provides a lot of variables you can work with!

Testing it out and let me know what you think!!!

Links:

http://www.filehippo.com/
http://ketarin.canneverbe.com/
http://cdburnerxp.se/help/kb/20

October 14, 2009

Free Software offers!

Filed under: Technical — george @ 1:59 pm

A site i came across, http://www.giveawayoftheday.com/ , gives out a different software package for free everyday!  Check out the offers they have daily, and you might just come across something you need!!

Regular Expressions, Apache and mod_rewrite

Filed under: Interesting,Technical — george @ 1:18 pm

One of the most useful things in scripting and programing languages (as well as tools such as vim) are regular expressions.  They allow you to create complex expressions that can match to text that meets the criteria you wish (based on characters, size et cetera).

Apache also allows for the use of regular expressions with mod_rewrite Rewrite Rules.

The problem i had was the following:
1 host www.example.com, 1 directory inside the domain root, www.example.com/directory.
I need every request under example.com/ that doesn’t target example.com/directory/ to be redirected to the /directory.  For example www.example.com/test should take us to example.com/directory.  Anything under directory should remain unchanged (i.e. example.com/directory/1 is valid and should not redirect anywhere).  Request to example.com should be served though normally!

So
example.com    ->  example.com
example.com/(anything appart from directory) ->  example.com/directory
example.com/directory  -> example.com/directory

The configuration is the following, placed either under httpd.conf (or the virtual host file), or under the .htaccess file

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^([/]?[^/]*/?)$ [NC]
RewriteCond %{REQUEST_URI} !^(/?directory/?)$ [NC]
RewriteRule (.*)  http://example.com/directory/

Please make note of the following:  On the second RewriteCond if you do not include the parenthesis, you will not be able to add the $ at the end, although the ^ at the start will be accepted.  What will happen if you do not include the parenthesis and place the $ at the end is that it will cause your regular expression not to be true when it should be!  It took me ages to figure this out!!!!! (no documentation on this as usual!!)

Also make sure you include Options +FollowSymLinks above the rewrite engine on clause!

Also to divert all traffic to https:
RewriteCond %{HTTPS} Off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Any comments? shoot!

October 12, 2009

Want to view websites similar to the ones you are viewing now?! Bored at the same time??

Filed under: Firefox,Technical — george @ 1:32 pm

This is an interesting plugin for firefox.  It will display sites that are similar to the one you are using, based on what other people with similar interests visited or recommended.  Albeit annoying at times, it can be useful when you are bored out of your mind!!!

https://addons.mozilla.org/en-US/firefox/addon/138

September 16, 2009

La FONERA!

Filed under: Interesting,Technical — george @ 6:37 am

To all those wondering what La Fonera is then please have a look at : www.fon.com

To sum things up, La Fonera is a company which provides small wifi access points / routers based on the Atheros platform. These are running a firmware based on OpenWRT.  La fonera bases its business model on the idea that people from all over the world are willing to share their internet connection over wifi, to other people within the community.  Given that enough people join this community the wifi coverage of this community is enough that people who are not members of the community can pick such hot sports up, go buy credit, and access the Internet.

From the money received from these people, the person offering the Internet access gets 50% of the net income.  The concept is pretty sweet !

When the La Fonera community was being build a lot of these routers where given for free!  As the business model adapted though so did the prices on the routers.  The La Fonera routers are now on sale, but for a relatively cheap price, with their latest offering being a router capable of being a small home server able to cope with things such as downloading and sharing folders on the local network.

All the above functionality is offered with the help of OpenWRT, http://openwrt.org/ .  Unfortunately these routers are also locked down limiting their functionality for someone wanting more from their router!

As a lot of us know a lot of alternative firmware exists for routers such as Linksys ones (look around for the specific models et cetera).  Luckily the atheros platform is supported by many of those project.  The ones i was looking at that support the La Fonera router are DD-Wrt and OpenWRT.

When it came down to which one i was going to use, i decided to go to OpenWRT.  DD-WRT does come as a nice package with a web interface and all, but as DD-WRT is also moving down a commercial road, with packages for the La Fonera also being sold (unless you are happy with an older package from 2007). OpenWRT seemed like the obvious choice with a larger developer community, and no commercial routes in sight.

The next step was to flash the router with the latest OpenWRT Kamikaze firmware.  As it turns out flashing the La Fonera router is not an easy task with hacks all around the place.  After playing around for a few hours i found the easiest solution to be the following.

Visit http://flash.fonera.be/ and follow the instructions there. For the firmware images you want go to the download site of OpenWRT and download the atheros images of the release want.  In my case

  • http://downloads.openwrt.org/kamikaze/8.09.1/atheros/openwrt-atheros-root.squashfs
  • http://downloads.openwrt.org/kamikaze/8.09.1/atheros/openwrt-atheros-vmlinux.lzma

When using the FonFlash executable, remember that the RottFS file is the .squashfs file and the kernel file is the .lzma file.

Follow the instructions:  Start the program clicking flash, reboot your LaFonera router, wait until you get the right messages on the FonFlash program, Wait until flashing is finished.  This might take up to 30 minutes.  DO NOT disconnect your router while this is happening, you might brick it!

That’s it!Remember that in order to set the root password you need to telnet in the router, and set the password with passwd .  Any comments?? :)

additions!

If you need a web interface to your OpenWRT router have a look at http://www.x-wrt.org/ and http://wiki.x-wrt.org/index.php/Installation_Guide under the  X-Wrt as ipkg install (via SSH) !!

Next Page »

38 queries. 0.343 seconds. Powered by WordPress.