Issue time12:14:11 pm, by Ritchie Annand Email 468 views
Categories: Programming

This is pretty simple to accomplish, though how exactly to do it can be hard to find.

Quite simply, you add OUTPUT to your parameter lists, on both your procedure definition and your actual call, like so:

Defining:

CREATE PROCEDURE dbo.TestValue
@Value int OUTPUT
AS
SET @Value = @Value + 1
GO

Calling:

DECLARE @Banana int
SET @Banana = 1
PRINT @Banana
EXEC dbo.TestValue @Banana OUTPUT
PRINT @Banana
EXEC dbo.TestValue @Banana OUTPUT
PRINT @Banana
GO

If you run this in SQL Server Management Studio, this will give you the output:

1
2
3

If you miss the OUTPUT on the calling side, your value will simply be unaffected, and will output instead:

1
1
1

If you miss the OUTPUT on the defining side, the OUTPUT on the calling side will generate an error:

Msg 8162, Level 16, State 2, Procedure TestValue, Line 0
The formal parameter "@Value" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output.

Issue time12:52:00 pm, by Adam Email 249 views
Categories: Silly

Link: http://i.gizmodo.com/5276024/blade+covered-baby-equipment-perfect-shower-gifts-for-the-antichrist

I'm not really a baby person, but this crèche furniture is quite appealing.

Issue time01:53:56 am, by Ritchie Annand Email 833 views
Categories: Common Sense, Politics, Religion, Science

This bill has been causing some stir in Alberta.

Essentially, the bill modifies the Human Rights, Citizenship and Multiculturalism Act RSA-2000 cH-14 here with modifications that, for the most part, add sexual orientation to these protected categories:

race, religious beliefs, colour, gender, physical disability, mental disability, ancestry, place of origin, marital status, source of income or family status of that person or class of persons or of any other person or class of persons.

So why all the big fuss? Well, a couple of reasons: one, there's an addition to the act that, seemingly out of the blue, protects students from educational exposure or testing of:

subject-matter that deals explicitly with religion, sexuality or sexual orientation

Two: a comment by the premier of the province, Ed Stelmach. From a CBC article:

Although Stelmach has confirmed the bill will give parents the authority to exclude their kids from classes if the topic of evolution comes up, Education Minister Dave Hancock said it won't change anything.

I have my own few thoughts about the act...

Read more »

Issue time09:44:15 am, by Adam Email 296 views
Categories: Technology

Did you know that it's really easy to get through a gigabyte of data in two days without using torrents or streamed video and audio (albeit with a little bit of Skyping)?

Neither did I up until a few hours ago.

Major contributors: Windows update, Outlook syncing, VMWare Fusion dmg download.

Issue time07:23:22 am, by Adam Email 112 views
Categories: iPhone

Apropos of not much:

- Trying to sync over wifi when your laptop is already connected to a pay-to-play wifi hub doesn't work. Apple really needs to open up their iTunes sync API so that third party apps can piggyback on it.
- Pay-to-play wifi just doesn't seem to be iPhone friendly, what with the need of most of them to display an active window counting your connection time.

Issue time07:45:00 am, by Adam Email 422 views
Categories: Macintosh

Link: http://www.flickr.com/groups/977532@N24/

I don't have a copy of iPhoto'09 with the feature that tries to automatically recognise people's faces and tag them. I'm looking forward to trying it out eventually.

In the meantime, I'm enjoying the Flickr group where people post some of iPhoto's near (and quite wide) misses.

Issue time07:45:00 am, by Adam Email 56 views
Categories: iPhone

Link: http://emperor.tidbits.com/TidBITS/Talk/2606

TidBITS, an Apple-centred news/discussion site, had a very brief discussion on unlocking cellphones after the contract is up.

I have to say I'm unsure why cellphone companies are not obliged to do this. The rationale -- as I understand it -- is that the cost of the phone is subsidised by the contract and the longer the contract, the more the subsidy (i.e. the cheaper the phone is.) Once that contract is complete, the subsidy should be fully paid back and therefore the cellphone should be entirely yours. However, on a locked phone this is not the case as it's still limited to use on only that particular cell network. I can see why the cell companies don't want to do it as it's an extra impediment to switching, and if the phone was free with a contract I could even accept it, but when you're spending several hundred dollars on a more sophisticated device like the iPhone the device should be yours free and clear.

Imagine buying a house where the mortgage company said (after being paid back in full) "Ok, it's all yours, but you're still going to need to pay us to live in it."

It's a bit absurd.

Issue time07:45:00 am, by Adam Email 48 views
Categories: Technology

Link: http://www.wired.com/science/discoveries/magazine/17-05/ff_neuroscienceofmagic?currentPage=all

Wired has a nice writeup on magic tricks and the shortcomings of the human perceptual system that allow them to work.

Issue time12:08:26 am, by Ritchie Annand Email 347 views
Categories: Internet, Spamming

A hearty thank you to the folks who do my hosting for catching this.

A hacker or script kiddie managed to upload a somewhat nasty-looking package into my cgi-bin directory. I haven't thoroughly investigated the code yet, but from the looks of it, the intention was either that any time the system tried to run an automated backup, it would send atrocious amounts of spam, or if someone typed in the url plus backup.cgi, it would give a direct-mailing interface, which would allow someone to send atrocious amounts of spam.

I'm leaning towards the latter possibility, because there is a "flood" mode in the script.

The script itself self-identifies as being made by "YellSOFT" and perhaps being called "GoldeR". (I can't seem to get the text to show up in Russian to get it translated)

The package also contains text files filled with alternative greetings (e.g. HI, Dear, Sorry if you not us), declarations of you-like-nudism (e.g. The favourite a nudism site of your friend invites you.), lists of unsubscribe messages, spamvertised redirection web sites (often using a /video or /private directory on someone else's web site), and a giant list, in a file called f.txt, of faked From: e-mail addresses.

Thank you oh so very much, you bottom-feeders.

As for my part, off I go to inform each and every one of those sites of the presence of the redirection page. I don't know how much I can hope for, but maybe I can help knock off a few. As I write this, all nine sites have the redirector page.

Issue time07:45:00 am, by Adam Email 67 views
Categories: Technology

Link: http://www.bogost.com/games/a_television_simulator.shtml

When I moved off the Amiga to other platforms, I left behind a number of interesting hardware tricks required for producing the sterling graphics the platform was known for. When trying to use the Amiga file formats on other platforms, the results were never as good due to those features being absent.

The linked to article discusses something very similar with the even older games consoles that took advantage of the behaviour of the low end technology available at that time -- specifically artefacting from cheap televisions -- and how never technology doesn't represent the appearance or behaviour correctly, often making it look a whole lot worse than it was.

(Via BoingBoing)

Issue time07:45:00 am, by Adam Email 90 views
Categories: Silly

Link: http://www.telegraph.co.uk/scienceandtechnology/science/sciencenews/5118283/Bacon-sandwich-really-does-cure-a-hangover.html

Who knew? A fry up really does help to cure hangovers. According to an article in Britain's Torygraph:

Elin Roberts, of Newcastle University's Centre for Life said: "Food doesn't soak up the alcohol but it does increase your metabolism helping you deal with the after-effects of over indulgence. So food will often help you feel better.

"Bread is high in carbohydrates and bacon is full of protein, which breaks down into amino acids. Your body needs these amino acids, so eating them will make you feel good."

Ms Roberts told The Mirror: "Bingeing on alcohol depletes neurotransmitters too, but bacon contains a high level of aminos which tops these up, giving you a clearer head."

Issue time07:45:00 am, by Adam Email 61 views
Categories: iPhone

Link: http://appshopper.com/navigation/mygps

I keep tabs on applications in the iTunes Store that drop to free as it's a chance to try out an application that otherwise I wouldn't bother with.

Sometimes when looking at the apps, you see some very odd behaviour. At the link is a program called "MyGPS". Since its introduction in mid-February this year, it's changed price just under 40 times, typically dropping to free and then back up, usually on the same day.

The main reason this price volatility caught my eye is probably the same reason that the author does this: I downloaded it thinking it was free when in fact it had just gone back up in price. I wasn't paying enough attention as I should have been (caveat emptor and all that) but this isn't what I would have called upstanding ethical behaviour on the part of the author. I've not spent much time seeing how many others do this, but I frankly wouldn't be too surprised to see that it's widespread.

Issue time07:45:00 am, by Adam Email 98 views
Categories: Technology, Reviews

Link: http://www.staples.ca/ENG/Catalog/cat_sku.asp?CatIds=&webid=649935&affixedcode=WW

Pluses: Small, attractive shredder capable of destroying CDs and credit cards. Staples will replace it when it fails within the warranty period.

Minuses: Randomly decides that it's going to no longer turn on. Small paper bin means frequent changes; removal of paper bin to empty it shuts off power; see first minus.

Conclusion: Lump of junk. Avoid.

Issue time05:12:04 pm, by Adam Email 104 views
Categories: Music

Link: http://en.wikipedia.org/wiki/Five_Live_(EP)

While trawling my way through a used CD store down in Tulsa, Oklahoma, I found an EP ("Five Live") credited to George Michael and Queen. The recordings on it were recorded for a concert to benefit charities in Freddy Mercury's name. I'd never heard of it before so decided to give it a try.

The conventional Queen songs ("Somebody to Love", "There Are The Days Of Our Lives") were well done but basically not terribly interesting. Where it gets fun is where the band mixes together Seal's "Killer" and Barrett Strong's "Papa Was A Rolling Stone". It's not a combination I would have expected to work but it does.

If you can find a copy, well worth a look.

Issue time07:45:00 am, by Adam Email 73 views
Categories: Games

Link: http://www.offworld.com/2009/04/fallout-new-vegas-obsidian.html

Oooh oooh oooh. There is no way that The Pitt is going to tide me over until then though.

Hm, I think I may have a copy of WoW:WOTLK lying around which might fit the bill.

July 2009
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

This is the accumulation page for the individual blogs of Ritchie, Dena and Adam. The Nimblebrainites conspire to bring you thoughts, oddities and anecdotes...

Search

Blogroll

  • b2evolution
    • Links

XML Feeds

Put your credits or banners here.

You can change or delete this text in /_sidebar_credits.inc.php
Powered by b2evolution