|
|
|
<%@ page import="java.io.BufferedReader, java.io.InputStreamReader, java.io.IOException, java.io.UnsupportedEncodingException, java.net.URL, java.net.URLEncoder" %> <%! private static final String PAGEAD = "http://pagead2.googlesyndication.com/pagead/ads?"; private void googleAppendUrl(StringBuilder url, String param, String value) throws UnsupportedEncodingException { if (value != null) { String encodedValue = URLEncoder.encode(value, "UTF-8"); url.append("&").append(param).append("=").append(encodedValue); } } private void googleAppendColor(StringBuilder url, String param, String value, long random) { String[] colorArray = value.split(","); url.append("&").append(param).append("=").append( colorArray[(int)(random % colorArray.length)]); } private void googleAppendScreenRes(StringBuilder url, String uaPixels, String xUpDevcapScreenpixels) { String screenRes = uaPixels; String delimiter = "x"; if (uaPixels == null) { screenRes = xUpDevcapScreenpixels; delimiter = ","; } if (screenRes != null) { String[] resArray = screenRes.split(delimiter); if (resArray.length == 2) { url.append("&u_w=").append(resArray[0]); url.append("&u_h=").append(resArray[1]); } } } private void googleAppendDcmguid(StringBuilder url, String dcmguid) { if (dcmguid != null) { url.append("&dcmguid=").append(dcmguid); } } %> <% long googleDt = System.currentTimeMillis(); String googleHost = (request.isSecure() ? "https://" : "http://") + request.getHeader("Host"); StringBuilder googleAdUrlStr = new StringBuilder(PAGEAD); googleAdUrlStr.append("ad_type=image"); googleAdUrlStr.append("&channel="); googleAdUrlStr.append("&client=ca-mb-pub-2823936194734094"); googleAppendColor(googleAdUrlStr, "color_border", "191919", googleDt); googleAppendColor(googleAdUrlStr, "color_bg", "FFFFFF", googleDt); googleAppendColor(googleAdUrlStr, "color_link", "191919", googleDt); googleAppendColor(googleAdUrlStr, "color_text", "999999", googleDt); googleAppendColor(googleAdUrlStr, "color_url", "666666", googleDt); googleAdUrlStr.append("&dt=").append(googleDt); googleAdUrlStr.append("&format=mobile_single"); googleAppendUrl(googleAdUrlStr, "host", googleHost); googleAppendUrl(googleAdUrlStr, "ip", request.getRemoteAddr()); googleAdUrlStr.append("&markup=xhtml"); googleAdUrlStr.append("&oe=utf8"); googleAdUrlStr.append("&output=xhtml"); googleAppendUrl(googleAdUrlStr, "ref", request.getHeader("Referer")); String googleUrl = request.getRequestURL().toString(); if (request.getQueryString() != null) { googleUrl += "?" + request.getQueryString().toString(); } googleAppendUrl(googleAdUrlStr, "url", googleUrl); googleAppendUrl(googleAdUrlStr, "useragent", request.getHeader("User-Agent")); googleAppendScreenRes(googleAdUrlStr, request.getHeader("UA-pixels"), request.getHeader("x-up-devcap-screenpixels")); googleAppendDcmguid(googleAdUrlStr, request.getHeader("X-DCMGUID")); try { URL googleAdUrl = new URL(googleAdUrlStr.toString()); BufferedReader reader = new BufferedReader( new InputStreamReader(googleAdUrl.openStream(), "UTF-8")); for (String line; (line = reader.readLine()) != null;) { out.println(line); } } catch (IOException e) {} %> |
Cellphone Communication at your finger tips - keep the lines of communication openThe Rim Blackberry™ Circus continues Cell phone users – four out of ten have their cell phone for emergency use only and seven out of ten heads of households in the U.S. - want their cell phones primarily for emergency and for messaging. Recent reports indicate that Mobile Phones are steadily replacing land lines.
Related Articles
AcroDesign Technology
| Amoi
Smartphone |
AnchorFree
|
Battery Power Pack
|
Coming Soon: | Eye-Fi | Paying by Phone | Nokia |
Obsolete Land Lines: Cell phones, Wi-fi and WiMax are conspiring to write the obituary of the land line
Bluetooth Hands Free: Is it just a cell phone or is it Bluetooth? Bluetooth wireless technology has become a global standard and specification for short range wireless connectivity and it is easy to foresee that Bluetooth technology will likely be a standard of communication in millions of cellular or mobile phones, PCs, laptops, and a wide range of other electronic devices.
Cell Phone: Cell Phone ...A health hazard, or just hysteria
Cell phone and road accidents..is the connection clearcut?
Cell phone TV. The convergence of the cell phone with television opens up a whole new world
Free Cellular Phones - No Annual Contract: Cell phones - the future? Most agree that cell phone communications have dramatically changed the way we live. We may summarize by saying we have changed from a “hello” approach to “where Prepaid Cellular Phones: Want to get rid of those nasty credit checks and cut your high cell phone bills practically in half and still enjoy your cell phone? Did you know that the cell phone carrier’s revenue from the average Prepaid Cell Phone user is a little more than half that of the postpaid cell phone user. Handheld PDA Pagers, Smart Phones: Essentially, a smart phone is Personal Digital Assistant with a cell phone incorporated. Long Distance: Access to Free Long Distance
Tmi Wireless: Choose the 2 Cell Phone Family Plan - Most offers include free cell phone and free shipping
$50 off the Motorola 60i with the purchase of a Double
Minute Card. Only $199.98"" Pay-as-you-go, prepaid wireless service with no annual contracts, credit checks, monthly phone bills, activation fees, security deposits, or age limits. - Great BritainFree evening and weekend UK calls. Landline, Mobile, Internet
Plus free shipping with activated service plan. Choose from AT&T, Cingular,
Nextel, T-Mobile, Verizon, and more.
Talk America - One rate for local phone
service, free long distance, local features and more!
Special Deals on Bluetooth Phones plus Free Shipping!
|
|
|||||
Home |Cell Phone Plans |Cell Phone Family Plan | Prepaid Cell Phones | Bluetooth |Cell Phone Camera |Cell Phone Accessories | Cell Phone Comparisons | Access to Free Long Distance | Handheld Pagers | Cell Phone Batteries |Handheld Games |What's New | Polyphonic Ringtones | Polyphonic Downloads | Links | Add Your Site | Related Articles | Related Sites
Great cell phones sites, human verified