Forgot your password?
typodupeerror
User Journal

Journal: Fun with SQL Server 2012 11

Journal by Marxist Hacker 42

I have a Table Valued Function that returns a simple parameterized view. I want to turn that view into a string.

Can anybody tell me why the first query works and the second one doesn't?

DECLARE @JobID INT
DECLARE @strOut VARCHAR(MAX)

SET @JobID=2861

SELECT @strOut =Coalesce(@strOut +',','')+ ISNULL('[' +
MP.ModelPointName + '] int', 'ErrorInFactoryModel int')
FROM (SELECT TOP 800 ModelPointName, Sequence
      FROM dbo.GetReferencedModelPointsByJobID(@JobID)
      ORDER BY Sequence) MP
WHERE NOT (MP.ModelPointName LIKE '%Ship%'
        OR MP.ModelPointName LIKE '%Scrap%')

PRINT @strOut

SET @strOut=NULL

SELECT @strOut =Coalesce(@strOut +',','')+ ISNULL('[' +
MP.ModelPointName + '] int', 'ErrorInFactoryModel int')
FROM dbo.GetReferencedModelPointsByJobID(@JobID) MP
WHERE NOT (MP.ModelPointName LIKE '%Ship%'
        OR MP.ModelPointName LIKE '%Scrap%')
      ORDER BY Sequence

PRINT @strOut

The 2nd one returns a single field name, the first, returns all the field names.

User Journal

Journal: Circular Refuge on reddit 4

Journal by Some Woman

It's a happening place. There are upwards of 3, maybe 4 posts a day!
You should join us, if you like.

http://www.reddit.com/r/CircularRefuge
(message mods to join; can't let the riffraff on reddit in! Just our very own special riffraff.)

User Journal

Journal: Trying to remember a conspiracy theory 7

Journal by Marxist Hacker 42

Back in the early 1990s, when CD Roms were first invented, on major use of them was for the conspiracy dial up bulletin board system. With a CD Rom online on your bulletin board, you could "host" a CD full of downloadable text files on everything from government cover-ups to UFOs.

I was into such things at the time, and read many of these files.

Fast forward to today- and Pope Francis gives us a conspiracy theory: that rich first world nations are promoting war in the third world as a prop to economics. All over the first world Catholic blogosphere, there is outrage- how dare the Pope tell us capitalism is supported by warfare?

Of course, Dwight Eisenhower, upon leaving the U.S. Presidency said the same thing,- warned us about the military industrial complex.

But I seem to remember a "secret" document passed around those old BBSs from the Vietnam Era that basically said the same thing, only actually recommending it as a policy. Does anybody else remember this document? Can you remember something I can google on? I'm coming up empty.

United States

Journal: The Counter-Revolution of 1776 21

Journal by Jeremiah Cornelius

The Counter-Revolution of 1776
Slave Resistance and the Origins of the United States of America
Gerald Horne

363 pages
April, 2014
ISBN: 9781479893409

The successful 1776 revolt against British rule in North America has been hailed almost universally as a great step forward for humanity. But the Africans then residing in the colonies overwhelmingly sided with London. In this trailblazing book, Gerald Horne complements his earlier celebrated Negro Comrades of the Crown, by showing that in the prelude to 1776, the abolition of slavery seemed all but inevitable in London, delighting Africans as much as it outraged slaveholders, and sparking the colonial revolt.

In the prelude to 1776, more and more Africans were joining the British military, and anti-slavery sentiments were deepening throughout Britain. And in the Caribbean, rebellious Africans were chasing Europeans to the mainland. Unlike their counterparts in London, the European colonists overwhelmingly associated enslaved Africans with subversion and hostility to the status quo. For European colonists, the major threat to security in North America was a foreign invasion combined with an insurrection of the enslaved. And as 1776 approached, London-imposed abolition throughout the colonies was a very real and threatening possibilityâ"a possibility the founding fathers feared could bring the slave rebellions of Jamaica and Antigua to the thirteen colonies. To forestall it, they went to war.

The so-called Revolutionary War, Horne writes, was in large part a counter-revolution, a conservative movement that the founding fathers fought in order to preserve their liberty to enslave othersâ"and which today takes the form of a racialized conservatism and a persistent racism targeting the descendants of the enslaved. The Counter-Revolution of 1776 drives us to a radical new understanding of the traditional heroic creation myth of the United States.

http://www.amazon.com/The-Counter-Revolution-1776-Resistance-Origins/dp/1479893404

United States

Journal: US Think-Tank RAND on Ukraine: Internment Camps, Executions 24

Journal by Jeremiah Cornelius

Today Donetsk, tomorrow Detroit.

A leaked memo attributed to RAND corporation think tank suggests the Ukrainian govt should engage in an all-out war in the east, including shutting down all communications, putting citizens in internment camps and killing all who resist such actions.

    In the shocking letter, which has been leaked to online media, the advice offers a step by step brutal guide in how to deal with the population in eastern Ukraine. The authenticity of the document which bears the RAND corporation logo, however, could not be independently verified.

    The RAND Corporation is non-profit global think tank which offers
    research and analysis to the US armed forces.

http://rt.com/news/170572-rand-east-ukraine-plan/

The Military

Journal: Liberalism is the Wellspring of Western Imperialist Ideology 30

Journal by Jeremiah Cornelius

I just lost a long post explaining why, suffice it say that two sources of modern liberalism, the creole revolutions in the US and Spanish colonies and JS Mill's philosophy, are central to imperialist ideology.

Liberalism appeared "progressive" among other reasons because it sought the transfer of power from European monarchs to colonists. Often, as in the US where the War of Independence was led by a land speculator who risked losing tens of thousands of acres of illegally "purchased" land, the basic issues had to do with the fate of aboriginals. The Royal Proclamation of 1763, banning the purchase of Indian land except by the Crown and preventing colonists from crossing the Alleghany mountains, was a major grievance. In Spanish colonies there were similar issues. Colonists wanted the liberty to plunder-and enslave- on their own account without restraint from Europe.

As to Mill, who was a key figure in the East Indian Company's rule of India, he was an ideologist of both imperialism and representative democracy. The Liberals shared a contempt for non-European cultures with a cynical and ruthless justification of the employment of military force in order to bring foreigners under imperial rule. Their attitude towards workers was equally contemptuous.

Then there was the great French liberal de Tocqueville, author of Democracy in America and one of the leaders in colonising Algeria, a fervent defender of the theft of North African land and the enslavement of muslims.

Conservatives often opposed imperial adventures, Burke being a prime example, while liberals wrecked civilisations, and caused untold millions of deaths, by tearing down, for example, China's government in order to impose liberal trade policies. In China among the disasters was the imposition of opium on a government which rightly feared mass drug addiction. This was a policy carried out under the direction of one of Bentham's executors and disciples. In India the demolition of controls over grain storage and distribution, and a refusal to allow famine relief, born of market monomania, were policies imposed by liberals, often liberals of the highest distinction. Macaulay, for example, who held the view that a shelf of English literature was worth all the books ever written in Asia- a judgement of astonishing ignorance but the founding principle of an educational system which still exists.

  All those American college professors who joined the CIA in the late forties were real inheritors of the liberal tradition. Their ideology lives on in Samantha Power, Obama and those vast swathes of the Democratic party's leading cadres who cannot get their heads around the notion that imperial wars are never justifiable and that imperialism is, and always has been, a force for evil, dyed with the blood of those it has wiped out in serial genocides.

Of course there is much more to it, as their always is, but my assertion, far from being bullshit is hard to deny: Liberalism is the wellspring of western imperialist ideology.

Posted by: bevin | Jul 3, 2014 9:32:10 PM | 71

User Journal

Journal: private enterprise discouraged 5

Journal by Bill Dog

From some FA on the Hobby Lobby ruling:

"But the government points to a long line of cases holding that for-profit companies may not use religion as a basis for failing to comply with generally applicable laws."

Earlier this month we learned that the FAA decrees that it's legal to use drones for fun, but not for profit.

Why do I lose rights in America simply by virtue of trying to make money on my own time, or with my own association with others?

User Journal

Journal: why shouldn't it work both ways 20

Journal by Bill Dog

Stossel's show was irritating tonight. The topic was Conservatism vs. Libertarianism. As a Libertarian, Stossel misrepresented Conservatism, and various Conservatives were on appealing to the same things Lefties appeal to; the greater good, majority norms.

Stossel said he used to be a Liberal, so that explains enough of an inability to think straight about things to be able to be a Libertarian. But it's shocking how Conservatives seem blithely unaware that effectively saying it's okay to legislate morality, means then the other side can legislate its morality on us. (And where we're only for it in certain cases, the Left is for doing it all but a few cases. I.e. it's a patently dangerous idea, and used vastly more against us than in what we favor.)

I might journal about some of the topics later (maybe if I can find a refresher of my memory of it on youtube), but the show spurred a chain of thinking on a particular topic that led me to the following.

Let's say I'm a landlord, and I'm also bigoted against homosexuals (which I am, but not in the following way), and refused to rent to them. Most people would say the government should step in and force me to rent to them. I.e. Despite homosexuals offending my sensibilities, I should be forced to associate with them anyways. Because otherwise they could potentially have a hard time finding a rental place to live.

Now let's say that instead I'm a landlord, and I don't refuse to rent to them, but I'm a very outspoken disparager of them in the region, and the homosexual community knows it. And let's say the homosexual community represents a significant %-age of the region. What if I'm having trouble keeping the complex full all the time? Should the government force some homosexuals to live in my complex and pay me rent, despite my offending their sensibilities?

And what about quotas. Lefties say that if a community is 10% Black, then roughly 10% of the programming jobs in that community must be filled with Blacks. Else there's racial inequities.

Well janitorial jobs, at least around here, seem to be disproportionately filled by Hispanics. Should the government tell Black people in that area that 10% of them need to switch careers into the custodial arts?

It seems like either quotas are a good idea or they aren't. And it seems like if it's good to force association between parties when one desires not to do so, then it's good.

If it's one thing I can respect Libertarians for, it's at least they're consistent*

*Well, except for their being pro-choice, which flies squarely in the face of being for individual rights.

User Journal

Journal: Certification fun! 1

Journal by Timex

My employer pretty-well insisted that I get a certification. They went so far as to pay for the training and the first exam attempt.

To that end, I'm working on GCUX through SANS. So far, so good. It's pretty interesting.

From what I'm reading about how to prepare for the exam itself, it would be to my benefit to prepare a thorough index- something in the area of 30-50 pages long. O_O

Does anyone have any experience with that sort of thing? How does one know what should be in the index and what should not?

User Journal

Journal: TV idiocrisy is coming 2

Journal by Bill Dog

It started with the ability to show a network logo watermark. Networks would show a translucent version of their logo in the bottom corner for a few seconds, after resuming from a commerical break. Evidently someone who makes tons of money thought it was important that you be reminded where you're seeing the currently airing content.

I didn't mind that, at all. Stupid, but not really obnoxious. Then they moved onto the phase where they left that up all the time. I took me a while to train my brain to tune that out. Until I was able to, it annoyed the hell out of me.

Then they moved on to the next phase, of colored-in/opaque logos, that they leave up all the time. I.e. blocking part of the content (in that corner), all the time.

Then came promos for other shows on the network, after coming back from an ad break, that took up much or all of the bottom portion of what you're fucking trying to watch. I.e. all the commercials played, the movie has resumed, and you're trying to get back into it, and then here comes an overlay commercial, while the movie is still going. Sometimes it's animated, so basically you miss part of the movie they're showing.

So last night I'm flipping thru, and FX is showing some Ice Age or other cartoon animals movie (not at all my cup of tea, so I don't really know). Now I don't know if it had just come back from break or not, but it popped up an ad for the sequel to whatever it was, evidently now playing in theaters or coming soon.

I.e. they've taken the overlays from just promos for the network, to content-related adverts. I don't have for example a "smart TV", so maybe this has already started in other things.

I used to look forward to progress. When it meant a better picture, or more hp at an affordable price point, or easier and more advanced programming ways.

It's like standard of living is a bell curve. As technologies and advancement of capabilities has increased, our standard of living increased. But ever increasing capabilities doesn't seem to equal better quality of living, forever. My DVD player says "operation not permited by disc". WTF? Cars now have gadgetry to wrench the steering wheel from you or press the brakes behind your back. My dad can't go to a favorite finance site anymore, because it watched a few of his clicks and now doesn't show him general news but only the things relating the few topics it last remembers him clicking on. (I could try deleting cookies, as long as it's not fingerprinting him in other ways.)

So I don't think it's just old-fogeyism. I just like things that are better, not worse. And when you start running out of ways to make things better, I guess it's human nature to just keep on going, because the capabilities do. Didn't we used to be thinkers, or is that just another faulty assumption, about how the world works, of mine from childhood?

p.s. I have the flu, and feel miserable so I'm probably more babbling here than my normal level of babbling on.

User Journal

Journal: The more things change... 4

Journal by Timex

...the more they stay the same. I think.

A little over a year ago, I wrote about how I stopped playing WoW and took up ST:TOR. Now, I don't even play that.

Things have been a bit hectic at my house- My wife's computer died (constant, unpredictable reboots and a corrupted hard drive), so she's taken to playing WoW on my system. She raids often, now that she's found a guild that does that sort of thing in the morning. My sleeping period has me getting up late morning. By then, I have an errand or two to do before I start getting ready for work. Rinse, repeat.

I need a vacation.

User Journal

Journal: note to Slashdot

Journal by Bill Dog

You put "Microsoft Won't Bring Back the Start Menu Until 2015" on the front page on Monday June 02, 2014 @11:25AM. It got 407 comments.

Then you put "Windows 8.1 Finally Passes Windows 8 In Market Share" on the front page on Monday June 02, 2014 @07:10PM. It got only 78 comments.

See what you did there? You put up Microsoft flamebait topics _on the same day_. This is sub-optimal because all the little Slash spazzes were all tuckered out from whipping themselves into a mindless hate frenzy earlier.

To maximize ad impressions, it would behoove you to space these out to one per day. Thereby also giving Slashdotters a reason to visit each and every day; there would be no more slow news days!

And while you're at it, consider endowing the system with a set of canned posts, for convenience with such topics. Similar to how a greeting card store provides you with the known small set of ways you can say happy birthday, without having to come up with one yourself, Slashdot could for example provide all the typical variations of "The only thing Internet Explorer is good for is to download another browser".

Like the polls, the UI could be a simple list of radio buttons and a Submit button. Present a different list depending on the specific subclassification of flamebait topic, comprised of all the inevitable "insights" that would get posted. And might as well have them post already at +5, and Slashdot would attain new levels of user friendliness, saving the user base collectively a ton of time.

Contact me for my consulting fee amount.

p.s. One more hint: Flip the sign on the Redundant mod and it'll get more use.

If you do something right once, someone will ask you to do it again.

Working...