Archive for August, 2007

portaloholic

Facebook is the next hip thing and almost all the people I know are using the portal for networking!

But I find few things about it really annoying, like the application addition thingy! Oh come on! why do I have to invite people to try out an application? Inviting same people over and over again!! Man! I have sent more emails through facebook to people, than I did normally through my entire year. Also not to mention at some point you do lose the interest of choosing the people you want to send the emails to and there are incidences when you end up adding people you never really intended to in the first place.

Having said that – i do not deny I have become some sort of facebook addict. ( its a usual thing for me! I am portaloholic, whenever new portals comes up, I get hooked. My addiction is like my habit of using too many exclamations in my text.. as if I have my eyebrows crazy glued to my forehead’s uppermost position! Amazed by how life functions at all !!)

point is – No point. its pure procrastination!

Comments (1)

WordprocessingML document by hand

Warnings:

  • You will have to have Word 2007 or sth that opens up *.docx file, or else don’t read this!
  • If you put a space inside the XML codes, I’m going to personally come down to kill you.. :D
  • Extremly geeky post, so proceed with caution!

Ever wanted to manually modify a base WordprocessingML file using Zip tool and Notepad ? This will make u a novice geek about ‘how package parts and relationships are stored in the XML files inside an Office Open XML Package’.

You’ll start by creating the entire package in a folder. Once you’re done creating the package, you’ll put them all in to a Zip file. After you rename the zip file to end in .docx you’ll have a complete WordprocessingML package. ;)

Create a new folder for the package:

  • Create folder named Package.
  • Create a new file named [Content_Types].xml in it. Add content type for rels files.

<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes” ?>
<Types xmlns=”http://schemas.openxmlformats.org/package/2006/content-types”> <Default Extension=”rels” ContentType=”application/vnd.openxmlformats-package.relationships+xml” />
</Types>

  • Save the [Content_Types].xml file.

Add the core.xml package part:

  • Create new folder named docProps inside package folder. Create core.xml file and put it this folder. Put this code in it!

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>
<coreProperties xmlns=”http://schemas.openxmlformats.org/package/2006/metadata/core-properties”><title xmlns=”http://purl.org/dc/elements/1.1/”>The file that I made on my own </title><description xmlns=”http://purl.org/dc/elements/1.1/”>This is a good example of how difficult things get inside word file.</description></coreProperties>

  • Open [Content_Types].xml and add add the code. This is to notify the new content type for the core.xml package part.

<Override PartName=”/docProps/core.xml” ContentType=”application/vnd.openxmlformats-package.core-properties+xml” />

Relate the document properties to the package:

  • Create a new folder named _rels in the package folder. Create a new file named .rels (Just save *.txt file with Save As . Rename doesn’t work).
  • Add this code to .rels file. This is to create relationship to the new /docProps/core.xml package part.

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<Relationships xmlns=”http://schemas.openxmlformats.org/package/2006/relationships”>
<Relationship Id=”rId1″ Type=”http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties” Target=”/docProps/core.xml”/>
</Relationships>

  • Save & close.

Add the document.xml package part:

  • Create a new folder named word inside the package folder.
  • Copy document.xml file attached with the post. Please copy the content of document.doc to a notepad file and rename it to document.xml.
  • Open the [Content_Types].xml file and add the code. This is to notify new content type for the document.xml package part.

<Override PartName=”/word/document.xml” ContentType=”application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml” />

  • Save the [Content_Types].xml file.

Relate the document.xml file to the package:

  • Open the _rels/.rels file and add this code to notify the relationship to the new document.xml package part.

<Relationship Id=”rId2″
Type=”http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument” Target=”/word/document.xml”/>

  • Save and close the .rels file.

Add a image to the package part:

  • Open package folder, create a new folder inside the word folder named media. place any image and name it as image1.gif file.
  • Open [Content_Types].xml and add a new Default content type for all gif files. Map gif files to the image/gif content type.

<Default Extension=”gif” ContentType=”image/gif”/>

  • Save and close the [Content_Types].xml file

Add a relationship between document.xml and image1.gif:

  • Open package folder >words > create another new folder named _rels. Create a new file named document.xml.rels (do it by Save As) in the new _rels folder.
  • Add a new relationship to this file that references media/image1.gif. Use the next valid Id which is rId1.

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<Relationships xmlns=”http://schemas.openxmlformats.org/package/2006/relationships”>
<Relationship Id=”rId1″ Type=”http://schemas.openxmlformats.org/officeDocument/2006/relationships/image” Target=”media/image1.gif”/>
</Relationships>

Add an external relationship to a website:

  • In document.xml.rels add another relationship that references http://myhomepage.com (or to any URL you like) as an external resource. Use the next valid Id which is rId2.

<Relationship Id=”rId2″ Type=”http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink” Target=”http://myhomepage.com” TargetMode=”External” />

  • The Id specified in this line is critical. The new document.xml file explicitly references this Id. The document will not load correctly if this Id is not correct. The TargetMode of External specifies that this resource cannot be found in the package (heheheee.. did I scare you?).
  • Save the file and close it.

Repackage the new document:

  • Select all the files in the package folder, right click them, and select Send To -> Compressed (zipped) Folder. (Note, target the .zip file inside the package folder)
  • Rename the new Zip file aWordFileImadeByHand.docx.

:D

Leave a Comment

Tunnel

I saw Roman holding his breadth while Eloi drove us through a tunnel on our way to Germersheim. I asked him and he said, it would grant you a wish! I am very superstitious and ever since I that, I made a wished with each tunnel. So far, I have selfishly wished for a better future. But I think its the present for which I should wish for. I have changed my wishes to something more attainable. I hope Allah would hear me now!

p.s. Sometime I really hate how I nag about things!

Comments (1)

Fight the Flood-

Why years after year we are spilling the milk in the same style and crying over it like a diaper baby? Why can’t we take advantage of what we can use this opportunity for? Where people see calamity, I see possibilities. I have thought of ways to fight this flood situation and I am hoping all my friends would help me add more ideas to these -

1. Town Centers: There shall be Ferries that would act as the town centers during the flood period. It would be a complete town center with sanitation system and water filtration unit. It would contain Market, Clinic, Work center, Prayer center also working as a community center, School and Navigation office. The families would take refugee in the ferry’s platform for initial weeks and later get reallocated in the boats. Boats would dock with the ferry and people would live in their own boat, like private quarter (we already have people living their entire life like that – Bede-Bedeni).

2. Work center: These work centers would vary in their own terms, specializing on the trades depending on which area it is currently located. But basic workshops would include boat makers, farmers with floating plantation, fishermen etc. The families would be ranked not according to their financial status but rather according to the labor that they can contribute.

3. Market: Trades would be done in terms of goods exchange. No ferries should try to deceive other ferry with lower grade material and if they do so, they would be banned from trading. However, they can call for help. If the production in a town center is on deficit, the centers can trade families and the flourishing center is bound to help the deficit center till they re-establish a level of stability in their system. During this time, the center stays docked and form a bigger center. The internal market shall also use the exchange method to sell food to the local families.

4. Clinic: – to be thought of -

5. School: At no point the schools should be postponed as it is important that the education remains stable. But the schooling system should not ( at any point! ) concentrate on creating book worm. The student shouldn’t be book smart but should be brought up as athletic (swim fast, dive long, climb tree faster, run like wind etc), they should have skilled hands in the time of disaster as functional tool with knowledge on how to purify water, how to send distress call, how to located food in stagnate water. They shouldn’t learn the first 12 lines of poem with punctuations and the author name, but realize when the poem of ‘Asmani’ tells their own story and feel sympathetic to themselves and help each other out.

6.  Prayer center: Faith is important thing that would hold the community together. There should be prayer center with divisions as appropriate, that would accommodate people to restore faith and heal people.

7. Navigation center: This is an administrative section that concentrate on keeping track of weather change and current location of the Ferry and send out distress call in case of emergency. This office would also call for emergency aid when required. Receiving aid would award a negative point to the ferry and this can be balanced when this ferry helps out another ferry. The ferry who was helped would award points to the Donner ferry.

Comments (1)

Textile

Its Simply great. I have come across working with textile and it basically converts marked-up text in to valid, structured XHTML. Forget all the hassle of remmebering the HTML tags and codes and all you do is put *_ or just h1. You recall all those annoying time when we had to replace the special characters by Hexa numbers? Well I got rid of all automatically-

:D I like learning new things! ( but I only learn when I’m forced to! =)

Also yesterday was my first day at new job place. Everything went good. I had the same feeling as I had at Angelbeat recruitment, that I am being overestimated! Told Teddy and he replied in French-English, ‘why are you so completely.. ee.. don’t think about that about yourself!’ Well thats something everyone keeps telling me- specially my Hubby – Asif.

Gotta get over this. Btw, I wanted to hear this song so badly yesterday that it almost felt like a thirst! But I was late to go home and early to return so didn’t get chance to listen- :(

Comments (2)

birth of it!

Lot of things are happening around and I am trying my best to keep my nose on the top of the water level. But the waves keep pushing me off my feet. I completed my first month with my new company and by the grace of Al-mighty, things are going well. Good thing about this place is, its small. It has cohesive group and allows lot of interactions and most importantly, your ideas are ‘paid attention to’.
The company has a very promising web-portal called DoXtop and I am quite enthusiastic about it. There is a very hard working committed group of people working for this project: DoXtop. Apart from my thesis I browse around this interesting web-portal and in my view its has immense possibilities! I bet when it goes public, users would agree with my opinion.

It is always nice to hear the companies from developed nations taking interest in expansion. Often it means more work opportunity for skilled people back home. I wish Jose all the best in this venture and hope it generates good news for both country and abroad.

Comments (2)