Monday, July 26, 2010
absolute positioning not working in firefox
position: absolute works in Firefox. Most likely the top and left attributes are not specified. An important point to note here is that firefox does not allow tags like top: 124 px; note the space between 124 and px. Or may be it is an issue with the padding of the parent element. Either way firebug is an excellent tool to debug css issues in firefox and chrome
Labels:
css
Tuesday, July 20, 2010
Virtualbox Bridged Adapter Linux
Host OS: 2.6.32.12-115.fc12.i686
Guest OS: Windows XP
Error:
NAT connection is working fine and mine is a wired connection but when I try to connect via bridged adapter I get
Solution: Run following as root before launching VBox
Guest OS: Windows XP
Error:
NAT connection is working fine and mine is a wired connection but when I try to connect via bridged adapter I get
Failed to open/create the internal network 'HostInterfaceNetworking-eth0'moreover
(VERR_SUPDRV_COMPONENT_NOT_FOUND)
-bash: /etc/init.d/vboxdrv: No such file or directory
Solution: Run following as root before launching VBox
insmod /lib/modules/`uname -r`/extra/VirtualBox-OSE/vboxnetflt.ko
insmod /lib/modules/`uname -r`/extra/VirtualBox-OSE/vboxnetadp.ko
Labels:
virtualbox
Virtualbox Shared folders Windows XP Guest
- Install VirtualBox guest additions from http://dlc.sun.com.edgesuite.net/virtualbox/
- Share the folder from devices menu of virtualbox window
- Windows Explorer->tools->folder options->select classic windows
- Windows Explorer->my network places->entire network->virtualbox shared folders
- For write access add a new network places with a different name from the name given in VirtualBox
Labels:
virtualbox
Saturday, May 29, 2010
Thursday, May 13, 2010
Wanna learn something new? Ensure u know the prerequisites.
As a first step of learning ZF I've developed a simple blog after I've finished the quick start guide. Unfortunately, I did not care much about the RewriteEngine. So, when I tried to include an external css file I got an error saying
If u are new to ZF I recommend to get the basics of mod_rewrite
Invalid controller specified (css)Now I tried creating
css/global.cssin my document root (with out any content). Even that did not help. As a final resort I tried putting some text into css/global.css And viola!! That worked.
If u are new to ZF I recommend to get the basics of mod_rewrite
Labels:
Zend
Wednesday, May 12, 2010
Logs are there for a purpose
If u ever encounter 500 Internal server error, 403 Forbidden, 404 not found errors the best place to check will be the log files. Moreover ensure you use RewriteLog every time You use RewriteEngine
Labels:
Apache
A chain is only as strong as its weakest link
In the qualification round of GCJ '10 there was a problem involving integers ~1050. I had to use gmp_* for that. Every thing worked fine for a small data set. But the program gave unexpected results for a large dataset. Then I realized that I've used mod in my code. Replacing that with gmp_mod did the job.
Labels:
PHP
Subscribe to:
Posts (Atom)