Saturday, April 14, 2007

Delusions of skill and of grandeur

Industry pundits like Guy Kawasaki, Michael Arrington, and other respected, successful people who have achieved fame and fortune dismissed Smalltalk in the 70s and 80s. Virtual machines? Garbage collection? Integrated development environments? Clearly, this had no place in business computing. You know why? Too slow. Too weird. And, actually, too innovative for their pea-brains to recognize the significance of. Respected industry pundits knew that serious business computing had to be done using serious systems programming languages like C, assembly language, or C++. Now no one would think of developing a business application that has to be rapidly brought to market in a language that wasn’t garbage-collected, and, if at all possible, dynamically typed. What was useless academic research is now common sense. Now Ruby, an interesting rehash of Smalltalk ideas into a form more palatable to people used to C-style syntax, is the shit for creating web applications and enterprise integration.

Arrington and the rest of the Web 2.0 echo chamber nitwits think they know what’s innovative and where things are going. They don’t and they never have. They have no appreciation of the fact that they owe their entire careers to the work of people in academic and industry labs. The TCP/IP stack and the Internet; GUIs, the WIMP interface, and pointing devices; IDEs; garbage collection; virtual machines; relational databases; dynamic typing (Michael Arrington doesn’t know what many of those things actually are, of course); all of this comes from people with PhDs at places like Berkeley, MIT, IBM, and Xerox. When they create it, it is useless and worthless. Twenty years later, navel-gazing pundits like Michael Arrington are confronted by the fact that they have become essential in creating computer software. It then becomes common sense and it’s perfectly OK to take credit for the things done in labs by forgotten names long ago.

Where is the praise for the real innovators like Alan Kay? Kay’s work with Smalltalk and human factors strongly influenced nearly everything we consider essential today. But Michael Arrington doesn’t care about Alan Kay or any of the other people responsible for the stuff that is now his livelihood. Does Alan Kay work at Google? Does he have a me-too startup with a faux-reflecty logo and an Ajax chat application in beta? No? Then forget him.

Friday, April 13, 2007

Storage – SQL Server I/O

SQL Server and the Storage Subsystem

So how does all this fit in with SQL Server? Well, you need to make sure your servers have the fastest drives possible, and have the proper RAID configuration.

At a basic level, data is stored in files. There are two types of files used in SQL Server. The first is the database file type, which normally has an extension of .mdf. There may be one or more of these for your database, as we’ll discuss in a moment. The second type of file is for the logs, normally with an extension of .ldf. Data is written first to the log file; then SQL Server writes the data to the database file. This is called a write-ahead log.

The log is written to in a sequential fashion, since all writes, deletes, or edits normally go through the log. All reads normally go through the database. For that reason, it’s best to separate the physical drives used for the logs and the database. Your server will then be able to write log entries and read data at the same time.

You can have multiples of these two types of files. That is, you can have more than one data file, and more than one log file. You first create the extra files, and then you create (or move) objects such as tables or indexes to those files. The speed increase becomes really clear when you use separate drives. Let’s look at a concrete example.

Suppose you have a database with a heavily used table, which also contains a fairly wide (many columns) index. That makes the table and index compete for the same access on the hard drive, slowing down the total access time. In this case, it makes sense to separate out the physical files that the table and the index use, and to place them on separate drives.

Optimization goes a bit further than separate files. SQL Server also supports Filegroups, which is a logical grouping of files into a single name. Filegroups are normally used for backups and allocations.

So how does SQL Server allocate and store that data? SQL Server’s storage is arranged in pages and extents. A page is 8KB of data (128 pages per megabyte), and an extent is 8 pages (16 extents per megabyte). A row can’t be larger than 8060 bytes. If you do the math, you’ll notice that 8060 isn’t 8KB. That’s because there is some overhead involved in storing the header.

The database can be set to grow automatically, by either a percentage of the size of the database or a set number of megabytes. I normally choose the percentage, since as the database grows larger it has to reallocate space less often. Your mileage will vary.

Databases can also shrink automatically. I don’t use this setting, because I’ve noticed a DBCC command running throughout the day to accomplish the task. I normally just let my maintenance plans take care of shrinking the files during maintenance. Also, shrinking the file almost guarantees that the indexes will become fragmented, which is a bad thing.

As another consideration, it’s best to have as many spindles in a database drive setup as possible. Microsoft Windows and SQL Server both allocate threads from the operating system based on the number of physical drives you have, so the more the better. Also, separating your files (based on the read/write patterns they have) allows the drives to be spinning at the same time for a write as a read. That way the drive doesn’t have to wait until a write completes to do a read, or visa-versa.

So to recap, the way you want to arrange your storage is highly dependent on the type of attachment and drives that you have. At a minimum, I recommend that you split the operating system and the program files for SQL Server from the page file onto separate physical drives (not just drive letters), place the database files on another physical drive, and use yet another physical drive for the log files. Even better is to use another physical drive for the indexes that you set up, so that the indexes can update their values as the table data is written.

Free Culture - Lawrence Lessig Keynote from OSCON 2002

Lawrence Lessig - Free Culture

It was a parody, a take-off; it was built upon Steamboat Bill. Steamboat Bill was produced in 1928, no [waiting] 14 years--just take it, rip, mix, and burn, as he did [laughter] to produce the Disney empire. This was his character. Walt always parroted feature-length mainstream films to produce the Disney empire, and we see the product of this. This is the Disney Corporation: taking works in the public domain, and not even in the public domain, and turning them into vastly greater, new creativity. They took the works of this guy, these guys, the Brothers Grimm, who you think are probably great authors on their own. They produce these horrible stories, these fairy tales, which anybody should keep their children far from because they're utterly bloody and moralistic stories, and are not the sort of thing that children should see, but they were retold for us by the Disney Corporation. Now the Disney Corporation could do this because that culture lived in a commons, an intellectual commons, a cultural commons, where people could freely take and build. It was a lawyer-free zone.


Let's talk about software patents. There's a guy, Mr. Gates, who's brilliant, right? He's brilliant. A brilliant business man; he has some insights, he is even a brilliant policy maker. Here's what he wrote about software patents: "If people had understood how patents would be granted when most of today's ideas were invented and had taken out patents, the industry would be at a complete standstill today." Here's the first thing I'm sure you've read of Bill Gates that you all 100 percent agree with. Gates is right. He is absolutely right. Then we shift into the genius business man: "The solution is patenting as much as we can. A future startup with no patents of its own will be forced to pay whatever price the giants choose to impose. That price might be high. Established companies have an interest in excluding future competitors." Excluding future competitors.

Virtual Computing Chart

Whether you think of this new computing offering as On-Demand Computing or Utility Computing or Reducing Complexity – or whether you use a vendor name like HP’s Adaptive Enterprise or Sun’s N1, it all comes down to getting more for your money and having your computing investments work more smoothly and adapt better to fast changes in your business needs.

Record spent by drug lobby on Medicare

WASHINGTON -- Drugmakers and their trade associations spent a record $155 million to lobby the U.S. government as legislation was debated to allow drug prices to be negotiated by Medicare, according to a watchdog group.

The money was spent from January 2005 to June 2006 by lobbyists including the Pharmaceutical Research and Manufacturers of America and drugmakers such as Pfizer Inc., according to a report released Sunday night by the Center for Public Integrity, a non-profit consumer group.

The drug industry successfully persuaded Congress to oppose changing a provision of the Medicare Prescription Drug Improvement and Modernization Act of 2003 that bars the federal government from negotiating prices of Medicare drugs. The Veterans Health Administration is allowed to hammer out prices with drugmakers.

The attempt to allow Medicare to negotiate prices failed "after a huge lobbying blitz" and "is often cited as a poster child for the industry's influence in Washington," wrote M. Asif Ismail in the report.

The drug research association spent more than $18 million last year, the most the group has spent since 1998 and more than any other group, the report said.

Pfizer, the world's largest drugmaker, spent $12 million, the most among drug companies.

"What we are doing is trying to see how the pharmaceutical industry is influencing public policy," said Ismail.

Pfizer spokesman Jack Cox confirmed that the figure was accurate for the New York-based company's spending.

"Pfizer is committed to providing quality health care to all Americans and we actively support legislation and policies that advance scientific innovation, expanded research, coverage for the uninsured, improved health-care outcomes and better models for controlling costs," he said.

The pharmaceutical industry was the biggest spender on lobbying from 1998 to 2004, Ismail said.

Wednesday, April 11, 2007

OpenSecrets.org

The Center for Responsive Politics is a non-partisan, non-profit research group based in Washington, D.C. that tracks money in politics, and its effect on elections and public policy. The Center conducts computer-based research on campaign finance issues for the news media, academics, activists, and the public at large. The Center’s work is aimed at creating a more educated voter, an involved citizenry, and a more responsive government.

Lobbying Overview

In addition to campaign contributions to elected officials and candidates, companies, labor unions, and other organizations spend billions of dollars each year to lobby Congress and federal agencies. Some special interests retain lobbying firms, many of them located along Washington's legendary K Street; others have lobbyists working in-house. We've got totals spent on lobbying, beginning in 1998, for everyone from AAI Corp. to Zurich Financial.

Sunday, April 08, 2007

The Future of the Interstate Highway System

Although the Interstate at 47,000 miles represents only 1 percent of total system mileage, it carries 24 percent of all traffic and 41 percent of combination-vehicle truck traffic. It is a strategic system of arterials which performs well. But it has meant far more to our economy and way of life than its designers could have imagined.

The Interstate Highway System was a technological breakthrough which increased productivity and transformed the country in ways not anticipated. A safer, 65 mile-per-hour system was overlaid onto a less safe, less well-maintained 20 to 40 miles per hour system which previously existed in urban and rural areas. National, multi-state, regional, and local economies were all empowered to reorganize to take advantage of new capabilities. The quantum change it brought about has been compared with the railroads of the 19th Century which also more than doubled speeds and capacities of connections between places, and the jet aviation system of the 20th Century which tied together the nation and the world for business and leisure travel.

Regions that were not part of the nation’s economy became integrated through new opportunities to have longer distance links to goods movement and for personal travel. Look what has happened to the south and west over the past 50 years. Urban areas were able to expand and grow, enabling more agglomerations of industries and skills with much larger urban boundaries. Metropolitan areas now generate over 80 percent of jobs, growth, and development.

The Interstate Highway System has made significant contributions to U.S. productivity growth. During the 1950s, the contribution of highway network investments to annual productivity growth was 31 percent. It averaged 25 percent in the 1960s, and by the 1980s the net social rate of return on highway capital was 10 percent, about equal to rates of return on private capital.

The Interstate System enabled the U.S. economy in the last half of the 20th century to develop within a much larger envelope of potential size and productivity. However, as the capacity and the performance of the current Interstate Highway System are used up, this will reduce the Interstate’s ability to support the increased productivity the United States will need to compete in the global economy.

Greater supply chain productivity and lower logistics costs have been critical to U.S. economic growth. From 1980 to 2003, the cost of transportation was cut in half because of infrastructure improvements making U.S. goods globally competitive.

Friday, April 06, 2007

Companies propose Ethernet/SAN love-in

While Fibre Channel is the standard in high-end data storage, the cheaper Ethernet option is becoming increasingly enticing with better reliability and 10Gbit/s technology on the horizon. The fresh standard could help unite the two worlds.

"This enables people who already have a large Fibre Chanel SAN infrastructure to keep everything they have in place," market analyst for Enterprise Strategy Group Tony Asaro said. "Users can merge this with 10G Ethernet without giving anything up."

Companies have already been working on product compliance in parallel to the submission, but it will still be about three to four years - fingers crossed - before the technology will make an impact on the market, according to industry reps.

Asaro also speculates that 10G Ethernet technology has to go down in price before people look at it in a practical sense for the highest-end tasks. 10G Ethernet currently costs about $3000 to $5000 per port.

SAN-in-a-box scores with Fibre Channel fans

As iSCSI gains traction in the market, cheaper Fibre Channel is back on the agenda this week, with both EMC and Fujitsu-Siemens picking up 4Gig SAN-in-a-box packages assembled by Emulex and Brocade. Could this be the long-awaited low-end breakthrough for Fibre Channel?

EMC's version is an upgrade to the 2Gig InstaSAN package that it's been selling for a while now. Intended for the Clariion AX150 array, it includes two Emulex LightPulse HBAs, an eight-port Brocade switch, cabling, and what Emulex optimistically calls "intuitive installation and management software".

The equivalent from Fujitsu-Siemens Computers includes a disk array as well, but goes by the playschool name of My Very First SAN. A company spokesman apologised, and claimed that all the good names had already gone - although he also seemed to think that HP's My First SAN qualified as 'good'.

Anyhow, FSC reckons that by pruning the package down to a 500GB FibreCAT SX60 disk array, eight-port Brocade switch and a single 2Gig Emulex HBA, it can sell it for just EUR 8000, which is around £5400. OK, so calling it a SAN when it only connects one server is perhaps a bit optimistic - but the company offers larger configurations too, including those 4Gig ones.

"Thanks to our complete solution, even smaller companies can now start reaping the benefits of having a SAN for their data storage, reflecting today's high demands for information availability and security," declared FSC storage veep Dr Helmut Beck.

Packages of this kind have been around for several years. For example, three years ago QLogic introduced a €10,000 package called SAN-in-a-Box, comprising an eight-port Fibre Channel switch, four host adapters, cabling and management software.

The fact that that amount of money will now get you a disk array as well shows just how much Fibre Channel prices have fallen. Also significant is the work that Fibre Channel developers have put into making their equipment easy to set up and use - for smaller installations at least.

So if these packages work it is more likely to be as door-openers, in persuading SMBs that Fibre Channel isn't quite as expensive or complex as the iSCSI salesperson told them last week.

Biosand Filter Reduces Diarrheal Diseases

University of North Carolina researchers, lead by Mark Sobsey, are the first to scientifically document that filters made of concrete, gravel, and sand can significantly reduce the incidence of diarrheal diseases, the leading cause of death in many third world countries.

Sobsey and researchers in UNC's School of Public Health compared rates of diarrhea and the condition of drinking water in homes in two villages near Bonao, Dominican Republic. They monitored about 150 households without filters for four months, assessing the rate of illness. Then, about half the houses were given biosand filters - concrete containers that hold gravel and sand. All households were monitored for another six months. The team's initial analysis showed the filter reduced diarrheal disease among household members by an estimated 30 percent to 40 percent, including in highly vulnerable young children less than 5 years old. At the end of the study, filters were given to all participating homes.

Sleepwalking woman had sex with strangers

Sleep medicine experts have successfully treated a rare case of a woman having sex with strangers while sleepwalking.

The behaviour had disrupted the lives of the woman and her partner. At night while asleep, the middle-aged sleepwalker - who lives in Australia and cannot be identified for reasons of confidentiality - left her house and had sexual intercourse with strangers. The behaviour continued for several months and the woman had no memory of her nocturnal activities.

Circumstantial evidence, such as condoms found scattered around the house, alerted the couple to the problem. On one occasion, her partner awoke to find her missing, went searching for her and found her engaged in the sex act.

“Incredulity is the leading player in cases like this,” says Peter Buchanan, the sleep physician at the Woolcock Institute of Medical Research in Sydney, who handled the case. But a combination of factors convinced him that the case was a real sleepwalking phenomenon, including the distress of the couple, and an in-depth clinical evaluation.

Wednesday, April 04, 2007

Can Foreign Ag Firms Help Feed China?

The country's farmers need all the help they can get. Not only have they been deprived of funding and technology, environmental math is against them too. Farmers lack the equipment required to respond to an increasing demand for agricultural products, as well as an adequate social security apparatus.

China's farmers have to feed a fifth of the world's population using 10% of its arable land. Government analysts say per capita water levels, currently one quarter of the global average, will drop below internationally defined crisis levels by 2030 if usage continues at its present rate.

In a nation where agriculture accounts for 70% of water consumption, catastrophe may only be avoided through improved efficiency.

With their years of experience in mechanization, agricultural chemistry and biological research, foreign agri-tech firms are uniquely positioned to capitalize on China's needs. Meanwhile, well- financed overseas food processors and retailers are able to implement large scale infrastructure improvements that are beyond their domestic competitors.

Sunday, April 01, 2007

Firefox » Gmail Manager

This is a Firefox extension that allows you to manage multiple Gmail accounts and receive new mail notifications. Displays account details including unread messages, saved drafts, spam messages, labels with new mail, space used, and new mail snippets.

Features

  • Manage multiple Gmail accounts
  • Receive new mail notifications
  • Support for Gmail hosted accounts
  • Ability to import/export account preferences
  • Tooltip with account details and new mail snippets
  • One-click access for loading your Gmail account
  • Mailto: links detection
  • Quick mail compose for Gmail accounts
  • Customizable icon placement in the toolbar/statusbar

I think therefore I am, I think

But the American neuroscientist Benjamin Libet has shown that before every such movement, there is a distinctive build-up of electrical activity in the brain. And this build-up happens about half a second before your conscious ”decision” to move your arm. So by the time you think, ”OK, I’ll move my arm,” your body is halfway there. Which means your conscious experience of making a decision - the experience associated with free will - is just a kind of add-on, an after-thought that only happens once the brain has already set about its business. In other words, your brain is doing the real work, making your hands turn the pages of this magazine or reach over for your cup of tea, and all the time your conscious mind is tagging along behind.

But if this is true, the implications for our systems of morality, of crime and punishment, are shattering. We only punish those we think voluntarily did wrong - not those who literally had no choice but to act as they did. But if there is no free will, then no one has ever had a choice but to act as they did. That Eve ate the apple was as predetermined as the leaves falling to the ground in autumn. None of us could ever truly be said to be responsible for our actions. In very different ways, three new books tackle the question of whether we are free and what it means if we are not.

There is already ample evidence that prison is effectively where society sends those whose brains do not work properly. A report released last month suggested over a quarter of the UK’s almost 80,000 prison population have an IQ of lower than 80 and suspected learning disabilities, such as forms of autism and dyslexia. Another study carried out at the Young Offenders’ Institute in Aylesbury showed that if prisoners were given minerals and fatty acids essential for proper brain functioning, they committed 37 per cent fewer violent offences.

Why the government keeps Indians poor

To understand the enormity of the falsehood, let me put things in perspective. The net per capita food availability in India in 1971 was 394 gm per day. This was just after the onset of Green Revolution in India. Exactly 30 years later, in 2001, the net per capita of foodgrain availability was 396 gm per day: a princely rise of 2 gm! In effect, for over 30 years our farm growth has barely kept pace with our population growth.
A comparison with other countries is central to understanding the extent of food shortage prevailing in India. Advanced countries, on a per capita basis, consume anywhere between 500 gm to 600 gm per day. Such healthy consumption in these countries is supplementary to the substantial quantity of meat, fruits, vegetables and milk.
The government spends about Rs 26,000 crore (Rs 260 billion) every year on food subsidy, through the public distribution system (PDS), for those living below the poverty line. It is estimated that for every Re 1 of subsidy to reach the ultimate beneficiary, the government has to spend approximately Rs 7 on the administrative mechanism. In fact, of the 300 million poor estimated to be below the poverty line in the country, only 25 per cent are estimated to have access to PDS.



Monday, March 26, 2007

Scarlett Johansson - Speed Painting

http://www.youtube.com/watch?v=y14g50q4hQ0

SmartFTP

http://www.smartftp.com/download/

Sunday, March 18, 2007

Crops Feel The Heat

Over a span of two decades, warming temperatures have caused annual losses of roughly $5 billion for major food crops, according to a new study by researchers at the Carnegie Institution and Lawrence Livermore National Laboratory.

From 1981-2002, warming reduced the combined production of wheat, corn, and barley—cereal grains that form the foundation of much of the world’s diet—by 40 million metric tons per year. The study demonstrates that this decline is due to human-caused increases in global temperatures.

"Most people tend to think of climate change as something that will impact the future," said Christopher Field, co-author on the study and director of Carnegie’s Department of Global Ecology in Stanford, Calif. "But this study shows that warming over the past two decades has already had real effects on global food supply."

My Rich Uncle

Unlike, say, Sallie Mae--the Microsoft of private lending, with a portfolio of $11.5 billion in 2004--MRU doesn't rely on punitive (and lucrative) fees and penalties to keep margins up. The year-old firm's cofounders, Raza Khan, 28, and Vishal Garg, 28, are adopting the Google mantra: Don't be evil. Their proprietary software predicts student income based on transcripts, school, course of study, and other data; a business student with stellar grades might get a .25% reduction over a pottery student with a spotty record.


http://www.myrichuncle.com/Team.aspx

http://www.cbsnews.com/stories/2007/03/16/eveningnews/main2579808.shtml

Wednesday, March 07, 2007

Solar Cookers in India

Most popular in India are the box type solar cookers with a single reflecting mirror being promoted by the Ministry of Non-conventional Energy Sources since 1982. These cookers are manufactured mainly by small/tiny industries to a set of specifications developed by MNES, later approved by Bureau of Indian Standards. There is an estimated potential demand of 10 million solar cookers in this country. In India a major portion of the market is covered by box type cooker and a small portion of the market share is taken up by community type box cooker/parabolic type cooker. Manufacturers intending to manufacture and market solar cookers under the subsidy scheme have to compulsorily get the cooker tested and certified by an authorized test center. There are about 40 manufacturers whose combined annual production capacity is 75000 solar cookers.

These cookers have proved immensely popular in the rural areas where women spend a lot of time foraging for firewood.