www.netsi.dk

"The internet is just a layer on the real world" (don't forget that!)

XSLT transformation on Mac OSX

The startup screen of Transform

As I am now on Mac I am on a constant search for the tools I miss from my time on Windows. I do some offline transformation as I implement websites in for instance CMS.

I often get the XML from the CMS, download it and build the XSLT to transform the raw XML into . Back in the old days where I used Visual Studio every day on Windows I could do XML transformation in there, I could also single step and more nice stuff.

On Mac I use Sublime Text which I have found such an option for – so I tried to search the Apple App store for a tool to help me. I discovered “Transform” by Niel Ang which has it advantages. I will update this blog post with more notes about the product as I discover them. For now I have discovered this:

* Works dynamically and reacts to file changes
* Works with files, so it can be used with any editor
* Has a preview option (of transform result), I have not yet found out how to do this, which is due to my rather thin knowledge about running a web server on my mac.
* As with other purchased apps you may use it on more than one device

You can find information about the product here: http://neilang.com/transformapp/ where there is also a link to appstore. I find the price 32 DKK / 5 $ an okay price.

Share

It’s a dream: Serverside javascript!

I know that nothing is perfect, but today I saw a server running ! It is based on the mozilla javascript engine which means that it understands the same level of javascript that Firefox does!

So is this a dream?
Well to start with I love javascript! It’s so flexible and fits very well for the internet. With the many very APIs appearing nowadays – like , prototype and other – you would be able to use the same terms, methodes and datastructures on both client- as well as server-side! Google and Yahoo are building serious javascript free APIs which you simply use on the server rather than on the browser.

I just watched a video showing an example where a RSS feed is fetched as XML, transformed using and added to the DOM using various javascript APIs. Server side that is!

You would be able to manipulate the DOM using javascript syntax and APIs before the page is returned to the browser.

But how do I get it?
Well you can get locally by downloading Aptana framework, which is also very powerfull in general – even if you do not want to play around with serverside javascript.

It is mentioned that it has its own JAXER server, not sure if it means that you will be able to host it only some places… time will show! For now I keep on dreaming!

Share

Snippets: Dynamicweb snippets

If your are working a lot with the CMS system you will find these snippets very handy! I have allready been published a very useful “eval window, where you can see a description about how to “install” it in your browser. Below are five other snippets targeted for users of Dynamicweb CMS.

I have choosen to set the snippet in as a link on each word, so what you need to do to get the actual code is to right click and choose “Copy destination”. On your clipboard the snippet will be then to use as I wrote in the eval window“.

Here goes:

  • Log off – Use this to logoff a an extranet user
  • Admin – Open the ADMIN () of the current Dynamicweb CMS site
  • Empty cart – Well… Empty the shopping cart
  • Save Template XML – Will add “savetemplateXML=true” to the current page, which will make Dynamicweb CMS save the XML in the respective template folders
  • GetImage – Will open the “Get Image” URL generator of your Dynamicweb CMS – very usefull!

Oh, and You ofcause can right click the link (snippet) and choose “Add to favourites…” :-)

Share

Embedding video on a website – help!!! It started off good at "gotoandlearn.com – Free video tutorials by Lee Brimelow on the Flash Platform"

I simply want to on my !!!
Okay  I maybe naive – though I would prefer to say “hopefull”. Goto-and-learn should be the right site for me as I rather desperat seek a simple free cross browser pattern to follow in my search for video embedded on a website!

Time:
14:57  I enter the site.. A related site
14:59  I try the video tutorial: “ActionScript 3 Video Basics”.. Oh dear, there goes the “free” part of my goal: Speaker: “..have flash CS3 open”, “…there is ofcause the The flv playback component…”, hmm… I will skip this tutorial (15:04) and google for “flv playback component”

15:10  Hmm… No hits, I will try to go for a NON-adobe (read: flash) soloution… But still it should be free and cross browser..

Sliverlight?

Perhaps Silverlight? Hmm… Is that a good idea? or will people visiting my site with embedded silverlight simply drop-out as they probertly not have silverlight installed? I am afraid so.. So for now I will not use silverlight…

15:17 Close to giving up… Ah, I try my network on MSN… Asking a friend… away… Try another…  away… This is really a sunday blues :-(   3rd person… away… Wow! Someone was alive, he knew a friend who knows about how to embed video for free… Otherwise he says that JAVA applets could be a path… I mention silverlight… He says that sliverlight hits around 0.1% of the users and suggests SVG. I note that SVG is primarely Firefox. He says that for the next couple of year flash will probertly be the answer to video on web. He promises to talk to his friend the next day, but this has become a challange for me – so I will continue the search!
He ends with suggesting that I look at “javafx” – wooomm off I am to a new Google search on that!

15:32 Google search for “javafx”… Oh dear, the three letters “JavaFX SDK is available now” scares my (= a heavy path). (15:34) The first friend appears, I ask him the same question: “Embed video cross browser without it involving non-free software! Any experience?“. Wating for his reply I try to read about javaFX. (15:42) Hmm… Well, I used to use Java some years back, and I admit it is a serious piece of tool – but, it is not 1-2-3 for me, so I will drop the “JavaFX” path…

15:44 I hold on to the Java Applet path, perhaps I can find a “free Applet video player” – here is what Google search returned: “YouTube Video Applet” was the first hit, but oh dear: “Buy it for $5 – or – Try it for FREE!”… God! I hate that definition of “free”: Free for a limited period! Seriously – that is obuse of the word “Free”… I try one of the other hits: “Inline MPEG – 1 – player in JAVA“, that sounds basic! And it was… I do not have a way to create MPEG 1. My digital video file is is WMV – so I guess I sould make that a part of the search!

15:50 Search for “embed wmv cross browser free”… I am desperate and think that I will perhaps have to choose to dump the cross browser part of my mission… I try a website saying: “Embedding a Windows movie (.wmv) in a page“. Oh dear, even before I start to read the … I look to the right in my Windows Live Writer which I use for writing this .. Here is what I see:

image

Even if you do not understand danish I think that you understand my drift: My live writer says that it will allow me to embed a video clip!!! :-) I will try it now! (16:00) Oh dear, oh dear – it will not let me point to a file, and if I point to an URL it will not allow just any URL. Only special video sites are allowed, and no need to mention: Microsoft Soapbox is one of them.. :-(

16:03 Okay! I will NOT give up! I go back to the “embedding a windows movie…” mentioned above… 16:06 working 16:10 Done! Well the final soloution was to use a method which I have previously used on the site! It is almost the same as on the “embed…” site, but, well better! :-)

Conclusion after 1 hour and 15 minutes
Not everything is easy to locate and solve simply by googling the net. If you go for mainstream soloutions you probertly will find it, but if you have special needs, like not wanting to invest $$ in for instance Adobe Flash CSxxx then you are probertly on your own!

I am however not without hope for the future! Free, easy and flexible embeding of video will appear in near future as the net is driven by users – and even Google cannot make everybody use the YouTube path to embed video on the net. Things like Silverlight, Java Applets and other future technologies will offer such tools, should Adobe FLV and Google get to be too big on the net, that I am in no doubt about!

And finally – my code
It would be a shame not to show you the actual code which solved the task for me. First of all you can see the running video here. And the code is here:

<objectd id=”MediaPlayer” width=”320″ height=”240″ classid=”CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95″ standby=”Indlæser video, vent venligst…” type=”application/x-oleobject”> <param name=”FileName” value=”video/spildVin.wmv”> <param name=”ShowControls” value=”false”> <param name=”ShowStatusBar” value=”false”> <param name=”ShowDisplay” value=”false”> <param name=”autostart” value=”true”> <param name=”playcount” value=”9999″> <embed type=”application/x-mplayer2″ src=”video/spildVin.wmv” mce_src=”video/spildVin.wmv” playcount=”9999″ name=”MediaPlayer” width=”320″ height=”240″ showcontrols=”0″ showstatusbar=”0″ showdisplay=”0″ autostart=”1″> </embed> </object>

The sites I came across (usefull or not for me!)

Share