Monday, February 7, 2011

'Season of the Witch'

When a movie gets knocked around from one crummy release date to another, one would assume that it is pretty awful. However even I, a knowledgeable and open-minded film geek, wasn’t prepared for the monstrosity that is Season of the Witch, a medieval mess that has reportedly been in the works for a decade. You’d never be able to tell so many years of preparation went into this sad excuse for a B-movie, based on its laughable CGI, dialogue and contrived premise. How many flavors of bad is this supernatural stinker? Sample this…

A period horror action flick, Season of the Witch is initially set in a cursed city suffering from the Black Plague that has deformed and decimated the majority of its population. The disease has been unleashed as a result of a literal witch-hunt gone wrong. Ancient, evil forces are afoot and the blame is put on a young girl who the Church believes is a witch. Though imprisoned in the dungeons of a castle, her power reigns supreme. Enter Behman (Nicolas Cage) and Felson (Ron Perlman), Knights of the Crusades who happen upon the city on their way back to civilization. Once recognized as deserters, they are imprisoned and given the choice to remain captive or lead a suicide transport mission to a remote monastery where the girl’s innocence or guilt can be determined. If deemed evil, she is to be destroyed.

The premise, though far from original, could have been cool if executed with some style, but director Dominic Sena (Gone In Sixty Seconds) is incapable of making it enjoyable. Instead of creating suspense through eerie environments, he settles for cheap thrills that fall short every time. His use of CGI is painfully bad, conjuring effects that would’ve looked dated around the turn of the century. Most insulting is the film’s big “twist” - a lazy paradigm shift so easily foreseeable the movie should have just been called The Devil’s Advocate. Is that not bad enough for you? Just wait, it gets better (read: worse).

Stars Cage and Perlman are Razzie bound with a pair of pathetic non-performances. The accomplished actors don’t even try to get into character. Rather, they don period garb, shield and sword, and run around like cheap imitations of their former selves for two hours. You won’t hear any attempts at English accents because, apparently, 14th Century Knights are just like contemporary buddy cops. With this little effort being put forth by the two men who are essentially the reason folks will pay to see the movie, Season of the Witch doesn’t have much of a leg to stand on. The supporting cast, which includes Ulrich Thomsen, Stephen Graham and Christopher Lee, try to bear the burden but cannot undo the damage that Cage and Perlman inflict upon this film. The scariest thing about Season of the Witch is the movie itself, an abomination of bad filmmaking and terrible acting.

How To get as2 function from javascript

Here is an AS2 example to answer your question:

//AS2
import flash.external.*;
function helloWorld():Void
{
//Do something
}
ExternalInterface.addCallback("myFunction", helloWorld);

// HTML

How To Make Money online

How to make money online? Internet is more than entertainment.There are many genuine and legitimate opportunities to make money online.Greatest advantage of working online is the fact that it allows you to work from home.This website makes an effort to introduce and educate you about all the opportunities online.These opportunities are open to all including working, housewives, teens, kids, students etc.A computer and an internet connection is the basic requirement. This website also has a dedicated section to investment ideas. All popular options to invest including stock market, commodity market,forex trading are included in detail here.

Sunday, February 6, 2011

how i learn to speak english

This rule might sound strange to many ESL students, but it is one of the most important rules. If you want to pass examinations, then study grammar. However, if you want to become fluent in English, then you should try to learn English without studying the grammar.

Studying grammar will only slow you down and confuse you. You will think about the rules when creating sentences instead of naturally saying a sentence like a native. Remember that only a small fraction of English speakers know more than 20% of all the grammar rules. Many ESL students know more grammar than native speakers. I can confidently say this with experience. I am a native English speaker, majored in English Literature, and have been teaching English for more than 10 years. However, many of my students know more details about English grammar than I do. I can easily look up the definition and apply it, but I don't know it off the top of my head.

I often ask my native English friends some grammar questions, and only a few of them know the correct answer. However, they are fluent in English and can read, speak, listen, and communicate effectively.

Do you want to be able to recite the definition of a causative verb, or do you want to be able to speak English fluently?

2. Learn and study phrases

Many students learn vocabulary and try to put many words together to create a proper sentence. It amazes me how many words some of my students know, but they cannot create a proper sentence. The reason is because they didn't study phrases. When children learn a language, they learn both words and phrases together. Likewise, you need to study and learn phrases.

If you know 1000 words, you might not be able to say one correct sentence. But if you know 1 phrase, you can make hundreds of correct sentences. If you know 100 phrases, you will be surprised at how many correct sentences you will be able to say. Finally, when you know only a 1000 phrases, you will be almost a fluent English speaker.

The English Speaking Basics section is a great example of making numerous sentences with a single phrase. So don't spend hours and hours learning many different words. Use that time to study phrases instead and you will be closer to English fluency.

Don't translate

When you want to create an English sentence, do not translate the words from your Mother tongue. The order of words is probably completely different and you will be both slow and incorrect by doing this. Instead, learn phrases and sentences so you don't have to think about the words you are saying. It should be automatic.

Another problem with translating is that you will be trying to incorporate grammar rules that you have learned. Translating and thinking about the grammar to create English sentences is incorrect and should be avoided.

3. Reading and Listening is NOT enough. Practice Speaking what you hear!

Reading, listening, and speaking are the most important aspects of any language. The same is true for English. However, speaking is the only requirement to be fluent. It is normal for babies and children to learn speaking first, become fluent, then start reading, then writing. So the natural order is listening, speaking, reading, then writing.

First Problem
Isn't it strange that schools across the world teach reading first, then writing, then listening, and finally speaking? Although it is different, the main reason is because when you learn a second language, you need to read material to understand and learn it. So even though the natural order is listening, speaking, reading, then writing, the order for ESL students is reading, listening, speaking, then writing.

Second Problem
The reason many people can read and listen is because that's all they practice. But in order to speak English fluently, you need to practice speaking. Don't stop at the listening portion, and when you study, don't just listen. Speak out loud the material you are listening to and practice what you hear. Practice speaking out loud until your mouth and brain can do it without any effort. By doing so, you will be able to speak English fluently.

4. Submerge yourself

Being able to speak a language is not related to how smart you are. Anyone can learn how to speak any language. This is a proven fact by everyone in the world. Everyone can speak at least one language. Whether you are intelligent, or lacking some brain power, you are able to speak one language.

This was achieved by being around that language at all times. In your country, you hear and speak your language constantly. You will notice that many people who are good English speakers are the ones who studied in an English speaking school. They can speak English not because they went to an English speaking school, but because they had an environment where they can be around English speaking people constantly.

There are also some people who study abroad and learn very little. That is because they went to an English speaking school, but found friends from their own country and didn't practice English.

You don't have to go anywhere to become a fluent English speaker. You only need to surround yourself with English. You can do this by making rules with your existing friends that you will only speak English. You can also carry around an iPod and constantly listen to English sentences. As you can see, you can achieve results by changing what your surroundings are. Submerge yourself in English and you will learn several times faster.

TalkEnglish Offline Package is now ready for download. In this package, you can utilize over 8000 audio files to completely surround yourself in English. There are over 13.5 hours of audio files that are not available in the web form. All conversations and all sentences are included, so even if you don't have many English speaking friends, you can constantly surround yourself in English using your MP3 player. This package is available at the English Download page. Take advantage of this opportunity and start learning English faster. Click on the link or go to http://www.talkenglish.com/english-download.aspx.

5. Study correct material

A common phrase that is incorrect is, "Practice makes perfect." This is far from the truth. Practice only makes what you are practicing permanent. If you practice the incorrect sentence, you will have perfected saying the sentence incorrectly. Therefore, it is important that you study material that is commonly used by most people.

Another problem I see is that many students study the news. However, the language they speak is more formal and the content they use is more political and not used in regular life. It is important to understand what they are saying, but this is more of an advanced lesson that should be studied after learning the fundamental basics of English.

Studying English with a friend who is not a native English speaker is both good and bad. You should be aware of the pro's and con's of speaking with a non native speaking friend. Practicing with a non native person will give you practice. You can also motivate each other and point out basic mistakes. But you might pick up bad habits from one another if you are not sure about what are correct and incorrect sentences. So use these practice times as a time period to practice the correct material you studied. Not to learn how to say a sentence.

In short, study English material that you can trust, that is commonly used, and that is correct.

Summary

These are the rules that will help you achieve your goal of speaking English fluently. All the teachings and lessons on TalkEnglish.com follow this method so you have the tools you need to achieve your goal right here on TalkEnglish.com.

How To Improve Our Health

You can be healthier, feel younger, more energized, and more confident in just five steps.  Read on to learn how.

1. Stay away from cigarettes
Everybody is aware that smoking is a major health hazard.  It kills you slowly and reduces your life expectancy.  Aside from increasing your risk for lung cancer, you also become extremely susceptible to other smoking-related diseases.  It does not matter whether you only smoke a couple of sticks a week or if you finish 2 packs a day, hundreds of thousands of people die each year in the US alone due to smoking.
Even those who do not smoke are risking their health when they are around smokers.  They should limit their contact to second-hand smoke.  More often than not, inhaling second-hand smoke is worse than you puffing on that death stick yourself. Make this your final smoke!

2. Get adequate, quality sleep
Adequate hours of sleep should go hand in hand with good quality of sleep for your body to get the benefits of a full night’s rest.  Your bedroom is your sleeping sanctuary and you should make sure that it provides rest and relaxation, nothing else.  The temperature in your bedroom should be just below body temperature, there should be limited or mellow light and sound, and you should always have clean bed clothes.
Your body needs an average of 7 hours of restful sleep every night to completely recharge itself.  It is also important to keep a regular sleeping pattern.

3. Have a healthier diet
Eating healthy is important to look and feel great, both inside and out.  First and foremost, you should reduce your sugar intake.  Small indulgences to satisfy your sweet tooth every now and then can make a difference to your overall health.
Make sure that you always have fruits and vegetables in your diet.  These should be indispensable staples that help your body repair and maintain itself.
You should also avoid skipping breakfast.  The body needs plenty of energy to function throughout the day.  Most breakfast foods contain energy-giving nutrients like Vitamin C and D, fiber, calcium, and iron.  Additionally, if you always eat breakfast, you are less likely to snack on unhealthy foods in between meals.

4. Exercise, exercise, exercise
If you are not into going to the gym, you have plenty of other options.  The important thing is that you exercise regularly to keep your body fit and to burn the calories you consume daily so you won’t gain unhealthy, excess weight.  In addition, exercise can also help reduce your sugar cravings.
There are websites that have free exercise plans you can do right in the comfort of your own home.  You can watch videos or read articles to help you with your fitness routine.  At least ten minutes of exercise every day can be beneficial to your health.

Saturday, February 5, 2011

How to Include a File in PHP

Server Side Includes (SSI)

You can insert the content of one PHP file into another PHP file before the server executes it, with the include() or require() function.

The two functions are identical in every way, except how they handle errors:

* include() generates a warning, but the script will continue execution
* require() generates a fatal error, and the script will stop

These two functions are used to create functions, headers, footers, or elements that will be reused on multiple pages.

Server side includes saves a lot of work. This means that you can create a standard header, footer, or menu file for all your web pages. When the header needs to be updated, you can only update the include file, or when you add a new page to your site, you can simply change the menu file (instead of updating the links on all your web pages).
PHP include() Function

The include() function takes all the content in a specified file and includes it in the current file.

If an error occurs, the include() function generates a warning, but the script will continue execution.
Example 1

Assume that you have a standard header file, called "header.php". To include the header file in a page, use the include() function:

<?php include("header.php"); ?>

Friday, February 4, 2011

How To set Dynamic control names - fill controls in loop c#

# Syntax (Toggle Plain Text)


      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Windows.Forms;

      namespace daniweb

      {

      public partial class frmFindControl : Form

      {

      private List<ArticlePrice> prices;
      public frmFindControl()

      {

      InitializeComponent();

      //initialize the list

      prices = new List<ArticlePrice>();

      for (int i1 = 1; i1 <= 3; i1++)

      {

      prices.Add(new ArticlePrice(i1));

      }

      }

      private void button1_Click(object sender, EventArgs e)

      {

      const string textBoxBaseName = @"textBox";

      if (prices.Count > 0)

      {

      //repeat until we used 10 text boxes or the list ran out of elements

      for (int i1 = 1; i1 <= Math.Min(prices.Count, 10); i1++)

      {

      string ctrlName = textBoxBaseName + i1.ToString("F0");

      TextBox tb = null;

      //Find the controls and search all child containers. Should return 1 element

      Control[] ctrls = this.Controls.Find(ctrlName, true);

      //Make sure it was found

      if ((ctrls.Length > 0) && (ctrls[0] is TextBox))

      tb = (ctrls[0] as TextBox);

      //We didnt find it

      if (tb == null)

      throw new Exception(string.Format("Could not locate text box '{0}'!", ctrlName));

      //We did find it, set the price

      tb.Text = prices[i1-1].Price.ToString("F2");

      }

      }

      }    

      }

      //I mocked up a class since you didnt post your code

      public class ArticlePrice

      {

      public decimal Price { get; set; }

      public ArticlePrice()

      {

      this.Price = default(decimal);

      }

      public ArticlePrice(decimal Price)

      : this()

      {

      this.Price = Price;

      }

     }

      }