Recent Updates Page 63 RSS Toggle Comment Threads | Keyboard Shortcuts

  • Nuno Morgadinho 4:16 pm on March 15, 2006 Permalink  

    Most things actually work! 

    Seriously, how hard can it be to configure a proper “404 Not Found” in a web application? I’m not talking for a blog or some homepage, for that I couldn’t care less. But for a real web-application like on-line banking it breaks my heart to see the default IIS 404 page with the ‘Microsoft Support’ contact. Are these guys monitoring what’s happening with their application? I guess not..

    Setting up a 404 Not Found page with an e-mail form is not that hard and in these cases it makes all sense. You’d probably wanna say something like:

    > If you have a question or some feedback, please tell us!

    Or if you’re into something more emotionally appealing, and I’ll quote Joel Spolsky on this:

    > Most things actually work!

    Like Winamp said back in 2003 when Nullsoft shipped a new version.

    On a side note, did you read A closer look to gedit 2.14 already? It’s an interesting piece I think.

     
  • Nuno Morgadinho 2:16 pm on March 14, 2006 Permalink
    Tags:   

    Extracting WordPress: The Right Way 

    Yesterday I worked ten hours. That’s not bad, at least for me. From 15:30h-20h and then from 21:30h-2h. Today I’m taking the morning to relax and get my news “fix”.

    I must confess, this blog thing never quite worked for me. I always think too much before I write something and so spend a lot of time before writing anything and I can’t not always afford that. I got myself a blog in the first place because I wanted to be able to update my site on-the-fly and though this was the best way.

    People change. And that’s good. For example, until recently, I never seriously consider the chance of buying a Mac. And now I do, so you never know what will happen.

    Upgraded to Wordpress 2.0.2. I’m curious on how others are dealing with the plugin deactivation on the upgrade process. For example, for me, since I’m using Dokupress, while I’m upgrading, the posts fall back to normal syntax instead of Doku syntax.

    Also, when upgrading Wordpress, when you need to extract the WordPress package, if you issue tar within the blog directory you will end with a wordpress directory inside your blog, which sucks. Of course I could extract it and then ‘mv wordpress morgadinho.org’ but that isn’t sexy enough as I have other directories inside my blog directory. I tryed creating a symlink in ../blogdirectory called wordpress but then tar would destroy the link instead of following it.

    Then I found the -h option to tar that makes it follow symlinks and so this worked:

    $ ln -s morgadinho.org wordpress
    $ tar
    -zxvf ~/latest.tar.gz -h -C .
    

    Of course I could also talk about what I’m working on, but I’ll leave that for another day.

     
  • Nuno Morgadinho 2:53 am on March 13, 2006 Permalink  

    Administrator root password readable in Ubuntu Breezy cleartext on Ubuntu Breezy 

    Via diggdot.us, Ubuntu Breezy has a confirmed and critical bug that allows the first user registered password to be found by any user by reading the file /var/log/installer/cdebconf/questions.dat, which is world-readable. The problem does not affect the Dapper version.

    This means admin’s running Breezy will have some headaches the next couple of weeks. If you can upload a php/perl/etc file to the server you can read the password out of var/logs with fopen() and that means you’re done in many scenarios. Word of advise: don’t do something stupid. If you like security or even if you don’t, a note on your police file won’t help your curriculum.

    I’ve been using Ubuntu on my laptop for some time now and must say it never let me down. The guys did a great job. It’s a good install-and-go/Just Works distro and that’s what I need right now. Flawless package management, on-the-fly Gnome desktop, OpenOffice, Flash, Evolution 2.5.x, etc.. I don’t see this bug affecting the popularity of Ubuntu but then again we all now that critical servers are not their market.

    References: * https://launchpad.net/distros/ubuntu/+bug/34606

    * Follow thread on ubuntuforums.org

    Note to self: Subtract 4 days and you get the day Google acquired Writely. As Russell Beattie pointed out, we’ve got ourselves another winner in the Web 2.0 Acquisition Lottery..

     
  • Nuno Morgadinho 7:17 pm on March 12, 2006 Permalink  

    ReiserFS undelete/data recovery HOWTO 

    My girlfriend just accidently removed some files from her ReiserFS home directory using “rm -rf ./path/to/some/dir *”. Notice the space between dir and *? She didn’t. Oh well, time to recover that shit back.

    Once you realize that you’ve lost data, don’t do anything else on that partition - you may cause that data to be overwritten by new data.

    0. Unmount the partition from where to recover deleted files:

         umount /home
    

    1. Create partition copy:

          dd if=/dev/hda7 conv=noerror > /hda7.img
    

    2. Set up device containing copy of partition (created in 1.)

          losetup /dev/loop/0 /hda7.img
    

    3. Rebuild FS tree, performing a thorough partition scan and logging to /recovery.log file:

    reiserfsck --rebuild-tree -S -l /recovery.log /dev/loop/0
    

    (4. Check written log file)

          (less /recovery.log)
    

    5. Create directory for mounting recovered partition:

          mkdir /recovery
    

    6. Mount recovered partition in directory created in 5.

          mount /dev/loop/0 /recovery
    

    7. Access recovered partition’s lost+found directory and look for files:

          cd /recovery/lost+found
    

    8. If not there (7.), then look for in original directory:

          cd /recovery/
    

    9. Remount /home partition:

          mount /home
    

    10. Copy recovered files from 7./8. to /home/

          cp -r /recovery /home
    

    11. Unmount recovered partition

         umount /recovery
    

    12. Detach recovered partition device

         losetup -d /dev/loop/0
    

    References: * ReiserFS undelete/data recovery @ antrix.net

     
  • Nuno Morgadinho 12:50 am on March 8, 2006 Permalink  

    Do you 'search?q=CSS' ? 

    A recursive item I search on the web for is Cascading Style Sheet, also known as CSS. I guess most of the information on the subject can easily be found on the net and because of
    that I haven’t acquired any reference book yet. But I should, because there’s more to know than it seems.

    Take CSS positioning (position:) for example, what does absolute, relative or
    static positioning really mean? Or what’s the difference between using em, px ou % as an unit? What’s a container? Div, span, id, class? Well.. you get the point..

    On my wishlist about this topic I have the book “The Zen of CSS Design : Visual Enlightenment for the Web (Voices That Matter)” but there’s also one by O’Reilly called “Cascading Style Sheets: The Definitive Guide, 2nd Edition” that seems pretty good.

    There’s certainly more than one good reference out there on the Web about CSS but surely not too many in Portuguese, as this Brazilian site called maujor.com. I totally recommend it as I’ve found priceless information there.

    Although most of the time ommited, CSS is definitely part of the second phase of architecture and application development for the World Wide Web now beginning to be known as the Web 2.0 phenomena and it certainly plays an important role, we all agree on that.

     
  • Pages: Prev 1 2 3 ...54 55 56 57 58 59 60 61 62 63 64 Next
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel