Harvard Business School of Echec

Aller au contenu | Aller au menu | Aller à la recherche

lundi, 5 mai 2008

Build a deb package with debug info

I often find the need to rebuild a package with debug symbols (if no -dbg is available).

sudo apt-get build-dep <package>
apt-get source <package>
cd <package>
# eventually patch sources
DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage -rfakeroot -uc -us
cd ..
dpkg -i <package>.deb

Et voilà :) Now i can gdb it or run sysprof. (It's also a very fast way to start hacking on a program)

mercredi, 10 octobre 2007

Internet Explorer sucks

Today, I'm working on setting up a new HTTP 403 error page on a web proxy: this is what the user gets when access is denied by ACL. I've improved the error page to display URL, date, username, etc so i can get more meaningful messages from the helpdesk. Users are running Windows XP SP2.
Here's a silly IE6 bug:

  • when the URL is HTTP and is blocked by the proxy, the proxy sends a 403 with an error page. The page is correctly displayed.
  • but when the URL is HTTP tunnel (=https://), the proxy still sends the 403 error page but IE6 truncates the display to the first 1024 bytes...


So get and of course run .

mercredi, 5 septembre 2007

JhAutobuild

JhAutobuild provides jhbuild logs on Debian Etch amd64. That's pretty useful :)