Paint 3-D images with PHP

April 27, 2008

PHP, a language originally intended for Web development, has been used for years to manage dynamic Web sites and database applications. Extensions to the language available through the PHP Extension and Application Repository (PEAR) have allowed developers to take the language in new and interesting directions. PEAR’s Image_3D package is an object-oriented interface for creating three-dimensional (3-D) graphics in a variety of formats, including PNG and SVG, two image formats with increasing support by modern Web browsers. Find out how to use the Image_3D package, learn the limitations of using dynamic 3-D images, and investigate solutions and practical applications of 3-D graphics.

In this tutorial

This tutorial is for PHP programmers interested in dynamically generating 3-D graphics. Images can be created from scratch, built up from objects and light sources positioned in space according to X, Y, and Z coordinates. Programmers with experience using 3-D Studio Max will see how to import objects from 3DS files into PHP creations. Complex surfaces defined by parametric equations can easily be mapped using Image_3D. Finally, business applications and data reports can be enhanced by adding pie charts generated on the fly.

Prerequisites

This tutorial assumes at least a base knowledge of objects and classes, as the entire interface for Image_3D is object-oriented. Access to a Linux® shell account or a Windows® command prompt is required for executing command-line PHP examples shown in the first half of the tutorial. Basic experience with JavaScript is also assumed.

System requirements

The following software and tools are required to follow along:
PHP V5 The Image_3D package is written using the PHP V5 object and class syntax. Image_3D The PEAR package will need to be installed. Typically, the installation of Image_3D should be easy if you have root (or administrator) access to your machine. Because Image_3D is in alpha release, the PEAR installation may complain that the package is not "stable." Use the -f option to force the installation:

 

GD Examples in the second half of the tutorial can be built for use on a Web site. The and are two options, if you don’t already have a Web server available.SVG viewerMozilla Firefox V1.5Adobe SVG plug-in

7 Things You Can Do to Improve Your Online Marketing Presence

Increasingly, online marketing is a crucial part of any marketing plan. Executing the programs in your plan, however, is just as critical. For many, finding the time is difficult. To make progress, you must set time aside each day (or other regular time period) for marketing online. To that end, take a moment right now to block out time for online marketing over the next six months, beginning today.

Use that time today and over the next six months to execute Internet- based programs in your plan. No plan yet? No problem. You will, of course, want to finish your marketing plan so you can refine your activities, but you can begin improving your online presence today by doing one or more of the following ideas:

Volunteer for Online Interviews

Podcasts, Webcasts, blogs, RSS feeds and newsletters (ezines) are all venues for online interviews or discussions. You’ll want to approach publishers who regularly conduct interviews with guests of your caliber, so finding opportunities will take some research. Do this by searching general search engines (such as google.com) or directories. Some directories to get you started: podcast.net (podcasts), ezinehub.com (ezines), sydic8.com (RSS feeds/blogs)

Identify 10 Bloggers in Your Category

Then send them your product as a gift. The idea is to expose your product to influencers in your category by giving them an opportunity to try it free. If they like it, they may give it a mention in their blogs. Note that this is a subtle online marketing technique. The idea is NOT to advertise to them, ask a favor of them or ask them to blog about the product. Choosing to mention (or not mention) your product should be solely up to them.

You can find and read blogs by searching blogging directories such as technorati.com.

Join an Online Network

Online social networks allow you to set up a profile page and interact with others who have your same professional interests. Each caters to a different type of audience, and there are do’s and don’ts, so you’ll want to read about a network before joining, read some of the profiles and learn a particular site’s rules before plunging in. Some networks to explore: linkedin.com, ryze.com, myspace.com, orkut.com, friendster.com, tribe.net

Draft a Press Release

First and foremost, the release must be something newsworthy to the media (if you need ideas, read the article here: http://www.websitemarketingplan.com/pr/NewsAngle.htm). Also, be sure to include a link to your Website or blog in the press release. Finally, distribute the release through an online press release service such as PRWeb.com.

Begin Surveying Your Website Visitors

Surveys can help you identify opportunities for improvement. Since online attention spans are very short, try asking a single two-part question such as Fred Reichhold’s Ultimate Question: "On a scale of 1 to 10, how likely are you to recommend __________." Fill in the blank with your Website name (or other relevant product). To those who reply with a 6 or lower, ask why not. Most likely you will see a pattern in the comments that will point to ways of improving your Website. There are software packages to help you set up an online survey. Also, surveymonkey.com is a popular Web interface for producing online surveys.

Put Your Product’s or Company’s Creation Story Online

Or work on conveying one or more of Patrick Hanlon’s 7 Primal Branding pieces online — creed, icons, rituals, sacred words, nonbelievers and leaders. According to Hanlon, these seven pieces form belief systems that inherently attract people who want to believe in a product. Those people form the communities that surround successful products and services.

Study Your 5 Closest Competitors’ Websites and Online Marketing Activities

Aside from gaining a better understanding of trends in your industry, you will also gain new insights into promotional strategies and tactics for your own business. As you research, brainstorm a list of ideas and use that list to plan a new online strategy or tactic for your own business.

There you have it - seven ideas for improving your online marketing presence. Choose one and get started today!

About the Author

Bobette Kyle draws upon 15+ years of Marketing/Executive experience, online marketing experience, and a marketing MBA as inspiration for her writing. Bobette is proprietor of the Web Site Marketing Plan Network (http://www.WebSiteMarketingPlan.com). She is also author of the marketing plan and Web promotion book "How Much For Just the Spider? Strategic Website Marketing For Small Budget Business." You can search all articles on the network through the marketing directory by going here: http://www.websitemarketingplan.com/directory

How Customer-Focused is Your Website?

You’re at a dinner reception. The stranger next to you strikes up a conversation.

It only takes a few minutes before you realize: “This guy’s completely self-absorbed.” No matter how hard you try, every topic leads back to him. Soon, you find yourself inching away.

Guess what? You can find the same thing on the web. Sites that are egocentric. More interested in talking about themselves than solving customer problems. However, unlike the dinner reception situation, your escape from a self-absorbed website is quick and painless.

(Although there are offenders across the board, the biggest culprits seem to be business-to-business companies and small- to mid-sized firms.)

To heck with product benefits or helping prospects and customers solve their problems – the narcissistic website dwells on the company’s spectacularly engineered offerings, their superior manufacturing techniques, the brilliance of their people, the company’s offices. Is there a place for bragging? Sure, but it’s secondary to the customer’s issues. Too many websites forget this.

When you consider that the average visitor has an attention span measured in seconds, and that he scans the web instead of reading every word, a narcissistic website has the same effect as a narcissistic tablemate: it turns people off.

In contrast, an intelligent website doesn’t leave a visitor stranded, searching for the customer benefits of the company’s products or services. It:

¨      Provides clear statements that are customer benefit oriented

¨      Supports its claims (often using customer and third party support) 

¨      Proactively addresses potential objections

¨      Ushers the visitor into a dialogue

Let’s look at a very simple before-and-after example.

We’re at the website of a widget manufacturer. Their target market? Widget buyers from manufacturing firms.

The homepage leads off with:

    "Since 1908, Acme Widget has precision-manufactured more than 10,000 varieties of widgets. What’s the Acme difference? State-of-the-art technology – including the latest laser manufacturing techniques – along with six sigma processes to ensure the highest quality."

Sound good to you? Where does the customer fit in?

While prospects and customers care a lot about the companies they deal with, they care first and foremost about their own needs. In this instance: “How will Acme Widget solve my problems?”

Here’s another take on the copy:

     “Whether you are looking for red, green, purple or color matched widgets, no other company offers a wider selection, faster delivery or more production-friendly engineered designs than Acme Widget.

    Independent tests show that using the Acme ViperWidget can result in improving your production speeds by as much as 35%, while significantly reducing defective rates over traditional widgets.

    Great selection. Fast delivery. Increased production speeds and reduced defectives for lower overall manufacturing costs. One name. Acme.

    Download our free white paper, ‘Increasing Your Production Speed while Lowering Defectives with Better Engineered Widgets,” highlighting the recent tests of more than five hundred widgets conducted by independent testing laboratory, International Widget Laboratories."

This time, the copy speaks to the interests of the customer. Customer problems – and Acme’s solution – stand front and center. Note, I still referred to the Acme’s engineering abilities. The difference here is that the reference to engineering is now linked to customer benefits.

Imagine a widget buyer visiting two sites: one with the first copy, the other with the second.

 ¨      With the first site, the buyer learns a little about the company, but not enough to differentiate it from the competition. And not nearly enough to understand, and appreciate, the benefits of doing business with the firm.

¨      At the second site, the buyer learns about the company’s wide selection, fast delivery, exceptional production speeds and lower defect rates. All strengths she can quickly grasp. What’s more, the white paper provides third-party support – validation – for the company’s claims.

The underlying concept is simple and an underlying marketing communications truth. The most effective marketing communications puts your customers and prospects first, not your company. By focusing on customer and prospect needs, you are more likely to fulfill your company’s needs.

As obvious as this statement would appear, it is similarly obvious that many marketers don’t really follow it. 

A Quick Check-up to Find if Your Company Website is a Narcissist

Pretend you are a customer visiting your company’s website for the first time. Write down five key concerns you have related to purchasing these kinds of products or services or choosing a company that you feel (or marketing research indicates) reflects the key concerns of your target market when researching companies like yours. Spend up to one minute at your website. Close the browser. How many of your five key concerns were addressed? How well did they address your concerns? A brief amount of copy addressing a key concern and a link to more detail is fine; no mention of these concerns is not.

Did the web page copy get to the heart of your concern or was it focused on the itself instead of the prospects needs? Use what you have learned to further test your website in front of real prospects and customers. Find out their most important problems they are hoping your website will help them answer and re-design your website around helping them.   

It’s your choice: propaganda that only ends up stroking your company’s ego or profits. 

Beware of this scam e-mail

April 14, 2008

Today we got a scam email again that use support@gainscope.com,
northfinance@gainscope.com , introducers@fxpro.com and also
financial.department@northfinance.com , etc…
(similar like that)

and the hacker is try to manipulate you by promote about winning
solutions indicator and to confirm your registration to fxpro.

if you got that email then please ignore it!
because it is NOT sent from us, but it is from a hacker that
want to steal your password

as you see, the pointing URL is something to agelproducts.com
and this is a scam website and very danger
(may be in the future this hacker will change that URL again)

also please beware of the word that seems wrong typo , like
nortnfinance.com ("h" is changed to "n")

and if they ask about your password, your identity, downloading
files, etc… please don’t do it in there !

We suggest you to make sure first. You can contact us at :
info@GainScope.com or info@GainScopePRO.com to ask if you
found something strange in your e-mail
(don’t wrong type)

also make sure that the pointing URL is not added by something
extra sub domain like agelproducts.com , or something like that
and wrong typo !

how they know your e-mail?
we see that this hacker is using like an email bomber that can
sent to many blind e-mails, so please beware !

Regards,
GainScope.com
GainScopePRO.com

Profile : www.gainscope.com/about.php

Economic Calendar for Forex this week

April 4, 2008

Economic Calendar for week 31st March - 4th April 2008

PLEASE NOTE - All times GMT

Monday Mar 31st:

EU - 08:00 - M3 Money Supply Y/Y.
UK - 08:30 - Index of Services Q/Q.
EU - 09:00 - CPI Y/Y.
EU - 09:00 - Consumer Confidence.
UK - 09:30 - BOE Governor King Speaks.
US - 13:45 - Chicago PMI.
US - 14:00 - Treasury Secretary Paulson Speaks.

Tuesday April 1st:

GE - 06:00 - Retail Sales M/M.
GE - 07:55 - Unemployment Rate.
EU - 08:00 - Manufacturing PMI.
UK - 08:30 - Manufacturing PMI.
EU - 09:00 - Unemployment Rate.
US - 14:00 - ISM Manufacturing Index.
US - 14:00 - ISM Manufacturing Prices.
US - 14:00 - Construction Spending M/M.

Wednesday April 2nd:

UK - 08:30 - BSA Mortgage Approvals.
UK - 08:30 - Construction PMI.
UK - 08:30 - Housing Equity Withdrawal Q/Q.
UK - 08:30 - Mortgage Approvals.
UK - 08:30 - Net Lending to Individuals M/M.
EU - 09:00 - PPI M/M.
US - 12:15 - ADP Nonfarm Employment Change.
US - 13:30 - Fed Chairman Bernanke Speaks.
US - 14:00 - Factory Orders M/M.
US - 14:30 - Crude Oil Inventories.

Thursday April 3rd:

EU - 08:00 - Services PMI.
UK - 08:30 - Services PMI.
UK - 08:30 - Credit Conditions Survey.
EU - 09:00 - Retail Sales M/M.
EU - 10:30 - ECB President Trichet Speaks.
US - 12:30 - Unemployment Claims.
US - 14:00 - ISM Non-Manufacturing Composite.
US - 14:00 - Bear Stearns Hearing.
US - 14:00 - Fed Governor Mishkin Speaks.

Friday April 4th:

FR - 06:45 - Government Budget Balance.
GE - 10:00 - Factory Orders M/M.
US - 12:30 - Nonfarm Payroll Change.
US - 12:30 - Unemployment Rate.
US - 12:30 - Average Hourly Earnings M/M.
US - 12:45 - Cleveland Fed President Pianalto Speaks.
US - 18:45 - Fed Governor Kroszner Speaks.

EU - Europe wide
FR - France
UK - United Kingdom
US - United States
GE - Germany

The week ahead.

High yield spreads remain stubbornly high despite dramatic interventions from UK and US central banks. Banks are hording cash due to mistrust and fear over who will make the next big write down. Nationwide, the UKs largest building society, put up the rates on some mortgages despite there being a reasonable probability of a rate cut on the 10th of April.

So after the Easter recovery, it looks as though its business as usual for the credit crunch. Oil and metals were in demand again as traders reverted back to the buy commodities, sell the dollar tactic that has worked so well over the last 12 months. Consequently, the Dollar sold off heavily against the Euro, as speculation mounted that the Fed is not yet done with cutting rates. Cable was not as lucky, mainly due to speculations that the BOE will be cutting rates at their next meeting.

UK financial companies will be listening to BOE governor Kings speech today, for any clues of further direct intervention in the mortgage securities market. They will certainly need it is as credit markets start to freeze over again. We havent seen volatility in equities like this for half a decade, and the bad news is that were still some way off the frantic action we saw at the height of the dot com bubble. There could be some more explosive action this coming week, with some top tier economic announcements due.

Tuesday brings a raft of manufacturing data, with UK manufacturing PMI in the morning, and US ISM manufacturing index in the afternoon. Midday on Wednesday will be a turbulent time for European traders, with the release of US ADP Non-farm Employment Change, and Fed Chairman Ben Bernanke speaking. Friday tops the bill with the release of Non-farm payroll change and US employment rates.

A long, ugly, deep recession. was how Chryslers chief financial officer Jerry York described his outlook for Americas economy at a recent gathering of fellow finance executives. A recent poll of financial officers indicates that this isnt an isolated viewpoint. In America, economists with a pessimistic outlook outnumber the positive by a 9-1 margin, while in Europe the margin is 6-1. (via invivoanalytics.com)

After the Easter correction it seems the Dollar collapse is back on track, and Marchs high of 1.5904 in the EUR/ USD exchange rate could well be breached again this week. A one touch trade predicting that the EUR/ USD will touch 1.5855 at any time during the next 16 days could yield 12%.

David Evans