Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Blog Comments posted by uudruid74

  1. m. subdomain is an outdated technique to deal with mobile websites.  use bootstrap unsemantic foundation or another mobile css framework.


    OK ... here's a question for you.  How do you detect if a user is using a handheld?   In most cases, you don't need to know.  But what if you actually needed to know to hide certain elements, such as instructions to press a particular key combination or something that made no sense on a handheld.


    CSS defines @media handheld for this purpose, but browsers don't support it!  I ended up making 2 CSS files, one I dropped into my /m folder using the above.  This lets nginx do the browser detection and return which CSS sheet to give to the user.  99% of the CSS is a different file which is symlinked to appear in both directories.


    It may not be an elegant solution, but if anyone knows of another way to do handheld detection, I'd love to hear it!  And I like the nginx hack better than using javascript.  This is more or less pure CSS.

  2. Oh, it wasn't the point to do a whole website.  That's what /joomla was for.  Yes, I could make the whole site in joomla, but that still leaves little details like custom error pages.   I wanted a method that was simple, no javascript, no external frameworks to learn, that would handle the static /index.html and error pages and anything else that I felt I wanted to add outside the joomla framework.  Yes, if designing a large website, its better to use dynamic content rather than colorful webserver tricks (hence why the title is "tricks" and not "best practices").  However, I hope people will make sure that they handle that "Request Desktop Site" checkbox in whatever solution they choose.  I should be able to click that checkbox and turn my phone sideways to get the exact same site as on a desktop.


    In fact, things like error pages should display properly on a mobile but shouldn't use javascript or contain any sort of dynamic content.   I'm really thinking of adding a "Contact" page that is outside the Joomla CSS.  Too often I see sites that are broken, and you can't get into the site to reach the Contact page to tell the owner its broken.  Some things should be simple, and I'm NOT going to learn any of those frameworks you mention.  Thats for web developers.  I'm not!

  3. Most of that is simple (dunno about Xen).  Build a test system and then generate the binary packages, either from the running system or a subsequent rebuild with -e -B.   You can then install it all to the new USB drive with -g --root .  Not sure if I missed a step.  You might also want to look at the pentoo project.  Its a similar tool based on gentoo for penetration testing.


    For rescuing a system, I highly recommend safecopy instead of dd.   Its very smart about avoiding sections of a failing disk that have physical errors.  It will come back and read them later, even using low-level access if it can.   Basically, where dd would die, this will skip that section to avoid doing more damage and then come back later.  http://safecopy.sourceforge.net/

  • Create New...