May have been the losing side. Still not convinced it was the wrong one.

Mal ,'Bushwhacked'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Tom Scola - May 05, 2011 8:10:17 am PDT #16708 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

When I run xsl it's from the command-line on a Unix system. I don't think I can help you with this.


tommyrot - May 05, 2011 8:13:27 am PDT #16709 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

OK, thanks anyway.


Pix - May 05, 2011 11:55:38 am PDT #16710 of 25501
The status is NOT quo.

I think this is code for "Uses a TARDIS."

If he has a TARDIS and hasn't told me, he is in so much trouble.


tommyrot - May 06, 2011 8:39:00 am PDT #16711 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

$25 computer is barely larger than the average USB stick

The Raspberry Pi is one tiny computer that's actually functional enough for modern use. It doesn't get any more barebones than a little circuit board with a 700MHz ARM 11 processor, a USB port, an HDMI port and an install of Ubuntu Linux.

Designed by game developer David Braben and his friends, the Raspberry Pi's basic structure was created to encourage schoolchildren to hack and mod it to unlock its true potential. On the stock Raspberry Pi, all one needs to do is plug in a display through the HDMI port and a keyboard through the USB and it's good to go — getting online requires another adapter.

While pictures show only a processor, USB and HDMI port, Raspberry Pi's website actually reveals its other secret powers: 128MB of SDRAM, OpenGL ES 2.0, 1080p HD decoding, composite output, SD card slot and other flavors of Linux such as Iceweasel and Python. A 12 megapixel camera sensor can also be connected (as seen in pic above).


DCJensen - May 07, 2011 6:21:58 am PDT #16712 of 25501
All is well that ends in pizza.

But will it run OSX?


tommyrot - May 08, 2011 7:04:16 am PDT #16713 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Mr Scola, are you around today?

I am now trying to do my xsl transformation on the server in the .ASP page (using VB Script). I think I've almost got it working. Currently I'm testing the transformation using Editix. When I run it, I get the following error:

The URI 'http://www.w3.org/1999/XSL/Transform' does not identify an external Java class

That error occurs on the following line in the xsl document:

<xsl:if test="pay_date[@dow = xsl:getDOW($loopcounter) and @sf = xsl:getSF($loopcounter)]">

The function DOW is defined like so:

<msxsl:script language="JScript" implements-prefix="xsl">
function getDOW(iCounter){
if(iCounter == 8){
return 6;
}
if(iCounter == 7){
return 7;
}
if(iCounter == 1){
return 6;
}
return 7 - iCounter;
}

...

We don't use Java in our xsl stuff, so I'm not sure what's going on. The error might be because Editix doesn't have some Java it needs or something? Any ideas? (I'm not at work, so I can't try the transformation on the .ASP page right now.)

eta: OK, I think the problem is that Editix doesn't have access to the JScript interpreter. So I'll have to try this tomorrow on our web server.


Tom Scola - May 08, 2011 7:24:41 am PDT #16714 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

I would try something along the lines of putting the function in its own namespace, i.e.

<msxsl:script language="JScript" implements-prefix="foo">

And then calling the function as foo:getDOW rather than xsl:getDOW.

You will also need to declare the namespace at the top of the document:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:foo="http://your-url-here"
extension-element-prefixes="foo">

Again, I'm not very familiar with the MS toolset, so I don't know if this will work or not.


tommyrot - May 08, 2011 7:28:23 am PDT #16715 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Thanks, Tom.

If I comment out the stuff that calls the JScript functions, it runs without error and the results are mostly correct. So I'm just going to wait until I'm at work tomorrow to look at this some more.


beekaytee - May 08, 2011 5:25:53 pm PDT #16716 of 25501
Compassionately intolerant

I am being socially (media) awkward and I don't know why.

Every tweet ends up double posting, which leads to double facebook posts as well.

I like the convenience of the cross-posting, but am embarrassed by the doubling up.

Anyone know how to fix this? Does having the autoFB function on make this happen?


flea - May 09, 2011 5:48:48 am PDT #16717 of 25501
information libertarian

Things that are annoying me about Firefox 4: it's harder to get to the list of bookmarks; there are things I use all the time that I don't want on my toolbar (like here). And when I right-click, they've switched the positions of the links to open in a new tab vs. a new window. Now tab is first, which is better, but I am so used to going to the second link automatically that I keep opening things in new windows which is annoying!