Tuesday, December 27, 2011

Udheriko Choli - LOOT; उध्रेको चोली-लुट

छुनलाई होईन हेर्न चाही पाइन्छ, आखाँलाई सेक्न जति नि पाइन्छ
छुनलाई होईन हेर्न चाही पाइन्छ, आखाँलाई सेक्न जति नि पाइन्छ
उध्रेको चोली छ है, त्यहि पनि लाइन्छ
मेरो ओठको लाली अरु कहाँ पाइन्छ

udherako choli teai herna aincha, loot full movie, nepali loot full movie, loot songs, full hd loot song, best movie songs loot, loot full movie nepali, लुट फिल्म, लुट फिल्मको पुरा भाग

Monday, December 26, 2011

Best Motivational Video Ever for Nepalese, प्रेरणा लिनुपर्ने

कहिले पनि हार नमान्नु, यस चलद्दष्यबाट हामीले प्रेरणा लिनुपर्ने पर्छ र कहिले पछि हट्नु हुन्न।

This video has touched me in many ways.

If i failed i try again, i try again, n again and again, it matters how you going to finish. And we all want to finish strong.

I failed some of my grades, or just want to do better in them. I see my friends, they get all the A's. I feel like nothing. But do you know what? I'm not nothing. Just different. And what am i going to do to combat this?
I'm going to retake them. And if i fail, retake them again, and if i fail again, guess what i plan on going to do? Not give up.

And at last i was able to take the lead in my classes and i maintain the ratio up-to my bachelors.

त्यसैले म भन्छु प्रयास गरेपछि असम्भव केही छैन, धन्यवाद।

I don't know the guy in the video but I've cried about being fat, complained about my flabby arms, legs... but he doesn't even have arms or legs. He's perfectly contented, happy, inspiring and amazing. I'M GRATEFUL FOR LIFE.

I want you to know that there is more to life than exams. The meaning of life is finding yourself in a position where you can openly admit that you are 100% without a shadow of a doubt happy. Whether you fail 100 times and you pass the 101st time and it makes you happy, well done to you. If you want to work in a supermarket stocking shelves and that makes you happy well done again. Striving for a perfect life is difficult as humans always set high goals. Aim for happyness.

Saturday, December 24, 2011

sanni nani hirakula lauree ley thakya thakya

सान्नानीलाई तिमीलाई हिर्काउला लौरीले ठ्याक्क ठ्याक्क ठ्याक्क ठ्याक्क!!

One of the most popular music video of Nepal which have crossed around 22 lakh and i also cannot stop listening it. Nandita KC (Model of this song) is damn sexy and her dress up also matches her with the songs. Nice video keep up the quality and keep on progressing Nepalese industry. We will be happy to see more visit and reach crore and kharab of visitors.

Although we Nepalese are back on earning things so if we can attract lot of visitors then we have to apply for youtube partner and can earn huge amount of money so i request all to stop piracy and request all the musicians and singers to apply for the you tube partnership program and earn large amount of money.

I think i'm 2,227,876 viewer... if piracy had not been there then Babu Bogati would have got RS.2,227,876.. THAT'S HUGE AMOUNT

Great song & nice video.Babu Bogati is very handsom & he have a great voice.modal is very beautiful & sweet.now babu bogati & this model was staring their first movie ' BATO MUNIKO PHOOL'.this moive was released on last month.people sayes this moive is good.best off luck babu bogati for nepali movie.i hope neoali film industry get a new rajesh hamal.  JAY JAY NEPAL SUNDER SANTH VISHAL JAY NEPAL

sanni nani hirakula lauree ley thakya thakya

Yo maya nai ho bhanee susauna deu malai timro tyo sital man ma

Yo maya nai ho bhanee, Yo maya nai ho, kina ho kina har pal har chen, kasto lagan, maya nai ho ki sayad, susauna deu malai, timro tyo sital man ma, यो माया नै हो भनी, किन हो किन, किन हो किन हरपल हर।

Yo maya nai ho bhanee susauna deu malai timro tyo sital man ma
Akash heree badal lai chau ghai lagcha
Sansar lai agalee harau ghai lagcha
Tara timro sath akkai pal pani mero jiwan ko shara khushi
Kin ho kin har pal har chin tadpaucha mero man
Ma pashi timi timi chai bagne nadi, yo man supanchu daibai lai sachi rakhi
Tara timro sath mero jiwan ko khushi
Orri pari kin aucha akhama kasto lagan

anju pant music, anju pant music videos, online anju pant music player, country anju pant music, anju pant music lyrics, free anju pant music sites, free streaming anju pant music, anju pant music downloads, free online anju pant music, free anju pant music online, new anju pant music, listen free anju pant music, free internet anju pant music, anju pant music websites, anju pant music online, listen to anju pant music, online anju pant music radio, online anju pant music, anju pant music.com, anju pant music sites, stream anju pant music, free anju pant music, listen anju pant music, anju pant music player, live anju pant music, anju pant music site, anju pant music quotes, anju pant music stream, free mp3 anju pant music, anju pant music online free, anju pant music video, streaming anju pant music, anju pant music torrents, free anju pant music download, download anju pant music free, free anju pant music downloader, my anju pant music, free anju pant music listening, gospel anju pant music, rock anju pant music, hip hop anju pant music, mtv anju pant music, free anju pant music videos, play free anju pant music, anju pant music stations, anju pant music player online, free downloadable anju pant music, free anju pant music streaming, anju pant music jesus, free downloads anju pant music, anju pant music videos online, anju pant music download sites, radio anju pant music, hear free anju pant music, online free anju pant music, anju pant music charts, streaming anju pant music sites, anju pant music download, free play anju pant music, christian anju pant music, youtube anju pant music videos, streaming christmas anju pant music, free anju pant music player, free anju pant music stations, free radio anju pant music, christmas anju pant music streaming, free country anju pant music, anju pant music stations online, rap anju pant music, you tube anju pant music, listen to youtube, get free anju pant music, free anju pant music websites, anju pant music for free, free listening anju pant music, anju pant music free online, anju pant music website, anju pant music downloader, anju pant music streaming sites, anju pant music free, free anju pant music site, royalty free anju pant music, all anju pant music.com, mp3 anju pant music downloads, free anju pant music radio, anju pant music free download, listen to anju pant music free online, play anju pant music online, launch, anju pant music listen, jango anju pant music, utube anju pant music, christmas anju pant music, anju pant music online listening, listen to free anju pant music online, anju pant music streaming, free anju pant music mp3, anju pant music playlist, latest anju pant music, play anju pant music, anju pant music on line

Tuesday, December 6, 2011

Nothing's impossible with god on your side

Nothing's impossible with god on your side, you are going to give me your best, I am going to give my best

Tuesday, November 29, 2011

Really Amazing Refreaction Capture

Real Refraction
Real Refraction

Really Amazing Refreaction Capture, funny animal refraction capture

Really Addicted with the Jokeroo
Really Addicted with the Jokeroo


We know that greed and fear rule the markets. But did you know that when investors gets too greedy, markets usually fall, and when investors are overcome with fear, markets usually rise. So how can when we monitor investors emotions and take advantage of investors emotional extremes?

Welcome to the world of investor sentiment analysis.

Investor psychology has been analysed for at least 250 years. Charles MacKay wrote his book, 'Extraordinary Popular Delusions And The Madness Of Crowds', in 1841, describing, among other manias, the herd mentality that caused the South Sea Bubble. Since then, many academics have published financial theories based on the concept that individuals act rationally and consider all available information in the decision-making process. But real life frequently demonstrates that the behavior of equity markets is irrational and unpredictable. A field known as "behavioural finance" has evolved over the years attempting to explain how emotions influence investors and their decision-making process. Studying human psychology helps predict the general direction of financial markets as well as many stock market bubbles and crashes. At the height of a period of optimism, greed moves stocks higher, ignoring business fundamentals and therefore creating an overpriced market. At the other extreme, fear moves prices lower, ignoring obvious opportunities and creates an undervalued market.

One important study, ("Aspects of Investor Psychology," The Journal of Portfolio Management, Summer 1998) found that investors are much more distressed by prospective losses than they are made happy by equivalent gains. Some researchers theorize that investors "follow the crowd" and conventional wisdom to avoid any regret in the event their decisions prove to be incorrect.


When a stock or market index rises, we know that it means investors are more eager to buy than to sell. But how can we accurately gauge just how investors feel?

Most often, investors are somewhere between mildly positive and mildly negative, and only occasionally do they demonstrate the extremes of greed or fear. It is easier to detect emotion when it is close to either irrational exuberance or outright fear. When markets act this way, it becomes "news" and moves from the business section, to being featured at the start of the evening news, and on the front page of the daily newspaper.

The success of charting as a tool, depends on investors repeating their behaviour patterns. There is always a comfort factor in doing the same as others and generally an aversion to behaving differently. Investors display herding instincts in their behaviour and this has become particularly noticeable among institutional investors. In the early stages of a rising trend in a market, positive sentiment can act as a positive driving force as everyone rushes in to join the party. However, there comes a time after the trend has been in place, when this positive sentiment acts as a warning that the trend is nearing its climax. That's when smart investors will start switching to alternative investments.

The most sophisticated and active players in the market use derivative products to effect their transactions. These players tend to display earlier changes in emotion than most investors and normally their emotions run to greater extremes. So, derivative markets are a good source of data on investor sentiment. There are various options available on stocks, ETF's and indexes. By using an option pricing formula, we can extract a measure of how much investors are prepared to pay for the possibility of making a profit, or hedging against a loss. This is known as implied volatility, and it provides a mathematical valuation of investor emotion. Implied volatility tends to be high (the scale is inverted) when the market has had a sharp fall and this is associated with investor fear. At the other extreme, low implied volatility often occurs after a rise in the market and when investors are becoming complacent.

Implied volatility image


VIX is the symbol for the Chicago Board Options Exchange's volatility index for the S&P 500 (SPX). It is a measure of the level of implied volatility and not historical or statistical volatility. A numerical value for the VIX has been published by the CBOE since 1993. The method of calculating VIX was changed in early 2003. Instead of using the S&P 100 (OEX) Index options, it is now calculated using the options on the S&P 500 (SPX). Also note that the VXN is the symbol for the implied volatility index of the NASDAQ 100 index.

The implied volatilities are weighted to give the VIX a value that in effect acts as the implied volatility of an at-the-money SPX option at 22-trading days to expiration. The VIX represents the implied volatility of a hypothetical at-the-money SPX option. If implied volatility is high, the premium on options will be high and vice versa. Generally speaking, rising option premiums reflect rising expectation of future volatility of the underlying stock index, which represents higher implied volatility levels. The higher the VIX, the more panic in the markets and the greater the chance that investors have given up hope, taken their money, and gone home.

Comparing the movement of the VIX with that of the market can quite often provide clues as to the future direction the market might move. The more the VIX increases in value, the more "panic" is an issue in the market place. On the flip side, the more the VIX decreases in value, the more complacency there is amongst investors. The psychological impact measured by a relatively high VIX is a clear indicator that tells traders markets are oversold. A historic example was displayed on July 23rd 2002 when the VIX shot over 55. That big move coincided with a significant low in the Dow Jones Industrial Average that was followed by a 1,034-point, six-day rally. That rally didn't stick and the market again re-tested its July low in October of 2002. But throughout this double bottom in 2002 the VIX accurately identified a major directional shift in the market. At its core, the VIX is a statistical measure of emotions, and emotions are a major factor signalling capitulation in the market.

Sample charts


Extremely high readings of VIX indicate market bottoms, while low readings indicate market tops.

The VIX actually has an inverse relationship to the stock market. This is one of the first things you'll notice when viewing the VIX on a bar chart. When the VIX goes down the stock market moves higher. When the VIX advances, the stock market is headed lower. Generally speaking, a rising stock market is considered less risky by investors. On the other hand, a declining stock market is considered more risky. Therefore, the higher the perceived risk by investors the higher the implied volatility. This will make options, especially put options, more expensive.

When the phrase "implied volatility" is mentioned, keep in mind that it is not about the size of price swings. Rather it's the implied risk that is associated with taking a position in the stock market. When the stock market declines, the demand for put options usually increases. Increased demand means higher put option prices.


One early study identified a VIX value of 25 as normal, and a value above 35 as high. Between October 1997 and May 2001 the VIX indicator went above 35 eleven times. In this study, the S&P 500 index as represented by SPY ETF. was purchased each time and held until the VIX retreated below 25. There were 9 profitable trades for an average gain of 3.1% and an average holding period of about one month. By using this VIX timing scheme you could capture 80% of total gains in the market, but your money is only at risk one third of the time.

Sample chart

Extremes in fear mark great buying opportunities.

Sample chart


An extended and/or extremely low VIX suggests a high degree of complacency and is commonly considered bearish. From the contrarian view point ,many traders are of the opinion that if the VIX becomes low, they'll begin looking for a reason to begin selling stock. On the flip-side of the coin, a very high VIX can indicate a high degree of anxiety which often leads to panic among options traders. This action is often considered bullish by the contrarian, and they'll look for reasons to begin buying stock. High VIX readings usually occur after an extended or sharp market decline with investor sentiment still very bearish. Some contrarians view readings above 35 as bullish. Hence, they'll begin looking for a major market turn to the upside.

The VIX should be used in conjunction with "regular" analysis of price action on price charts. The wise trader will never make a purchase or sale based solely on the price level of the VIX. The wise trader will use the VIX (and its support and resistance levels) in conjunction with the price action of charts of the S&P 500, the Dow, and the NASDAQ.

Using the VIX with charts of these indices will help you get a good grasp of the current market psychology. Since market movements are based entirely on human emotions, it is important for traders to understand psychological indicators. When the VIX is used correctly it helps you stay on the right side of the market and make profitable trades.

Understanding Investor Sentiment (or Investor Psychology) is by far the most powerful tool an investor can use to understand exactly where the stock market is, and where it is going. But it is often hard to digest, as it is counter intuitive to our human nature.

Here is a recent example that will help illustrate this point.

In September 2005, the TSX was making multi year highs. While the VIX Indexes was down near multi year lows. Standing back and looking at these two pieces of information, you might question the wisdom of adding long-term money to this market at this time.

You might, but human nature would not.

Canadian Press
Mon Oct 17, 3:58 PM ET

Canadians are shovelling money into mutual funds almost like it's 2001 again, with September purchases of $1.8 billion - up from net redemptions of $545 million a year ago.

The Investment Funds Institute of Canada said Monday that investments in long-term funds - equity, bond and other funds excluding short-term money market funds - topped half a trillion dollars for the first time. "This underlines the fact that investors are making long-term commitments to funds, and not simply parking their investments temporarily in money market funds," commented Tom Hockin, president of the fund industry association.

Sales in the first nine months of the year, net of redemptions and excluding reinvested distributions, totaled $18.4 billion, "the highest net sales figure since the same period in 2001," Hockin observed.

Yes, you read that correctly, Canadian have not been this enthusiastic since the last time the market was peaking.

TSX Sample Chart

Now we don't have enough data yet, but since Canadian Mutual Fund investors did their "extreme" mutual fund shopping last month, the market has already dropped 800 points.

Now ask yourself, if you were going to put money into this market, was September the best, low risk time to do so in the past 5 years? Were these investors thinking analytically, or did the emotion of greed cloud their judgments?

My guess is that this is what I like to call "Panic Buying", of Canadian Mutual Funds last month, will signal the very top of this market, and be the catalyst for a major sell off.

Only time will tell if I am right.

Optimizing any web page involves both on-page and off-page optimization

Optimizing any web page involves both on-page and off-page optimization. Whereas on-page optimization emphasizes the use of carefully selected keywords to write a web page, off-page optimization is all about building links to the web page from other web pages as well as other websites. The leading search engines' ranking algorithms have placed much importance on links that it is not possible to achieve a high-ranking based solely on competitive keywords.


There are two basic types of links used in websites. One is the navigational link which connects pages within a site. The other one is the hypertext link which offer parenthetical material, footnotes, digression or parallel themes that can serve to provide relevant information in relation to the main content of the page. Both types of links however, can be disruptive or problematic in the overall site design when not used in its proper context.

Links can distract attention especially if a paragraph or text is filled up with invitations to readers to proceed to other pages or sites. This threatens the smooth flow of content as readers jump from one page or site to another. The context of information can entirely be altered as readers find themselves in an unrelated territory without the benefit of any introduction or proper explanation.

The primary purpose of having links is the reinforcement of an author's original message by providing a choice of connected materials. Links should be geared towards pointing to other resources within the site which uses related texts or visuals. A reader should be made clearly aware when he/she leaves one website and enters another through a link.

Good hypertext linking aims to maintain a site's contact with its readers. A simple link will usually work within a single browser window where the original content disappears substituted by the linked page. This can be avoided by adding the TARGET = "main" argument to link tags. Through this, the linked page will appear in a new browser window in front of the original one which allows the reader to access the new material without losing visual contact with the original site. The use of frames is another way to maintain narrative and design context. Frames can be used to split the browser screen between site navigation and the material intended to be brought out.

Website navigational links can be provided through plain text links, JavaScript links, PHP links or graphical links. Plain text links are the easiest to implement and its use is recommended even if other link types are being used as a main navigational structure. All search engines are able to follow them although it can be very difficult to maintain them for websites that have more than 50 pages. Providing careful attention to website design can address problems associated with this. JavaScript navigation is used to build complex drop down menus for large websites. It offers the advantage of an almost effortless change procedure once it is implemented but it requires more knowledge and expertise to implement. However, this type of link is not followed by search engines hence the pages referenced by the said links may not be indexed without some other form of navigation provided.

Linking in Relation to Usability

Usability is the ability to successfully and confidently learn or complete a task with a reasonable amount of comfort provided to the end user. Usability in the eyes of a website designer or application developer is being able to design and build websites that can be understood and easy to use in accomplishing a task. It is essentially about meeting the needs of customers and anticipating their other needs to help them reach their goal through a website that is true to its own goal of providing the right information or at least access to it.

A usable website stands to reap the benefits of conversion and customer satisfaction. A website should be able to tell the reader what it is all about, what product or services are being offered and what procedural steps are being taken that will earn the trust of customers. Most importantly, it should be able to meet the needs of both humans as well as search engines. Both are intent on understanding a web page, knowing how to get to the next relevant page and being able to find that all important link. The information structure of a website should be construed in a way that would enhance the speed and understanding of it.

The priority of SEOs is to get clients' web pages into search engines and directories as well as to have them ranked good enough to be found by end users. Marketing and usability should come hand in hand so that the site owner does not only have prime spots in search engines but also customer conversion as well. The ultimate challenge of any website developer is to be able to ultimately build sites for people and not for search engines only.

A link has two ends – the source anchor and the destination anchor. The term link however, usually refers to the source anchor while the destination anchor is called the link target. The most common link target is a URL (Uniform Resource Locator) used in the World Wide Web which can refer to a document such as a web page, other resource or to a position in a web page which is achieved by means of an HTML element.

Hyperlinks are usually displayed in a web browser by some distinguishing way such as a different color, font or style. The usage of a mouse cursor changing into a hand motif may also indicate a link in a graphical user interface. Links in most graphical web browsers are displayed as underlined blue text when not cached and underlined purple text when cached.

Having the right link in the right place at the right time and page is the dream of any website owner. Most pages have some type of main navigation to access major categories within the site. Another set of links pointing to things like a privacy policy may also be seen. Many sites use secondary navigation on pages within sections of the site. A different section may provide a different set of links in the secondary navigation which can be very helpful to users and search engines. The navigational links are often seen in a content-rich area on a page. It is very common to see links embedded within the text in the content area of web pages which is very advantageous from a search engine optimization point of view. One of the existing dangers of this practice is when these links are missed due to the reader's natural tendency to just scan the pages due to time constraints. Embedded links should be placed within the content in a way that they can easily be seen. Having too many can make it very difficult to read the text on a page. Confine these kinds of links to the most important and outstanding links. The rest of the links can be placed in other critical parts of the page.

Saturday, November 26, 2011

So you want to be a millionaire?

Who doesn't...

I come across so many people that say "I'm going to make a million dollars in network marketing". I have conversations with people telling me how they're going to become millionaires.

That's great I'll help you reach that goal every way I can.

But you know what?

Not everyone is going to make a million dollars in network marketing... and that's ok.

Most people's lives would change with an extra $500 or $1000 a month.

If you're in network marketing the opportunity is here to become a millionaire.

let's talk about that for a second.

To become a millionaire in network marketing is going to take lot of WORK.

Yes, you can do it in the shortest amount of time compared to other business opportunities but you still have to WORK...

But you work smart not hard.

And the cost for start up is minimal.

But it still takes WORK!! no matter how you cut it.

To become a millionaire in network marketing you're going to have to do things differently.

What do I mean? One of my mentors Michael Dlouhy told me this.

"Duffy if you want more, you're going have to become more".

That made a lot of sense to me.

So what if you're not going to make a million dollars a year in network marketing?

Look I'm not saying you're not going to make a million dollars, but let's say it's not in the cards or that's an amount you can't relate to. (Lots of people can't relate to earning that kind of money)

How much do you make now?

I'll go with the average and say $30,000. Everything is ok, sometimes it's a struggle but you get by, but things could be better.

Imagine doubling your income. Can you imagine earning $60,000 per year?

Sure you can.

So if you didn't make a million dollars a year but you're making $60,000 in network marketing would you consider yourself a failure?


But let's say your better at this then you thought and you're earning $100,000 to $150,000 per year.

Would you consider yourself a failure?


Do you think you could have a pretty good life earning that amount each year?


Man if you're earning that kind of money from network marketing. You're winning trips, vacations, getting deals on conventions or even winning trips to your companies conventions, your winning shopping trips, bonus money, car programs, free product or services.

The things many people have to spend money on such as trips, vacations, products, services and cars. You're could be getting them from your company for a lot less or even free, because of your ranking in your company.

The life you may want may be a lot closer then you think.

Tell me, if you made $100,000 to $150,000 per year in network marketing you'd be a very happy camper, yes?

Tell me you wouldn't, I dare ya.

I believe in you!!

Until Next Time

To Your MLM Success
Duffy Rogan

Maximize Your Sales with the 2 Step Auto Responder

Maximize your marketing and sales with some auto responder Improvements. Try some of these marketing promotional pieces, the tryed and tested 2 step mailing process. Guaranteed to boost you profits.

1. Collect vital customer satisfaction information by publishing a survey to send via auto responder to those who sign up on your site in exchange for a free eBook, software or trial period at your membership site. This type of information will help you understand their needs, likes & dislikes better.

2. Publish free reports to send via your auto responder. The reports should be related to your business or web site & contain info, ads and links to your sites. People love getting freebies.

3. Instead of publishing all of your customer testimonials or endorsements on your website, publish only a few there. And set up an auto responder form that invites visitors to receive a complete list via your. Give them a power-packed list; it's more effective to include all of them.

4. Instead of answering each customer question that is e-mailed to you, publish "Frequently Ask Questions" and make them available via auto responder to those who sign up. To save time and support headaches.

Mix and match. Change your auto responder strategy to change your auto responder results! Also top sales pros confirm that it often takes seven or more communications or sales messages before prospective customers make a purchase. They also confirm that it's generally easier to sell to a referral, because someone they know gave positive testimonial about their products or services.
What would happen if you combined both of these powerful ideas? A nifty and thrifty two-step. Try this two-step tip:

1. Publish a price list of all the products and services that you offer in an insert, direct marketing package and / or .pdf to be made available via auto responder. You could also include order forms, product descriptions, and other sales material. Then send to the people in #1 above with monthly updates, announcements of new sales and products / services, and a request for referrals.

2. Collect leads with your auto responder. Ask for mailing addresses and telephone numbers, too, for additional ways to follow up with each person. When you download the e-mail digest of everyone's e-mail addresses and other information from those who requested additional information from your auto responder, follow up multiple ways. Send postcards. Call. Mail sales letters and other promotional pieces.

So why not improve your closing ratio and reach out even farther at the same time?

Sunday, October 9, 2011

A letter for the visit to the technological developed place

Dear and Respected Sir,
Thanking you a lot sir, as we have got a great Nepalese like you for developing wireless in remote mountain village of Nangi into the computer era.
Sir, we the students of Nobel College with program of BCIS (Bachelor in Computer Information System) are very interested to know about the wireless implementation in those rural areas thus we have decided to visit the Nangi area and study about the wireless technology with you and your creation. Thus, we have written this e-mail to you for requesting you to let us learn the wireless technology in your village.
Likewise, we can help you to broaden the wireless technologies also. But what we need from the educational tour is that you will help us learn the technologies what you are using as well as we will share our views and known technologies and knowledge that can be used or anything that we have knowledge.
Our Package Style
Team Member
6 students
Days that we will spend with you
4 days (total)
Lectures by you
1 day
Socialization with the equipment and society
1 day
Tools and techniques that are implemented
1 day
Our sharing with you
1 day
Back to our study

We can also make you that what we have found in the field and can provide suggestion and help if and only if you wish.
At last what we are sure that you will provide good response to it.
Hope that you will help us to learn technologies and help us to broaden our mind.
Name of student:

Thursday, September 15, 2011

Simple hooking to catch the error in the jquery ajax

Complete and success difference in the jquery ajax, how to find errors in the jquery or in ajax, jquery and ajax error handlers, find php errors in jquery or in ajax

Saturday, August 27, 2011

Rupak have following module available

I have bought following module for my client so I can now implement for other client also.

Module of Opencart:

  1. FEDEX module
  2. Bring Module for Norway
  3. DIBS Payment Module
  4. Facebook Login Module
So on..
More at 

Monday, June 20, 2011

Facebook things done by Rupak Nepali

How to make facebook like button for the dynamic page
<iframe style="overflow: hidden; border: 0px none; width: 120px; height: 35px;" src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode("http://%22.$_server[%22server_name%22].$_server[%22request_uri/"]); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=150&amp;action=like&amp;font=arial&amp;layout=button_count"></iframe>

In this <iframe make space for the facebook to comunicate with the site

style="overflow: hidden; border: 0px none; width: 120px; height: 35px;"
style for the frame's data

src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode("http://%22.$_server[%22server_name%22].$_server[%22request_uri/"]); ?>
source file to be liked.

<?php echo urlencode("http://%22.$_server[%22server_name%22].$_server[%22request_uri/"]); ?>
url that we inserted

other are optional

facebook like button for the dynamic pages, like button etc

Wednesday, June 8, 2011

Collection of function and objects

Set the currency to be used in overall site.
public function set($currency) {
                $this->code = $currency;
                if ((!isset($this->session->data['currency'])) || ($this->session->data['currency'] != $currency)) {
                                $this->session->data['currency'] = $currency;
                if ((!isset($this->request->cookie['currency'])) || ($this->request->cookie['currency'] != $currency)) {
                                                setcookie('currency', $currency, time() + 60 * 60 * 24 * 30, '/', $this->request->server['HTTP_HOST']);
format($number, $currency = '', $value = '', $format = TRUE):

public function format($number, $currency = '', $value = '', $format = TRUE) {
                                if ($currency && $this->has($currency)) {
                                $symbol_left   = $this->currencies[$currency]['symbol_left'];
                                $symbol_right  = $this->currencies[$currency]['symbol_right'];
                                $decimal_place = $this->currencies[$currency]['decimal_place'];
                } else {
                                $symbol_left   = $this->currencies[$this->code]['symbol_left'];
                                $symbol_right  = $this->currencies[$this->code]['symbol_right'];
                                $decimal_place = $this->currencies[$this->code]['decimal_place'];
                                                $currency = $this->code;

                if ($value) {
                                $value = $value;
                } else {
                                $value = $this->currencies[$currency]['value'];

                if ($value) {
                                $value = $number * $value;
                } else {
                                $value = $number;

                $string = '';

                if (($symbol_left) && ($format)) {
                                $string .= $symbol_left;

                                if ($format) {
                                                $decimal_point = $this->language->get('decimal_point');
                                } else {
                                                $decimal_point = '.';
                                if ($format) {
                                                $thousand_point = $this->language->get('thousand_point');
                                } else {
                                                $thousand_point = '';
                $string .= number_format(round($value, (int)$decimal_place), (int)$decimal_place, $decimal_point, $thousand_point);

                if (($symbol_right) && ($format)) {
                                $string .= $symbol_right;

                return $string;
convert($value, $from, $to):
Convert the given value from once currency to other. The parameters are $value means of what amount and $from means of which currency and $to mean to which currency is the value to be converted.
public function convert($value, $from, $to) {
                                if (isset($this->currencies[$from])) {
                                                $from = $this->currencies[$from]['value'];
                                } else {
                                                $from = 0;
                                if (isset($this->currencies[$to])) {
                                                $to = $this->currencies[$to]['value'];
                                } else {
                                                $to = 0;
                                return $value * ($to / $from);
Returns the currency ID.
public function getId() {
                                return $this->currencies[$this->code]['currency_id'];
Returns the currency code.
public function getCode() {
                return $this->code;
If the currency is set then returns the value nor it will return zero.
public function getValue($currency) {
                                if (isset($this->currencies[$currency])) {
                                                return $this->currencies[$currency]['value'];
                                } else {
                                return 0;
Whether the request currency is available or not.
public function has($currency) {
                return isset($this->currencies[$currency]);

login($email, $password):
Check whether the customer is approved and check whether the username and password is correct or not.
public function login($email, $password) {
                                if (!$this->config->get('config_customer_approval')) {
                                                $customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1'");
                                } else {
                                                $customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1' AND approved = '1'");
                                if ($customer_query->num_rows) {
                                                $this->session->data['customer_id'] = $customer_query->row['customer_id'];
                                                if (($customer_query->row['cart']) && (is_string($customer_query->row['cart']))) {
                                                                $cart = unserialize($customer_query->row['cart']);
                                                                foreach ($cart as $key => $value) {
                                                                                if (!array_key_exists($key, $this->session->data['cart'])) {
                                                                                                $this->session->data['cart'][$key] = $value;
                                                                                } else {
                                                                                                $this->session->data['cart'][$key] += $value;
                                                $this->customer_id = $customer_query->row['customer_id'];
                                                $this->firstname = $customer_query->row['firstname'];
                                                $this->lastname = $customer_query->row['lastname'];
                                                $this->email = $customer_query->row['email'];
                                                $this->telephone = $customer_query->row['telephone'];
                                                $this->fax = $customer_query->row['fax'];
                                                $this->newsletter = $customer_query->row['newsletter'];
                                                $this->customer_group_id = $customer_query->row['customer_group_id'];
                                                $this->address_id = $customer_query->row['address_id'];
                                                return TRUE;
                } else {
                                return FALSE;
Destroy all the session of the logged customer.
public function logout() {

                                $this->customer_id = '';
                                $this->firstname = '';
                                $this->lastname = '';
                                $this->email = '';
                                $this->telephone = '';
                                $this->fax = '';
                                $this->newsletter = '';
                                $this->customer_group_id = '';
                                $this->address_id = '';
Check whether the customer is logged in or not.
public function isLogged() {
                return $this->customer_id;
getId(), getFirstName(), getLastName(), getEmail(), getTelephone(), getFax(), getNewsletter(), getCustomerGroupId(), getAddressId():
Returns the customer information like for ID we have to write $this->customer->getId().
public function getId() {
                return $this->customer_id;
                public function getFirstName() {
                                return $this->firstname;
                public function getLastName() {
                                return $this->lastname;
                public function getEmail() {
                                return $this->email;
                public function getTelephone() {
                                return $this->telephone;
                public function getFax() {
                                return $this->fax;
                public function getNewsletter() {
                                return $this->newsletter;           

                public function getCustomerGroupId() {
                                return $this->customer_group_id;         
                public function getAddressId() {
                                return $this->address_id;           

$this->db->query(“Select * from product”); This returns all the product available in the database
public function query($sql) {
                                return $this->driver->query($sql);
public function escape($value) {
                                return $this->driver->escape($value);
public function countAffected() {
                                return $this->driver->countAffected();

Last affected or inserted or deleted Id is returned.
public function getLastId() {
                                return $this->driver->getLastId();

The title of the page is set with the call of $this->document->setTitle($title); where $title is the parameter which take the string.
public function setTitle($title) {
                                $this->title = $title;
$this->document->setTitle() means the title is get and set to <title> of the document
public function getTitle() {
                                return $this->title;
$this->document->setDescription($description) which set the description of the page.
public function setDescription($description) {
                                $this->description = $description;
$this->document->getDescription() gives us the description of the document which is embedded in the <head> of the document
public function getDescription() {
                                return $this->description;
$this->document->setKeywords($keywords) set the SEO keywords
public function setKeywords($keywords) {
                                $this->keywords = $keywords;
$this->document->getKeywords() get the keywords which are set for the page.
public function getKeywords() {
                                return $this->keywords;
$this->document->setBase($base)  the base url for the document. If we need different base url then we have to set it.
public function setBase($base) {
                                $this->base = $base;
Retrieve the set base url
public function getBase() {
                                return $this->base;
public function setCharset($charset) {
                                $this->charset = $charset;

                public function getCharset() {
                                return $this->charset;
public function setLanguage($language) {
                                $this->language = $language;
public function getLanguage() {
                                return $this->language;
public function setDirection($direction) {
                                $this->direction = $direction;
public function getDirection() {
                                return $this->direction;
addLink($href, $rel):
public function addLink($href, $rel) {
                                $this->links[] = array(
                                                'href' => $href,
                                                'rel'  => $rel

public function getLinks() {
                                return $this->links;
addStyle($href, $rel = 'stylesheet', $media = 'screen'):
public function addStyle($href, $rel = 'stylesheet', $media = 'screen') {
                                $this->styles[] = array(
                                                'href'  => $href,
                                                'rel'   => $rel,
                                                'media' => $media

public function getStyles() {
                                return $this->styles;

public function addScript($script) {
                                $this->scripts[] = $script;                                             
public function getScripts() {
                                return $this->scripts;

addBreadcrumb($text, $href, $separator = ' &gt; '):
public function addBreadcrumb($text, $href, $separator = ' &gt; ') {
                                $this->breadcrumbs[] = array(
                                                'text'      => $text,
                                                'href'      => $href,
                                                'separator' => $separator

public function getBreadcrumbs() {
                                return $this->breadcrumbs;

function encrypt($value) {
                                if (!$this->key) {
                                                return $value;
                                $output = '';
                                for ($i = 0; $i < strlen($value); $i++) {
                                                $char = substr($value, $i, 1);
                                                $keychar = substr($this->key, ($i % strlen($this->key)) - 1, 1);
                                                $char = chr(ord($char) + ord($keychar));
                                                $output .= $char;
        return base64_encode($output);
We pass the value and the value is converted to the base64_encode
The encrypted value is gained after decryption.
function decrypt($value) {
                                if (!$this->key) {
                                                return $value;
                                $output = '';
                                $value = base64_decode($value);
                                for ($i = 0; $i < strlen($value); $i++) {
                                                $char = substr($value, $i, 1);
                                                $keychar = substr($this->key, ($i % strlen($this->key)) - 1, 1);
                                                $char = chr(ord($char) - ord($keychar));                                               
                                                $output .= $char;
                                return $output;

Creation of the image and use of the image create from different type of image like gif, png, jpeg etc
private function create($image) {
                                $mime = $this->info['mime'];    
                                if ($mime == 'image/gif') {
                                                return imagecreatefromgif($image);
                                } elseif ($mime == 'image/png') {
                                                return imagecreatefrompng($image);
                                } elseif ($mime == 'image/jpeg') {
                                                return imagecreatefromjpeg($image);
save($file, $quality = 100):
Save file that are of gif, jpeg, jpg
public function save($file, $quality = 100) {
        $info = pathinfo($file);
        $extension = $info['extension'];
        if ($extension == 'jpeg' || $extension == 'jpg') {
            imagejpeg($this->image, $file, $quality);
        } elseif($extension == 'png') {
            imagepng($this->image, $file, 0);
        } elseif($extension == 'gif') {
            imagegif($this->image, $file);
resize($width = 0, $height = 0):
Resize the image function
public function resize($width = 0, $height = 0) {
                if (!$this->info['width'] || !$this->info['height']) {
                                $xpos = 0;
                                $ypos = 0;
                                $scale = min($width / $this->info['width'], $height / $this->info['height']);
                                if ($scale == 1) {
                                $new_width = (int)($this->info['width'] * $scale);
                                $new_height = (int)($this->info['height'] * $scale);                                         
                                $xpos = (int)(($width - $new_width) / 2);
                                $ypos = (int)(($height - $new_height) / 2);
                $image_old = $this->image;
        $this->image = imagecreatetruecolor($width, $height);
                                if (isset($this->info['mime']) && $this->info['mime'] == 'image/png') {                   
                                                imagealphablending($this->image, false);
                                                imagesavealpha($this->image, true);
                                                $background = imagecolorallocatealpha($this->image, 255, 255, 255, 127);
                                                imagecolortransparent($this->image, $background);
                                } else {
                                                $background = imagecolorallocate($this->image, 255, 255, 255);
                                imagefilledrectangle($this->image, 0, 0, $width, $height, $background);
        imagecopyresampled($this->image, $image_old, $xpos, $ypos, 0, 0, $new_width, $new_height, $this->info['width'], $this->info['height']);
        $this->info['width']  = $width;
        $this->info['height'] = $height;
watermark($file, $position = 'bottomright'):
Function to watermark the image may be with the name of the site or anything you like the value to pass is for the $watermark
public function watermark($file, $position = 'bottomright') {
        $watermark = $this->create($file);
        $watermark_width = imagesx($watermark);
        $watermark_height = imagesy($watermark);
        switch($position) {
            case 'topleft':
                $watermark_pos_x = 0;
                $watermark_pos_y = 0;
            case 'topright':
                $watermark_pos_x = $this->info['width'] - $watermark_width;
                $watermark_pos_y = 0;
            case 'bottomleft':
                $watermark_pos_x = 0;
                $watermark_pos_y = $this->info['height'] - $watermark_height;
            case 'bottomright':
                $watermark_pos_x = $this->info['width'] - $watermark_width;
                $watermark_pos_y = $this->info['height'] - $watermark_height;
        imagecopy($this->image, $watermark, $watermark_pos_x, $watermark_pos_y, 0, 0, 120, 40);
crop($top_x, $top_y, $bottom_x, $bottom_y):
function to crop the image into the specified length and breadth.
public function crop($top_x, $top_y, $bottom_x, $bottom_y) {
        $image_old = $this->image;
        $this->image = imagecreatetruecolor($bottom_x - $top_x, $bottom_y - $top_y);
        imagecopy($this->image, $image_old, 0, 0, $top_x, $top_y, $this->info['width'], $this->info['height']);
        $this->info['width'] = $bottom_x - $top_x;
        $this->info['height'] = $bottom_y - $top_y;
rotate($degree, $color = 'FFFFFF'):
public function rotate($degree, $color = 'FFFFFF') {
                                $rgb = $this->html2rgb($color);
        $this->image = imagerotate($this->image, $degree, imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));
                                $this->info['width'] = imagesx($this->image);
                                $this->info['height'] = imagesy($this->image);
private function filter($filter) {
        imagefilter($this->image, $filter);
text($text, $x = 0, $y = 0, $size = 5, $color = '000000'):
private function text($text, $x = 0, $y = 0, $size = 5, $color = '000000') {
                                $rgb = $this->html2rgb($color);
                                imagestring($this->image, $size, $x, $y, $text, imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));
merge($file, $x = 0, $y = 0, $opacity = 100):
private function merge($file, $x = 0, $y = 0, $opacity = 100) {
        $merge = $this->create($file);

        $merge_width = imagesx($image);
        $merge_height = imagesy($image);
        imagecopymerge($this->image, $merge, $x, $y, 0, 0, $merge_width, $merge_height, $opacity);
private function html2rgb($color) {
                                if ($color[0] == '#') {
                                                $color = substr($color, 1);
                                if (strlen($color) == 6) {
                                                list($r, $g, $b) = array($color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5]);  
                                } elseif (strlen($color) == 3) {
                                                list($r, $g, $b) = array($color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2]);   
                                } else {
                                                return FALSE;
                                $r = hexdec($r);
                                $g = hexdec($g);
                                $b = hexdec($b);   
                                return array($r, $g, $b);

static public function encode($data) {
                                if (function_exists('json_encode')) {
                                                return json_encode($data);
                                } else {
                                                switch (gettype($data)) {
                                                                case 'boolean':
                                                                                return $data ? 'true' : 'false';
                                                case 'integer':
                                                case 'double':
                                                                return $data;
                                                case 'resource':
                                                case 'string':
                                                                return '"' . str_replace(array("\r", "\n", "<", ">", "&"), array('\r', '\n', '\x3c', '\x3e', '\x26'), addslashes($data)) . '"';
                                                                case 'array':
                                                                                if (empty($data) || array_keys($data) === range(0, sizeof($data) - 1)) {
                                                                                                $output = array();
                                                                                                foreach ($data as $value) {
                                                                                                                $output[] = Json::encode($value);
                                                                                                return '[ ' . implode(', ', $output) . ' ]';
                                                case 'object':
                                                                $output = array();
                                                                                foreach ($data as $key => $value) {
                                                                $output[] = Json::encode(strval($key)) . ': ' . Json::encode($value);
                                                                                return '{ ' . implode(', ', $output) . ' }';
                                                                                return 'null';
decode($json, $assoc = FALSE):
static public function decode($json, $assoc = FALSE) {
                                if (function_exists('json_decode')) {
                                                return json_decode($json);
                                } else {
                                                $match = '/".*?(?<!\\\\)"/';

                                                $string = preg_replace($match, '', $json);
                                                $string = preg_replace('/[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/', '', $string);

                                                if ($string != '') {
                                                                return NULL;

                                                $s2m = array();
                                                $m2s = array();

                                                preg_match_all($match, $json, $m);
                                                foreach ($m[0] as $s) {
                                                                $hash = '"' . md5($s) . '"';
                                                                $s2m[$s] = $hash;
                                                                $m2s[$hash] = str_replace('$', '\$', $s);

                                                $json = strtr($json, $s2m);

                                                $a = ($assoc) ? '' : '(object) ';
                                                $data = array(
                                                                ':' => '=>',
                                                                '[' => 'array(',
                                                                '{' => "{$a}array(",
                                                                ']' => ')',
                                                                '}' => ')'
                                                $json = strtr($json, $data);
                                                $json = preg_replace('~([\s\(,>])(-?)0~', '$1$2', $json);
                                                $json = strtr($json, $m2s);

                                                $function = @create_function('', "return {$json};");
                                                $return = ($function) ? $function() : NULL;


                                                return $return;

Collections of opencart function