“SELECT DISTINCT … ORDER BY” is broken in Sybase ASE 12.5.3

So, last night I was running into broken behavior in Sybase 12.5.3 with regards to its behavior with SELECT COUNT(DISTINCT columnname) ... which surprised me, but I could at least rationalize why it was happening. Today, I found an outright bug, where mixing SELECT DISTINCT ... with an ORDER BY clause gives the wrong behavior. Here’s a quick session that demonstrates what I’m talking about:

1> SELECT @@version; -m bcp
Adaptive Server Enterprise/12.5.3/EBF 12331 ESD#1/P/Sun_svr4/OS 5.8/ase1253/1900/64-bit/FBO/Tue Jan 25 08:52:58 2005|

1> CREATE TABLE #test (x int, y int);

1> INSERT INTO #test (x, y) VALUES (1, 2);
(1 row affected)
1> INSERT INTO #test (x, y) VALUES (1, 10);
(1 row affected)
1> INSERT INTO #test (x, y) VALUES (2, 1);
(1 row affected)
1> INSERT INTO #test (x, y) VALUES (2, 5);
(1 row affected)
1> INSERT INTO #test (x, y) VALUES (3, 4);
(1 row affected)
1> INSERT INTO #test (x, y) VALUES (3, 7);
(1 row affected)

1> SELECT DISTINCT x FROM #test ORDER BY y DESC;
 x
 -----------
           1
           3
           2
           3
           1
           2

Has this been fixed in a newer version of Sybase? I can’t imagine anyone actually thinks this the right behavior.

The modern American patriot

Back in July 2005, I blogged a bit about my 9/11 conspiracy theory and at the end, I included this snippet:

Over two hundred years ago, this country was formed by a group of people who were known as “Patriots.” These people fought against the rule of a government that didn’t serve its people. What it meant to be “a patriot” back then was to support the revolution in overthrowing the former government. It meant fighting against huge odds because to continue to live the way things are would be far worse than trying to overthrow the government. It was downright treasonous to be a patriot, but these people did it because that’s what they felt was the right thing to do. They risked everything because they couldn’t go on living the way they were — they were pushed past a point.

Today, the words “patriot” and “patriotic” get thrown around, but in the same breath with things like the “PATRIOT Act” and “Homeland Security” — implying loyalty and support of our current government — but when and where did the meaning change? Perhaps it really hasn’t. Perhaps there will be a new generation of patriots who will overthrow this government and install a new one whose interests, once again, lie with the people it represents. They will be fighting against huge odds, and be treated as traitors — maybe even labelled terrorists — and will risk everything for something they believe in. But, how many 9/11’s will it take before the American people are pushed past their point and become true patriots? We will see.

Cover: How Would a Patriot Act?

Last week, Wil Wheaton blogs about Glenn Greenwald who started a blog back in October 2005, which lead to a book deal in March 2006. The book, How Would a Patriot Act? Defending American Values from a President Run Amok, sounds like it takes the central idea from my two paragraphs and turned it into a book. I’ll have to read it and find out, I guess. For now, I’ve added it to my Amazon.com wishlist.


Tags:
,
,
,
,
,

Supporting Rob Levin is like supporting the PDPC

Rob Levin, the founder of PDPC (the Peer-Directed Projects Center) blogs about being under attack from Patrick McFarland. You can read Patrick’s side here, where I left a comment. Since I’m concerned that the comment won’t be published, I want to repost it here in my own blog:

If you think raising funds to support Rob Levin through the Spinhome project doesn’t benefit PDPC, Freenode and their benefactors, then you aren’t smart enough to successfully “liberate” the Freenode IRC network and PDPC. Rob has contributed a good portion of his life, has sacrificed much, has been living close to the poverty level supporting a spouse and a young child on the generosity of the community, and has persevered much grief heaped upon him by others who haven’t even accomplished a small fraction of what Rob has already done. Supporting such a person to enable them to continue giving what he already gives selflessly is a win-win for everyone involved.

If you have real, tangible criticisms of PDPC and/or Freenode (or even Rob Levin, himself), I suggest you think them through and express them in an intelligible way. While everyone has their emotional moments, generally adults respond better to reasonable people more than they do to ad hominem attacks.

The way you are currently going about things will accomplish very little.

The sad reality is that any time you provide a service, there will always be customers who you just can’t satisfy. Perhaps Patrick is just one of those people. The fact still remains that Rob is trying to raise funds through his Spinhome project, to help improve his situation so he can continue to focus on improving PDPC and Freenode, which almost 30,000 people benefit from every day. His fundraising goal is in the ballpark of $300K, which might sound high, but just think: if each one of those 30,000 people donated $10, he’d hit his goal. However, since this is a personal project and Rob has very firm convictions about not using PDPC or Freenode for his own personal gain, he won’t even consider directly soliciting support from Freenode’s many users.

Well, as his friend and someone who benefits from his services (the #aolserver IRC chat is hosted on Freenode), I’d like to ask that if you also use Freenode, consider taking the time to make a one-time donation of $8 or $16 to his Spinhome fund. If you know people with open source projects who use Freenode, please pass the word along to them. A small investment from each of us will help ensure that Freenode continues to operate and improve for years to come.

Tags:
,
,
,
,
,
,

del.icio.us/dossy links since April 24, 2006 at 02:01 PM

del.icio.us/dossy (RSS) links since April 24, 2006 at 02:01 PM:

FSBO: 40 High St., Butler, NJ 07405 – $569,000

(I’m posting this for friends who are trying to sell their house. If
you have any questions, please call them directly at the number listed.
Thanks!)

40 High St.
Butler, NJ 07405

Professionally restored with inlaid hardwood floors, cypress trim,
living room with gas fireplace, kitchen with granite counter tops, new
bathrooms, plumbing and electrical systems. Walk to downtown and NYC
bus.

$569,000

(973) 492-5706

This fine home has been professionally restored to 1898 character and
charm. The inlaid hardwood floors and the extensive cypress trim has all
been stripped and refinished. The plaster walls have been completely
stripped of excess paint, refinished, and color-matched to the original
1898 colors. The entire interior of this home, from the gleaming floors
to the second floor foyer, exudes a charm and warmth not found in newer
homes. The living room features a custom gas fireplace with three-part
Basque relief, built-in bookcases and gold leaf border. The kitchen is
a cook’s delight, featuring granite counter tops, stainless steel
appliances and a Viking professional stove. Other updates include new
bathrooms with the finest fixtures, as well as plumbing and electrical
systems. The three-car garage is large enough for virtually any vehicle
and features a walk-up storage loft. Walk to downtown and NYC bus.
This is a home for the most discerning buyer, and must be seen to be
appreciated.
















First floor:

Ante Room: 4’x6′ — Provides an additional level of protection
from the weather, coat closet, features original door with beveled
glass.

Foyer: 10’x13′ — Trimmed ceilings with gold plated
chandelier, matching mirror, gold leaf mid-wall trim, cypress crown
molding with bordrer, cypress wood trim, oak floors.

Living Room: 15’x15′ — Trimmed ceiling, brass Victorian
chandelier, cypress crown molding, five original rebuilt double hung
windows, brick vented gas fireplace with oak mantle and three part
Basque relief, built-in bookcase, gold leaf floor border, custom period
furniture negotiable.

Dining Room: 12’x14′ — Nine foot wood trimmed ceiling with
crown molding, built-in cypress dish shelving, Cyprus trim with 8″ base
molding, inlaid oak flooring, walk-in storage closet, walls have been
stripped and color matched to original 1898 colors, furniture is
original 1800’s to early 1900 vintage and is negotiable.

Kitchen: 20’x11′ — Acoustic ceiling tiles with built-in fluorescent
lighting, ceiling fan, tiled walls, oak cabinets with granite counter
tops, stainless steel sink with Hansa faucets, Culligan reverse osmosis
water system, stainless steel Viking professional stove with griddle,
stainless steel exhaust hood, stainless steel refrigerator and
dishwasher, Andersen bay window and separate heat zone.

Breakfast Nook: Lighted walk-in pantry, adjustable shelving,
granite counter top.

Bathroom: Tile shower with stainless steel enclosure, tiled
walls, stainless steel fixtures, electric heat, vinyl floor.

Second floor:

Foyer: 8’x9′ — Trimmed ceiling with ceiling fan, crown
molding, gold leaf mid-wall trim, cypress wood trim and banister,
commercial grade carpet, solid hardwood doors.

Master Bedroom: 12’x11′ — Corner room with two windows,
attached nursery, single closet, pine flooring.

Bathroom: 5’x11′ — Tiled shower over tub, tile walls,
pedestal sink, ceramic tile floor, two linen closets, new fixtures and
plumbing.

Nursery: 8’x9′ — Off master bedroom for use as nursery,
sitting room or walk-in closet.

Bedroom #2: 10’x12′ — Pine flooring, corner room with two
windows, single closet.

Bedroom #3: 9’x11′ — Pine flooring, corner room with two
windows, single closet.

Third floor:

Bedroom #4/Office: 14’x12′ — Pine flooring, one single and
one double window, trimmed in oak, single closet.

Outside:

Garage: Three car garage with walk up storage loft.

Deck: 23’x10′ — Off kitchen, opens to yard, sealed with
sikkens.

Special features:

  • Professionally restored to 1898 character
  • 3 car garage with storage loft
  • New kitchen with granite and Viking stove
  • Modern gourmet kitchen
  • Trimmed ceilings
  • Cypress trim throughout
  • Inlaid hardwood floors
  • Original stained glass windows
  • Ante room, foyer and second floor foyer
  • Turn of the century furnishings available
  • Quaint neighborhood
  • Restored front porch
  • Completely updated electric
  • Deep yard with privacy fence
  • Full partially finished basement
  • City water and sewer
  • New roof, gutters and electric de-icing system
  • Walk to NYC bus
  • 5,000 sq. ft. back yard
  • Lot size: 50’x180′
  • Taxes: $7,068 (2005)

BloggingStocks.com = Motley Fool 2.0

Jason’s team at Weblogs, Inc. does it again: www.bloggingstocks.com. For a more mainstream writeup, read Heather Green’s article at BusinessWeek (via Nick Wilson at Performancing).

BloggingStocks.com has the Weblogs, Inc. look and feel to it, integrates AOL assets (links to Message Boards, Alerts & Reminders, Quotes, Portfolios, etc.) but is done in a way that’s very clean — not the usual AOL “Fisher Price” style of web design. This could be the watershed moment for AOL’s “audience” business.

What makes me really chuckle is that this feels so Motley Fool 2.0 to me. I mean, 11 years ago, to the month, AOL helped launch the Gardner brothers online.

Lets just hope that AOL can repeat that success again, in today’s popular format. Here’s to wishing that TWX stock price goes up.

del.icio.us/dossy links since April 17, 2006 at 09:00 AM

del.icio.us/dossy (RSS) links since April 17, 2006 at 09:00 AM:

Can money buy happiness? Maybe not, but you can certainly enjoy it.

Walking back from the cafeteria today, feeling bad that I just paid $7 for an overpriced sandwich and feeling poor, I started thinking about why that’s made me feel this way. I thought back to a blog entry by Ben Casnocha I read this morning where he links to Andrew Sullivan’s This I Believe: Life, Liberty and the Pursuit of Happiness essay on NPR. In it, Andrew says:

I believe in the pursuit of happiness. Not its attainment, nor its final definition, but its pursuit. I believe in the journey, not the arrival; […]

It occurs to me that while I’m not tremendously wealthy in monetary terms, I think I’ve figured out how to make money. While I often struggle to pay bills, I’ve always been able to make enough to never have to “go without” the essentials, and even many luxuries by common standards. What I’ve never really spent much time doing is figuring out how to enjoy money. I don’t mean spending it — trust me, I think I’ve got that one mastered, too. But, I mean, how to spend it so that I feel good about it, not badly about it like I did just a few minutes ago. Since I’m new to this, I really don’t have much to say about it, but I know everything starts with mindset. So, I’m going to start changing mine.

This might be an overpriced sandwich, but it’s the best overpriced $7 sandwich I’ve ever had.

Tags:
,
,
,

Robert Scoble is now mainstream media?

The World According to Scoble: Robert Scoble realizes his value-add to the blogosphere: his editorial control.

It was that moment that I decided to moderate my comments here. Yes, I am now approving every comment here. And I will delete any that don’t add value to either my life or the lives of my readers.

Next, he’ll acknowledge the success of AOL’s secret sauce: its programmers.

Tags:
,
,
,

del.icio.us/dossy links since April 10, 2006 at 09:00 AM

del.icio.us/dossy (RSS) links since April 10, 2006 at 09:00 AM: