Posted by: monica | July 13, 2010

Modify resources of windows file

Tried a very useful tools to modify windows file.

Resource Hacker is a small but excellent tool to modify system files like DLL, EXE, CPL, etc. You can even change Windows look by editing various Windows files and replacing their resources using Resource Hacker.

Nice tutorial here

Posted by: monica | July 13, 2010

CLI to start/stop VMWare Server on Windows

Command to start VMWare Server:

cd "C:\Program Files\VMware\VMware Server"
vmrun -h https://localhost:8333/sdk -T server -u winadmin -p xxx start "[standard] SLES10-vTiger/SLES10-vTiger.vmx"
vmrun -h https://localhost:8333/sdk -T server -u winadmin -p xxx list

Command to stop VMWare Server:

cd "C:\Program Files\VMware\VMware Server"
vmrun -h https://localhost:8333/sdk -T server -u winadmin -p xxx stop "[standard] SLES10-vTiger/SLES10-vTiger.vmx"
vmrun -h https://localhost:8333/sdk -T server -u winadmin -p xxx list
Posted by: monica | August 4, 2009

Create progress bar image

Free service to generate the progress bar image dynamically with different choices of images, background and foreground colors.

Posted by: monica | July 10, 2009

openSUSE Network Install over PXE-Boot

I have one Compaq Armada M300 without CDROM/DVD drive and unfortunately the one and only USB port does not work. So, I guess this is the right time to try out openSUSE installation over the network using PXE boot.

Below are the steps for installation of openSUSE 11.1:

PACKAGES INSTALLATION

1. Install all required packages:

  • tftp
  • yast2-tftp-server
  • dhcp-server
  • yast2-dhcp-server
  • syslinux

CONFIGURE TFTP Server

2. Open YAST, go to Network Services > TFTP Server

  • Click on ‘Enable the service’
  • Assign ‘Boot Image Directory’ : /srv/tftpboot

CONFIGURE dhcpd

3. Edit /etc/dhcpd.conf (backup the original dhcpd.conf file)

Content of dhcpd.conf


default-lease-time 600;
max-lease-time 7200;
ddns-update-style none; ddns-updates off;

allow booting; # Enable DHCP server for booting request only

option domain-name "example.com";
option domain-name-servers dns1.dnsserver.com;
option routers router.example.com;

# define rules to identify DHCP Requests from PXE and Etherboot clients.
class "pxe" {
 match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
}
class "etherboot" {
 match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
}

subnet 192.168.1.0 netmask 255.255.255.0 {
 option broadcast-address 192.168.1.255;
 pool {
 default-lease-time 180; # no long lease time required for booting
 max-lease-time 360;     # booted system does its own dhcp request
 server-name "192.168.1.50"; # set to ip address of TFTP server
 next-server 192.168.1.50; 

 filename "pxelinux.0";
 allow members of "pxe";
 allow members of "etherboot"; # allow etherboot, too
 range 192.168.1.201 192.168.1.211;
 }
}

4. Edit /etc/sysconfig/dchpd

Assign the interface where DHCP server listens to

DHCPD_INTERFACE=”eth1″

It is also possible to put “ANY” to listen to any interface

Start DHCP server:

#> rcdhcpd start

CONFIGURE PXE BOOT

5. Create a directory:

mkdir -p /srv/tftpboot/pxelinux.cfg

6. Copy file /usr/share/syslinux/pxelinux.0 to TFTP server home

cp /usr/share/syslinux/pxelinux.0 /srv/tftpboot

7. Copy following files from [OPENSUSE-DVD]/boot/i386/loader into /srv/tftpboot

  • message
  • initrd
  • linux

8. Copy the following file from [OPENSUSE-DVD]/boot/i386/loader into /srv/tftpboot/pxelinux.cfg

  • isolinux.cfg

Then, rename “isolinux.cfg” to “default”

All set and ready to go !! Fire up the notebook and enable the PXE boot, it will boot up directly over the network.

Type linux on the prompt to start installation. Adding textmode=1 will run installation in text mode which is better for the Armada laptop because it does not have a lot of memory for GUI installation.

The rest is just to assign the location of openSUSE installation source via HTTP, NFS, or FTP.

Reference:
http://en.opensuse.org/SuSE_install_with_PXE_boot

Posted by: monica | July 2, 2009

Inline editing for APEX report

There is a nice example of javascript code for inline editing and I thought of using it for APEX report. The javascript code is combined with AJAX call to update record in database.

Click here to see the implementation.

Posted by: monica | June 24, 2009

Make the web faster

Google has introduced tutorials on how to speed up website such as optimizing javascript code, php performance tips, etc.

Posted by: monica | June 18, 2009

Firefox extensions

Interesting Firefox extensions to use at work:

  • Firebug
  • YSlow (requires Firebug)
  • Tamper Data
  • Web Developer
  • ColorZilla
  • Talon (works with Aviary) – screen capture
  • Greasemonkey

Other extensions:

  • Mouse Gestures Redox
  • User Agent Switcher
  • MeasureIt
Posted by: monica | April 20, 2009

Align unordered list using CSS

By default, IE6 will wrap text in unordered list under the bullet point if the text is longer that the width of its container. After googling, I found very nice article about CSS to align text displayed using unordered list, and below is the CSS code I tried to make the wrapped text aligned:

#lNav-div {
margin: 5 0 0 0;
padding-left: 5px;
width: 150px;
}
#lNav-div ul {
margin-top: 0;
margin-left: 0;
padding-left: 18px;
text-indent: 0;
}
#lNav-div li {
list-style-position: outside;
list-style-type: circle;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
text-decoration: none;
}

The important thing is to put the list inside “div” tag and also use “padding-left” and “text-indent” for “ul” tag.

HTML code for the menu is as follow:

My menu<br/>
<div id=”lNav-div”>
<ul>
<li>Lorem ipsum</li>
<li>Nam non nulla quis erat fringilla congue</li>
</ul>
</div>

and, the result is:

unorderedlist

Older Posts »

Categories