Internet Methodologies Journal And News

Let's explore internet with imran

Life Without The Internet

The idea of life without the internet is beyond my understanding

I am not talking about living without the internet, of course we can all do that. I just can’t imagine how anyone can say that the internet connection that they need – for example, for a home business – is down for a week or more.

Maybe this comes from my work as a consultant building secure data centers and call centers that needed 100% uptime.

The expert drawing to the right is supposed to represent where I live. I don’t actually live in a turquoise rectangle, but you get the idea. I have the luck of living near the boarder where 2 departments – sort of like US states – come together. The red arrow is the path that one telephone line follows from the France Telecom central in the Yvelines and the blue arrow from the central that is part of Seine et Marne (2 different French departments or ’states’).

I have 2 landlines entering the house at different entry points, so if a truck crashes into the house, they can only take one line down, unless the house is totally destroyed I would still have a working telephone connection.Once I built a call center for a French hotel chain who had a similar setup – redundant phone lines, redundant power and a generator. The problem that they had was all the phone and power lines met up in one place in the basement and followed one path to the actual call center on the fifth floor. They had a fire in the underground parking just before I was called in, and the car the burned had the misfortune of being parked under the point where all power and phone lines came together.

They had a great beginning of a plan, with a single point of failure.

Electricity to Run the Internet Connection

I have redundant power in the house. Electricity from the local power company that supports my neighborhood  and a generator with enough fuel to run the house for several months – at least 2 full months in the dead of winter. Having a fuel generator is very common in France, my fuel tank is buried in the back yard and holds 3500 liters of diesel fuel. I need to manually switch over, but the downtime could be one minute or less. Side note, not related to the interent connection, is that we cook using bottled gas. As a backup here, if I forget to get a bottle, we have electric hotplates and an oven that will fill the gap as I wait a day to go get the 2 bottles replaced (haven’t needed to do that).

Then I have 2 mobile phones in the house, from 2 different carriers. Each can be bluetoothed to a hub and give 3G connection to the internet. One phone  is an iPhone 3G that has an app allowing any computer to use the phone as a hub to connect to the interent. The second phone is just a standard phone with an internet connection and it can act as a hub, but I onle get an Edge connection with this carrier.

Like I said, the idea of life without the internet is beyond my understanding.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


How to find files in ftp using Google search?

Use this search quote

index of ftp/ +mp3, or
index of ftp/ +divx, or
index of ftp/ +'anything you want' (pdf, 3gp, etc)

For example:

  • index of ftp/ +randomartist mp3

Improve your search with operators:

Google also has many operators that you can use to specify your search:

  • cache:
  • link:
  • related:
  • info:
  • stocks:
  • site:
  • allintitle:
  • intitle:
  • allinurl:
  • inurl:

To use it, simply add the operator to the search quote. For example:
allintitle: index of ftp/ +randomartist mp3

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


MySQL Optimization

myisamchk is used to get information about your database tables or to check, repair, or optimize them. This command can check or repair MyISAM tables. It can also optimize and analyze these tables. Database design, tuning of databases can be used to improve and optimize performance of MySql.

Indexes should be used to increase the performance of MySQl select query. Index on a column can be specified using col_name(n) syntax. Here, n specifies the first “n” characters that can be used to create an index. Columns that will be used more often in a select query should be indexed. When a new index is created; MYSQl builds a separate block of information that needs to be updated every time there are changes made to the table.

MySQL optimizes the following way:

  • Removes unnecessary parenthesis
  • Constant expressions used by indexes are evaluated only once
  • Early detection of invalid constant expressions
  • HAVING is merged with WHERE if GROUPBY is not used.
  • The best Join combination is found.
  • Before each row is output, those that do not match the HAVING clause are skipped.
  • Each table index is queried and the best index is used.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


PHP security tips

  • Avoid the use of global variables. Hence it must be ensured that register_globals option is not enabled.
  • Use of variables designed to be set by GET or POST requests.
  • Store passwords in an encrypted format
  • Avoid storing credit card and other secured information. Trust a third party gateway.
  • Make use of server side validations and avoid trusting the user input.
    Example: if the expected value is integer, use the intval function.
    $post_id = intval($_GET['post_id']);
    mysql_query(“SELECT * FROM post WHERE id = $post_id”);
  • Avoid using user input directly in the query. Mysql_real_escape_string()
  • Always use the updated version of php.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


The cake is still rising

By Mark Story (mark_story)

Recent weeks have seen a few changes in the development team, as well as some clarification of the roadmap for CakePHP future releases. We’d like to thank those leaving for all their hard work and contributions. For those sticking around, you’re in for a treat!

CakePHP Project Manager Garrett Woodworth and Developer Nate Abele have left the CakePHP development team. The entire team would like to thank them for their amazing work and efforts towards the core, cultivating the community and various other contributions associated to ongoing CakePHP development. We don’t feel that we can fully express the gratitude we have for all their hard work, so we won’t. Nate and Garret you will both be missed, thanks for all the fish.

Where does that leave us?

Recent efforts have seen CakePHP 1.3 being developed primarily by Mark Story. Mark has taken the lead on this version, and has been steam rolling bugs and plucking out enhancements for this version. Phenomenal progress has been made on the 1.3 branch, and we’re all excited to see the progress.

While CakePHP 1.3 is still in development, we’re hearing reports of project cropping up using the 1.3 core with great success. This is a testament to the rigorous testing regime in place for 1.3 and the upcoming 2.0 branch of code.

CakePHP 2.0 development has picked up significantly, being led by Predominant (Graham Weldon) and PhpNut(Larry Masters). A push is being made to release a “development” release as soon as possible. The rough roadmap and feature set of the CakePHP 2.0 branch has been updated on the CakePHP 2.0 wiki[1]. We’re all excited to see more user input and feedback on the CakePHP 2.0 development and plans.

So, while we’ve had changes in the development team recently, in terms of the active developers working on CakePHP current branches, very little has changed. We’d also like to extend a thanks to Matt Curry[2] for providing a fill-in-the-blanks reply, to all the end of the world comments floating about.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


What the hell is Joomla?

Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications. Many aspects, including its ease-of-use and extensibility, have made Joomla the most popular Web site software available. Best of all, Joomla is an open source solution that is freely available to everyone.

You can make a complete web application using Joomla Extension without spending a single penny and in a very short time.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


How can we know the number of days between two given dates using PHP?

The start date and end date can be first found as shown below:

$date1= strotime($start_date);
$date2= strotime($end_date);
$date_diff = (($date1)- ($date2)) / (60*60*24)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


Using the Internet to Save Your Budget

Using the internet to save money in your budget is an effective way to cut your living expenses. It is essential to be creative when trying to use the internet to save money within the budget as there are literally hundreds of ways to use the internet to save money.

Start using these methods to begin saving money on the internet:

Search for coupons that can be found on the internet. These coupons can be used by printing them from the website and bringing them to the retail store or by ordering coupons to be delivered through the mail and then these coupons can be redeemed through the retail store. Finding internet coupons for your favorite items can be easy by joining coupon and money saving forums as well as completing internet searches for coupons for specific items that you use all of the time.

Use the internet to compare products and services. Did you know that comparing products and services that you are spending your money on could save you upwards of twenty percent from the regular price of the item? Use the internet to compare services and products through different retail and online stores to make the most of your money.

Using the internet to save money can be easily achieved from shopping online on discount websites as well as shopping for items that are used or new on auction websites. Finding deals on the internet can lead to saving hundreds of dollars per year on items that you would be paying full retail price for.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


What is Type juggle in php?

In order to declare a variable in PHP, the type of the variable is not required. The data type is determined by the value / context of the variable. If integer value is assigned to the variable $num, then the variable $num is of the type integer. If string value is assigned to the variable $str, the variable $str is of the type string.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks


Web 3.0 Concepts

Web 1.0 – That Geocities & Hotmail era was all about read-only content and static HTML websites. People preferred navigating the web through link directories of Yahoo! and dmoz.

Web 2.0 – This is about user-generated content and the read-write web. People are consuming as well as contributing information through blogs or sites like Flickr, YouTube, Digg, etc. The line dividing a consumer and content publisher is increasingly getting blurred in the Web 2.0 era.

Web 3.0 – This will be about semantic web (or the meaning of data), personalization (e.g. iGoogle), intelligent search and behavioral advertising among other things.

If that sounds confusing, check out some of these excellent presentations that help you understand Web 3.0 in simple English. Each takes a different approach to explain Web 3.0 and the last presentation uses an example of a “postage stamp” to explain the “semantic web”.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks