Do you want to buy me a beer or coffee?

Tuesday, February 10, 2009

Senate OKs stimulus

NEW YORK (CNNMoney.com) -- An $838 billion economic recovery package cleared the Senate on Tuesday in a 61 to 37 vote.

The package provides roughly $293 billion for tax relief and $546 billion for spending measures, according to the Congressional Budget Office.

The Senate bill is not the last stage in the process. The next step will be for a committee of representatives from the Senate and the House to reconcile the differences between each chamber's proposed economic recovery package. The House passed an $820 billion bill two weeks ago, with $182 billion in tax relief and $638 billion in spending.

$15,000 for homebuyers

$15,000 for homebuyers

Under the Senate's stimulus bill, homebuyers could receive a $15,000 tax credit if they purchase within a year.

If you're thinking of buying a home, there could be a big bonus for you in the economic stimulus bill that's now before Congress.

The Senate's version of the plan sweetened the $7,500 homebuyer tax credit provision proposed by the House, doubling it to $15,000 or 10% of the home's purchase price (whichever is lower). What's more, the credit applies to all buyers - not just those purchasing their first homes.

The Senate credit also has no income limits. The House version, in comparison, allows only those with incomes up to $75,000 for singles and $150,000 for couples to qualify for the full amount. (In that bill, those earning up to $95,000 and $170,000, respectively, can qualify for a partial credit.)

Also, unlike the tax credit passed last summer as part of the Housing Recovery Act, this one does not have to be repaid. The old credit acted more like a no-interest loan than a true credit and, as a result, had little impact on home sales.

Monday, February 9, 2009

AMD Unleashes DDR3, Triple-Core Phenom IIs

Advanced Micro Devices (NYSE:AMD), stepping up its offensive against Intel (NSDQ:INTC), on Monday released five AM3-socket Phenom II desktop microprocessors ahead of the chip maker's anticipated schedule for the transition to DDR3 memory -- including its first two 45-nanometer triple-core parts. Motherboard makers reportedly have AM3-ready platforms in the pipeline, and one memory manufacturer is banking on those becoming available in about a week's time.

"We should start seeing [AM3 boards] in the channel around Feb. 20," said Robert Pearce, senior technical marketing specialist at Corsair Memory.

AMD's Phenom II lineup now includes five quad-cores and two triple-cores, with the newest products capable of supporting both DDR3 memory and the cheaper DDR2 variety on AM2+ boards, whereas Intel's Nehalem-class Core i7 chips are DDR3-only devices. AMD has opted for the older dual-channel memory architecture for its first DDR3-enabled Phenom II parts, while Intel's Nehalem platforms feature a triple-channel memory allocation system.

Saturday, February 7, 2009

名模 Natalia Vodianova .vs. 艾格


星期五, 2009年2月6日上午十点13分36秒

Natalia Vodianova 俄罗斯最大的超级model。

Welcome to RUSSIAN PRINCESS, the approved fanlisting for Natalia Vodianova, the beautiful model who has gained world recognition through her outstanding and inspirational life story. To me, Natalia has a pure and natural beauty which brings out her features in her photos. She has appeared in Vogue, Vanity Fair, Calvin Klein, Gucci, L'Oreal, and many other famous designer brands.

Vodianova是法国内衣品牌艾格(Etam)最新春'09品牌的ambassaor

google search 'French lingerie brand Etam, styles, photos'

Nationality: Russian
Birthday: February 28, 1982
Born in: Nizhny Novgorod, Russia
Lives now: New York, NY
Agencies: DNA, Viva, Why Not
Known for: My eyes, my lips
Status: Cover girl, established, good girl
Married: Justin Portman
Children: Lucas, Neva, Viktor
Model turned… Actress (To Russia with Love, 2004), activist (helping Russian orphans)

google search 'Natalia Vodianova, model, photos, youtube'
google search 'lifestyle, Natalia Vodianova, etam'


check photos at
http://vodianova.net/gallery/

Thursday, February 5, 2009

URL Encode and Decode for Classic ASP

URLDecode
For some reason, Microsoft did not include a URL decode function with Active Server Pages. Most likely, this was because the decoding of querystring variables is done automatically for you when you access the querystring object:


' -----------------------------------------
' URL decode to retrieve the original value

Function URLDecode(sConvert)
Dim aSplit
Dim sOutput
Dim I
If IsNull(sConvert) Then
URLDecode = ""
Exit Function
End If

' convert all pluses to spaces
sOutput = REPLACE(sConvert, "+", " ")

' next convert %hexdigits to the character
aSplit = Split(sOutput, "%")

If IsArray(aSplit) Then
sOutput = aSplit(0)
For I = 0 to UBound(aSplit) - 1
sOutput = sOutput & _
Chr("&H" & Left(aSplit(i + 1), 2)) &_
Right(aSplit(i + 1), Len(aSplit(i + 1)) - 2)
Next
End If

URLDecode = sOutput
End Function


Server.HTMLEncode
This useful built-in function is very useful for encoding text that should be displayed in a form input. By "form input" we mean a web form control such as a text input, select or textarea control.

You may have noticed that certain characters cause the HTML on your web form to be interpretted incorrectly. Specifically, the HTML tag characters "<" and ">" can have this effect as well as the quote character (") which is used to encapsulate values.

Server.HTMLEncode(sValue)

HTMLDecode
Just like with the URLDecode function described previously, Microsoft, in its infinite wisdom decided not to include an HTMLDecode function with their Server component. It is a relatively simple matter to decode this test data (although I haven't had a need to do this so far.) For completeness sake, here is an HTMLDecode function you may use:

Function HTMLDecode(sText)
Dim I
sText = Replace(sText, """, Chr(34))
sText = Replace(sText, "<" , Chr(60))
sText = Replace(sText, ">" , Chr(62))
sText = Replace(sText, "&" , Chr(38))
sText = Replace(sText, " ", Chr(32))
For I = 1 to 255
sText = Replace(sText, "&#" & I & ";", Chr(I))
Next
HTMLDecode = sText
End Function

C-section may raise kids' asthma risk

Children born by cesarean delivery are at increased risk for developing asthma, particularly if their parents have allergies, according to a report published this month.

C-section has been thought to be a risk factor for asthma, although the relationship is controversial, Dr. H. A. Smit, from the National Institute for Public Health and the Environment in Bilthoven, the Netherlands, and colleagues note in the report.

Smit's team analyzed data from 2917 children to assess the association between cesarean delivery and asthma or allergies at 8 years of age.

Overall, 362, or 12.4 percent, of the children developed asthma at age 8, the researchers report, and 8.5 percent had been delivered by c-section.

Overall, children delivered by c-section were 79 percent more likely to develop asthma than children born vaginally, the investigators found. The association between c-section and asthma was even stronger for children born to one or two allergic parents than for children born to parents without allergies.

"Our results emphasize the importance of gene-environment interactions on the development of asthma in children," Smit and colleagues conclude.

"The increased rate of cesarean section is partly due to maternal demand without medical reason. In this situation, the mother should be informed of the risk of asthma for her child, especially when the parents have a history of allergy or asthma," they wrote.

Outdoor time may protect kids from nearsightedness

Children who regularly spend time outside may be less likely than their peers to develop nearsightedness, new research suggests.

In several studies reported in the journal Optometry and Vision Science, researchers found that kids who spent more time outside during the day tended to have better distance vision than those who favored indoor activities.

The reasons are not yet clear, but children's physical activity levels did not seem to be a factor.

Instead, the researchers speculate, exposure to sunlight may play a role, as may the fact that being outside often makes kids focus on objects at a distance. Animal studies suggest that this affects eye development in a way that helps prevent nearsightedness, or myopia.

On the other hand, there was no strong evidence that "near-work" -- like reading or using a computer -- raised children's risk of nearsightedness.

In one of the studies, Dr. Jane Gwiazda and Li Deng of the New England College of Optometry in Boston surveyed parents of 191 children who were 13 years old, on average, and tested the children's vision annually.

Overall, the researchers found, children who developed myopia spent an average of 8 hours outside per week, compared with nearly 13 hours among non-myopic children. Nearsighted children also tended to watch more TV, but there was no such correlation with time spent reading, studying or using a computer.

In two other studies -- one from Australia, one from Singapore -- researchers found similar connections between outdoor time and lower myopia risk. Lower rates of near-work did not explain the link, and the Singapore study found no evidence that children who read a lot were at greater risk of nearsightedness.

More work is needed, the investigators say, to find out why outdoor time might affect children's visual development.

SOURCE: Optometry and Vision Science, January 2009.

Vitamin D deficiency may harm brain function

Low levels of vitamin D increase the risk of cognitive impairment in the elderly, according to findings from the nationally representative, population-based Health Survey for England 2000.

Despite the theoretical support for the role of vitamin D in maintaining brain function in old age, clinical data are lacking, the researchers note.

Therefore, Dr. David J. Llewellyn and his associates studied 1766 adults, aged 65 or older, from whom blood samples were obtained to measure circulating vitamin D levels.

Cognitive function was measured using the Abbreviated Mental Test, which includes 10 questions to assess attention, orientation in time and space, and memory.

Based on scores of 70 percent or less, 212 subjects (12 percent) were deemed to be cognitively impaired.

The researchers found a significant association between lower levels of vitamin D and cognitive impairment.

After adjusting for factors that could influence the association, including co-existing illnesses, older adults with the lowest levels of vitamin D were more than twice as likely to be cognitively impaired as those with the highest levels.

Llewellyn, of the University of Cambridge and his colleagues suggest that vitamin D concentrations may help doctors in screening for cognitive impairment.

"Further research," they conclude, "is needed to investigate whether vitamin D supplementation is a cost effective way of reducing the incidence of cognitive impairment with few adverse events."

SOURCE: Journal of Geriatric Psychology and Neurology, February 2009.
<--nothing-->