Install Mozilla Flash Plugin in Ubuntu

I get questions about installing Flash plugin for Ubuntu some of the time, and here’s a quick howto activate the plugin in any Linux distro. Assuming you use Ubuntu :
First, download the flash plugin from Adobe website, click the Download Now button

From Desktop, goto Applications->Accesories->Terminal, type

tar zxvf ~/Desktop/install_flash_player_7_linux.tar.gz

You’ll see a list of files extracted. Then type,

install_flash_player_7_linux/flashplayer-installer

Answer a few questions, then the screen will tell you that the Installation was successful.

Close your browser, and start it again. You should have your Flash plugin support in Mozilla Firefox browser right now.

[tags]flash,firefox,mozilla, firefox plugins, macromedia, adobe,ubuntu,linux[/tags]

owasp php filters – help sanitize php variables

Internet is full of spam bots, autosubmitters, malicious users and worms that can compromise the security of your website at any given time, therefore you should be suspicious of any data you receive via GET/POST variable in your system.

Among the nasty things that could happen to your system when you don’t filter your data is, SQL injection, Script Injection, Email abusing and Remote Execution the attacker could deface your website or even wipe your entire database if you’re not careful with it.

One of the way to filter your data is to use preg_match to write regex rule for the variable that would be accepted.

However I find writing preg_match sometimes can be tiring, and that’s why I use owasp php filters to simplify the work for me. It consists of one function sanitize(), that take the variable that you want to filter and an option.

The option may be any of this value PARANOID,HTML,INT,FLOAT,LDAP,SQL,SYSTEM and UTF-8 that filters the type of data accordingly. For example if you want your variable to contain only floating-point number, then you can code it like this :

< ?php

require('sanitize.inc.php');

$var=100.50;

$float = sanitize($var,FLOAT);

?>

I isn’t much, but surely it will simplify your php coding a bit more, the other option is self-explanatory save PARANOID, which means that the variable will contain only alphanumeric character after sanitize.

SQL is handy if you want to include the variable value inside an SQL statement, this will avoid the risk of the notorious SQL injection which will affect the security of your data.

you can download OWASP PHP filter here

[tags]php,security,filters,mysql,sql,sql injection,injection[/tags]

Spanish Ubuntu wiki

Ubuntu Portada

I found a Spanish Ubuntu Wiki on the internet today, which I find it quite useful. The wiki contains info and guides about how to use Ubuntu in Spanish language. Among the guide in the wiki are:

How to install Ubuntu from downloading images/burning iso

  • Customising desktop
  • Introduction to Linux
  • How to use GRUB
  • Understanding processes
  • How to configure network
  • Installing application
  • How to do programming in Ubuntu

Currently there’s 114 articles that span over 1,800 pages on the wiki, the numbers of contribution ar growing each day as it being updated by the community. Wish we have a lot more localised wiki like this, because free software is about freedom of choice.

[tags]ubuntu,debian,linux,spanish,wiki,mediawiki,community,gnu/linux,portada,guide[/tags]

Install Opera 9, Realplayer 10 on Ubuntu Dapper

Greetings fellow Ubuntu users, I’ve brought some good news to you for those who prefer to use Opera over Firefox. Now you can get your favorite browser running in your Ubuntu Dapper without much hassle.

Canonical ( independently from Ubuntu community ) has announced the ubuntu dapper commercial repository which houses Opera web browser, among other softwares. Interested? Here’s how to setup canonical repository in Ubuntu :

  1. From Desktop, go to System->Administration, select Synaptic Package Manager
  2. Select Setting->Repositories from Synaptic, a dialog appears
  3. Click Add then Custom, another dialog appears with a textbox that reads APT line:
  4. put “deb http://archive.canonical.com/ubuntu dapper-commercial main"
  5. Click Add Channel, then Close
  6. Click Reload at the top left corner of the Synaptic application.
  7. Now you can install Opera to Ubuntu from synaptic

Note : you can also install Opera from command line by entering the following line from the terminal.

sudo apt-get install opera

Did I mention that Real Player 10 is also included in the repository?

Have fun !

[tags]opera,ubuntu,realplayer, real player, debian, linux, repository, canonical,repositories[/tags]

Grrr TMNet suspended my Streamyx account!

I’m so pissed because TMnet suspended my account because I was behind my bill. It’s not like I want to pay, but I was busy doing other work that I forgot to pay the bills, besides how can I remember to pay the bills if they fail to deliver them?

Before this I used to receive printed bills everynow and then delivered by mail, and I usually pays up my bills on time, but now TMNet seems not to send Streamyx Broadband bills anymore. I’m bit busy and distracted by my work, making me forgot to pay my bills without the reminder.

What’s worse is, I can’t even log in to tmbill website to see how much that I owe TMnet, they seems to block your streamyx account and your access to online billing system too! Give me a break, at least make the online billing system bit more friendly instead of IE6 only page.

Note to self :

I won’t wait for my streamyx bill anymore, I’ll check my internet bill every 15th day of the month. Damn you TMnet, I lost my productivity hours due to suspension and having to go to their office to pay up my bills (btw, I read that paying Streamyx bills through Maybank2u isn’t safe).

[tags]tmnet,streamyx,internet,broadband,pissed,wireless[/tags]

Upgraded to WordPress 2.0.4

After almost a year using WordPress 1.5.2, I finally decided to upgrade it to the latest WordPress 2.0.4 last night.

The upgrade *sounded* easy by just merely reading the html file. But the reality is, I’ve to restore my WP 1.5.2 back again and again because WordPress 2.0.4 just display a blank page after I attempted to upgrade my blog.

Finally I trace back the problem to either my themes or my plugins that caused the problem, so I deleted them too in addition to my old WordPress 1.5.2 files, so that explains why you see yet another new theme for my blog today.

Lucky I use WP-Cron plugin that can help you automatically back up your wordpress database everyday, I suggest you use one to in case if your webhosting company fscked up and leave you without your database.

All in all, I’m glad that I took me less than an hour to upgrade this blog, despite few mishaps happened during the upgrading process :)

[tags]blog,blogging,wordpress,upgrade,weblog,weblogging,blog[/tags]