Viliv S5 Screen Rotation Issue Solved

technical

A few months back (basically when I first got my Vilv S5) I had encountered a problem with win7 not rotating the touch screen. Well, finally solution has popped up provided by another user not from Viliv.

http://forum.pocketables.net/showthread.php?p=29555#post29555

We could be waiting forever for Viliv to release some updated drivers. for now this will be the best way to get portrait mode fully supported on the S5.

Now I can really enjoy scrolling up and down some blog websites.

No Comments

What’s the big deal with iPod Touch 3.0 / Iphone 3.0

technical

looks like everyone’s scouring the net for jailbreaking and ways of downloading 3.0. I can’t say that I’m too excited about this new firmware version but if anyone is still looking for it. google iPod2,1_3.0_7A341_Restore.ipsw and you should find downloadable links straight from the apple.com server.

No Comments

3D Camera transition to Version 2

3D

Finally decided to take the time to document my transition to my next set of cameras. A new harness is in the works. for now a straight swapping of cameras was done.

Best thing about using these newer camcorders is the flash based storage. The footage is already broken down to seperate files by when the camera was used. Previously, I had to seek to the approximate time to get to a particular shooting. Now it can all be easily categorized. Post production video syncing is still necessary since both cameras don’t start syncronously. The use of newer batterys is a big minus for me. The new batteries with integrated circuitry makes buying OEM ones a bad choice. No digital reading of how good the battery is.

No Comments

Viliv S5 Screen Rotation Issue

technical

It’s been a couple of weeks now using the Viliv S5 on Win7 RC. So far I’ve been unable to make the touch screen rotate along with the screen to portrait mode. I tried moving back to the original windows xp but it was missing tablet pc options. I went as far as trying to install a hack to get tabletpc components however it lacked some language file so I gave up there. I tried installing from a tablet pc 2005 disk only to find that I get blue screened during install. I already knew this ment that I needed sata drivers as these windows disks predates sata support in motherboards. As well, I tried using eeeRotate which bundled a mouse rotator. That totally made my touch screen go erratically. For now, we’re stuck waiting for Viliv to come out with an updated mouse/Video driver to fully support screen rotation.

No Comments

OCZ Rally 2 16gb usb stick dead

technical

After about 20 usage spanning of about 3 months, my OCZ usb stick decided to die. Fortunately it only held my windows 7 install. I’ll take this time to bring up online storage solution such as Mircrosoft’s Skydrive. http://windowslive.com/online/skydrive?ocid=BAN_MSCOM_HPF_WL_SD_01072009. 25 gb of online storage. I recommend users get into the cycle of storing copies of files online. I can conceivably create a windows service which would backup “My Documents” folder to the online storage of choice. Skydrive, or Webhosting (using WebDAV, or WebService)

No Comments

Viliv S5 Unboxing

technical

Finally the S5 has arrived! I was lucky enough to get the first batch from Dynamism. My choice on an Atom portable bottomed down to a choice between the Sony Vaio P (which I got my hands on at the CES 2009 earlier in the year) or the Viliv S5. Netbook vs Umpc. I missed my old Samsung q1 and the subsequent replacement to the Asus R2H left a very bad impression in the future of UMPCs. Regardless, my choice was for the Viliv S5. a smaller UMPC with haptic feedback. First thing off, I will backup the existing OS and replace it with Windows 7 RC. As well, I will attempt to install a Hackintosh build.

No Comments

Microsoft Exchange Server 2010 Beta is available for download

technical

The switch from Exchange 2003 to Exchange 2007 wasn’t compelling. Complete re-write to only 64bit architecture only, and higher system requirements particularly in the memory. Hopefully Exchange 2010 will offer smaller footprint and performance improvements to warrant an upgrade. One of the first things I will do is to test if Exchange 2010 performs well within VMware or Virtual Server.

http://www.microsoft.com/exchange/2010/en/us/trial-software.aspx

No Comments

Pair of Canon HF200 unboxed

3D

Pleasantly surprised to see that I got my 2 Canon HF200 today ahead of it’s release date from Dell. This pair will replace my budget camcorders for future 3d filming. Only disappointment I have so far is the fact that it doesn’t come with built in memory.

No Comments

ATSC in Vancouver with Windows 7

technical

CBC Vancouver
CBUT-DT
Digital Channel 2-1
Assigned Frequency 58

GLOBAL BC
CHAN-DT
Digital Channel 8-1
Assigned Frequency 22

CTV BC
CITV-DT
Digital Channel 32-1
Assigned Frequency 33

No Comments

Dynamic PDF Generation with Cocoon 2.2.0

technical

A couple of things are different from using cocoon 2.1 to cocoon 2.2. Compiling and rendering to a war file for use on tomcat is all done through maven2. The following is a summary that I have gone through and confirmed working as of the time of writing.

apt-get install maven2

mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org

Define value for groupId: : local.cocoon
Define value for artifactId: : myBlock1
Define value for version:  1.0-SNAPSHOT: : 1.0.0
Define value for package: : local.cocoon.myBlock1

cd myBlock1

mvn jetty:run

http://192.168.0.1:8888/myBlock1

vim src/main/resources/COB-INF/sitemap.xmap

throw the following inside the pipline tags

      <map:match pattern="myFile.xml">
        <map:generate src="myXmlFile.xml" type="file"/>
        <map:serialize type="xml"/>
      </map:match>
      <map:match pattern="myFile.html">
        <map:generate src="myXmlFile.xml" type="file"/>
        <map:transform src="myHtmlFile.xslt" type="xslt"/>
        <map:serialize type="html"/>
      </map:match>
      <map:match pattern="myFile.pdf">
        <map:generate src="myXmlFile.xml" type="file"/>
        <map:transform src="myPdfFile.xslt" type="xslt"/>
        <map:serialize type="fo2pdf"/>
      </map:match>

create myXmlFile.xml in the same folder as sitemap

vim src/main/resources/COB-INF/myXmlFile.xml

<?xml version="1.0" encoding="UTF-8"?>
<content>test</content>

create myHtmlFile.xslt in the same folder as sitemap

vim src/main/resources/COB-INF/myHtmlFile.xslt

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
      <head>
        <title>My second XML Pipeline</title>
      </head>
      <body>
        My second XML Pipeline:
        <xsl:value-of select="/content"/>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

create myPdfFile.xslt in the same folder as sitemap

vim src/main/resources/COB-INF/myPdfFile.xslt

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
        <fo:simple-page-master master-name="page"
          page-height="29.7cm"
          page-width="21cm"
          margin-top="1cm"
          margin-bottom="2cm"
          margin-left="2.5cm"
          margin-right="2.5cm">
          <fo:region-before extent="3cm"/>
          <fo:region-body margin-top="3cm"/>
          <fo:region-after extent="1.5cm"/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name="all">
          <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference
             master-reference="page" page-position="first"/>
          </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="all">
        <fo:static-content flow-name="xsl-region-after">
          <fo:block text-align="center"
            font-size="10pt"
            font-family="serif"
            line-height="14pt">page <fo:page-number/></fo:block>
        </fo:static-content>

        <fo:flow flow-name="xsl-region-body">
          <fo:block font-size="36pt" space-before.optimum="24pt"
           text-align="center">
             My second XML Pipeline
          </fo:block>
          <fo:block font-size="12pt" space-before.optimum="12pt"
           text-align="center">
           <xsl:value-of select="/content"/>
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
  </xsl:template>
</xsl:stylesheet>

edit pom.xml to include FOP
vim pom.xml

    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-fop-impl</artifactId>
      <version>1.0.0</version>
    </dependency>

mvn compile

mvn install

cd ..

mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org

Define value for groupId: : local.cocoon
Define value for artifactId: : cocoon-webapp
Define value for version: 1.0-SNAPSHOT: : 1.0.0
Define value for package: : local.cocoon.cocoon-webapp

cd cocoon-webapp

vim pom.xml

add the dependancy
      <dependency>
        <groupId>local.cocoon/groupId>
        <artifactId>myBlock1</artifactId>
        <version>1.0.0</version>
      </dependency>

mvn compile

mvn war:war

cd target

upload this war file to your tomcat server.

load the following url

http://192.168.0.1:8180/cocoon-webapp-1.0.0/myBlock1/myFile.pdf

http://192.168.0.1:8180/cocoon-webapp-1.0.0/myBlock1/myFile.html

http://192.168.0.1:8180/cocoon-webapp-1.0.0/myBlock1/myFile.xml

if all three loads, you have a dynamically generated pdf! (and html and xml)

next step is to force cocoon to retrieve the files remotely, by doing so, the content can be retrieved from a database of choice using your own desirable programming language of choice! In my case php+postgres/mysql and .net+sql/access

No Comments
« Older Posts
Newer Posts »