NURUL FERDOUS

Archive for the ‘Uncategorized’ Category

a ninja seems to have stolen this site you must return when the moon has friends and the fox is borrowed.

Until then you will find updates here: http://dynamicguy.com

[ from now onwards I will write blog at: http://dynamicguy.com ]

Advertisements

I wrote a class on HTML to PCL and Post Script conversion and submitted that to phpclasses. That class has been nominated for innovation award. Please vote for me.

Here you go: http://www.phpclasses.org/vote.html

Security is a very important issue on any web application. This is why I am very pleased to introduce a security corner on my blog where I will discuss on different types of attacks. Things I will discuss here will not be vague and general overviews. If you are looking for an introduction to security than things like PHP manual could serve you better.

hmm… session fixation, session hijacking. sounds cool huh? well, we will know these right away :p before that I would like to tell something on SESSION.

What is Session?
HTTP is known as a stateless protocol. which means that the webserver does not care multiple requests come from the same user. In other words you can say that HTTP don’t remember anything when the execution is finished. Sessions are used to create a state in between requests even when they occur after weeks from each other.
Sessions are maintained by passing a unique session identifier between requests typically in a cookie (which usually resides in webserver’s file system). Session can also be passed in forms and query arguments. PHP handles sessions transparently through a combination of cookies and URL rewriting, when session.use_trans_sid is turned on in php.ini (it is off by default in PHP5) by generating a unique session ID and using it track a local data store (by default, a file in the system’s temporary directory in my case /tmp/) where session data is saved at the end of every request.

Caution: session_start() must be called before any output is sent to the browser, because it will try to set a cookie by sending a response header. Read the rest of this entry »

Tags:

fdsPhotoFEED v1.0.0

A WordPress plugin for grabbing images and image info from SmugMug, Flickr, Picasa etc RSS feed. Uses the lastRSS PHP class written by Vojtech Semecky. I have taken some reference from Hasin vai’s works. This is why this plugin is dedicated to my hero Hasin Hayder. Thanks also goes to Lenin for giving me this work . Actually this plugin is developed for the owner of http://www.seismictalk.com. As per the permission of http://www.seismictalk.com owner we will release it for free!!

ABOUT:

The fdsPhotoFEED class uses the lastRSS class to grab images from a SmugMug, Flickr, Picasa etc RSS feed to display on any wordpress hosted website. It provides access to the image’s title, description, SmugMug, Flickr, Picasa etc page URL, and the image in any size that SmugMug, Flickr, Picasa etc offers.

Features:

  1. It can fetch photos from SmugMug.
  2. It can fetch photos from Flickr.
  3. It can fetch photos from Picasa.
  4. It supports image caching
  5. It supports lightbox2 slideshow with navigation button Prev & Next.
  6. Image Caption is fetched and shown in lightbox2 show

Installation & Usage:

  • Download and unzip the latest version of the plug-in.
  • If you have a previous version of fdsPhotoFEED installed, disable it on the WordPress Plugins page.
  • Place the “fdsPhotoFEED” folder in your “wp-content/plugins/” directory (over write the old folder if it exists).
  • Activate fdsPhotoFEED on the WordPress Plugins page.
  • Insert “{rss uri=yourFeedURLgoesHere limit=10}” (minus the quotes and spaces) in the source of any page or post you want to display the form on.

sample formats of the {rss} tag

1.{rss uri=http://seismictalk.smugmug.com/hack/feed.mg?Type=nicknameRecentPhotos&Data=SeismicTalk&format=rss200 limit=5}

there are 2 attribute in this {rss} tag which we look for

1. uri = rss feed location

2. limit = how many photo to show

Download:

Please wait for a few more days to get your copy as I have got some license issues 😦

N.B.: You may have look on the usage of my plugin here: http://www.seismictalk.com/

Feeling like a great holiday on the forthcoming Eid-ul-Fitr as I haven’t get such a big holiday before :p

Installing CakePHP on Linux/Ubuntu is a bit tricky as you have to on the mod-rewrite and set the AllowOverride property from None to All. This is why I am giving you the exact steps to install CakePHP on your Ubuntu/Linux LAMP Server successfully so that your CakePHP index page shows with proper formatting with css.

1. Check the mod-rewrite whether it is enabled or not by running the following command:

sudo a2enmod rewrite

You will get a message like this “This module is already enabled!” if your mod-rewrite is already enabled. If mod-rewrite is not enabled, follow the on-screen instructions to install it.

2. Open and edit the default file from this directory /etc/apache2/sites-available/default by using the following command:

sudo nano /etc/apache2/sites-available/default

if you don’t know how to use nano, than you may use another way to set the write permission by running the following command though it’s not recommended 😉

sudo chmod -R 755 /etc/apache2/sites-available/default

3. Find the following Directory structure:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

4. Find AllowOverride None and replace with the following text

AllowOverride All

5.Restart apache using:

sudo /etc/init.d/apache2 force-reload

And you are done! 🙂
Now you should now be able to view http://localhost/ with the correct css formatting for the cake default page.

There are several tips to search various files on Google Search Engine. Google search engine is a powerful tools that allow you search particular files with particular extension followed. Within a fraction of second and Google Search Engine display correct the search result with files extension to you!!

Tips 1: Search and Download Torrent File By Using Google Search Engine :

Enter filetype:torrent in google search engine.

Filetype means : Name of the file to search then filetype:torrent

For Example: ANTIVIRUS KASPERSKY filetype:torrent

Tips 2 : Search and download files from Rapidshare using google search engine to find All rapidshare.de Downloads:

http://www.google.com/search?hl=en&lr=&as_qdr=all&q=+.*+site%3Arapidshare.de

Application Downloads using Rapidshare.de :

http://www.google.com/search?hl=en&lr=&as_qdr=all&q=.cab+OR+.exe+OR+.rar+OR+.zip+site%3Arapidshare.de&btnG=Search

Movies rapidshare.de Downloads:

http://www.google.com/search?hl=en&lr=&as_qdr=all&q=+.Avi+OR+.mpg+OR+.mpeg+site%3Arapidshare.de&btnG=Search

Tips 3 : Search for ebook using Google:

Find Apache’s (default) Index pageTry this query:

+(”index of”) +(”/ebooks”|”/book”) +(chm|pdf|zip|rar) +apache

To find a particular eBook file try this query:

allinurl: +(rar|chm|zip|pdf|tgz) title of the book

Tips 4 : How To Find Ftp’s The Easy WayI u

Some kind of search engine query examples are:

index of ftp/ +mp3
index of ftp/ +divx
index of ftp/ +”whateveryouwant”
allintitle: “index of ftp/mp3


I am Nurul Ferdous a Zend Certified Engineer (ZCE), serving at Bangladesh Internet Press Limited (BIPL) as programmer. I am a FOSS advocate and love RnD.

Categories

Me @ LinkedIn

View Nurul Ferdous's profile on LinkedIn

My Photos @ Flickr

Blog Stats

  • 42,529 [ Vistors ]

My Twitter Updates