Archive for November, 2008

Security settings in cmd

Windows Explorer wasn’t responding well to a shared folder, so I was using cmd to quickly access what I wanted. Turns out I needed to change security settings on a folder to enable another domain user to access it. Then I realized I didn’t know how (in cmd). The network was local so I had no Internet access to help me.

Now that I have, I easily found the answer to be “cacls”. Looking at the syntax help I should be able to reproduce what I do with the GUI on the command line.


Section page orientation in OpenOffice Writer

Used to Microsoft Word’s style of creating a single document with different page orientations (portrait/landscape), I was having much trouble doing the same in OpenOffice Writer.

In Word, you could insert a new section, and go to Page Setup to switch the section page orientation to landscape.

In Writer, a section has a different meaning, although it could be used for columns as well.

To do the same in Writer, you have to:

  1. ‘Styles and Formatting’ box, click ‘Page Styles’.
  2. Right click on ‘Default’, select ‘New’.
  3. Name it ‘Default Landscape’.
  4. change the ‘Next Style’ to ‘Default Landscape’.
  5. Click on the ‘Page’ tab and set the orientation to Landscape.
  6. Click ‘OK’.
  7. Create another style called ‘Default Portrait’, this time setting the orientation to Portrait.

Now you can switch orientation by inserting a page break and selecting a different page style.




Had a first experience with a 2Wire mio box last Saturday, when I was helping my niece set up her broadband connection. The box is essentially an ADSL router-modem with VoIP features built in.

Similar to a typical ADSL setup, you hook up the power, microfilter, phone line and ethernet cable, and your PC should pick up a DHCP address. Launch the gateway IP into the browser and you’ll get into the setup screen. From there you can get to a familiar page with PPPoE configuration.

One good thing about its default setup is the wireless enabled by default, with WEP. The default WEP key is printed on the box itself.



Wonderful tutorial about OSGi. Solves a few mysteries (to me) about Eclipse plug-ins.

In summary,

  • OSGi is a Java-based architecture for developing/deploying modular components. Such components should be able to be deployed without restarting the container.
  • These components are known as “bundles”.
  • Eclipse plug-ins are based on OSGi bundles, so every plug-in is a bundle. Eclipse uses Equinox, which is the reference implementation of the OSGi Service Platform version 4.
  • A bundle needs to have an “Activator”, which implements start/stop methods to handle the bundle life cycle. A bundle also needs to have a manifest, which describes the bundle and points to the Activator.
  • OSGi also helps to manage dependencies through package visibility. Bundles specify which packages to export, so implementation packages can be hidden from bundle clients.