Skip to main content

Posts about web

Better styling bookmarklet

Some sites that I like a lot for their content, have zero styling on them. I find it pretty hard to read when the lines are long and I have to read all the way on my screen.

I had a simple bookmarklet until now that just changed the width of the page.

document.getElementsByTagName('body')[0].setAttribute('style', 'width: 600px')

Kamal shared with me a recommendation for 7 simple styling rules that will make pages easier to read. I liked them, and modified my bookmarklet to use these rules now.

better-websites.gif

Drag and drop the link below onto your bookmarks bar if you want to use it.

Better website

The code in a readable format is below.

// Create new stylesheet

(function() {
    // Create the <style> tag
    var style = document.createElement("style");

    // Add the <style> element to the page
    document.head.appendChild(style);

    // Add rules from bettermotherfuckingwebsite.com
    var sheet = style.sheet;
    sheet.insertRule("body{ margin:40px auto; max-width:650px; line-height:1.6; font-size:18px; color:#444; padding:0 10px; }");
    sheet.insertRule("h1,h2,h3{ line-height:1.2 }");

})();

Update [2016-06-07]: baali pointed me to Firefox's Reader View which works well too.

Error: Missing one hebrew character

Dear owner-of-a-random-web-startup,

Thank you for starting your brand new, awesome web service. But, please don't expect me to use it, if you ask me to have a password with atleast one upper-case letter, one numeral, one symbol and one unicode hindi character and 20 hebrew characters. Is it really so essential to enforce such complicated rules on my passwords, making it difficult for me to remember what password I used? Isn't OAuth and OpenID so much easier to use? If you really want to enforce such complex rules on my password, at least show the arbitrary rules you enforce on me, at the login prompt too!

Sincerely, A frustrated-web-monkey

org2blog on the web

Well, it's been a week of lull on my blog. Not that I'm very busy. But, just didn't have anything to post. I was feeling jobless today and searched the web for org2blog users. Here is what I found.

  • This is a test post from org2blog
  • Posting from emacs and org-mode
  • Vim vs Emacs, or why it really doesn’t matter
  • Posting subtree from org-mode buffer (take 2)
  • Here’s a test post to wordpress for Org2blog – an Emacs plugin
  • Primeiro post usando org2blog
  • Emacs中绘图- ditaa篇
  • org2blog on identi.ca
  • Marcel van der Boom – StatusNet

I'm back

After a short break, I'm back to blogging! A few things have changed meanwhile. A lot haven't.

  • Noetic Nought shall now be called Rustic Reverie.
  • The Blogs I read page is now manually populated. More pages might be coming soon.
  • My web presence has almost been reduced to just this blog. I hope to be blogging more often this time around. I guess I'll have shorter and more frequent posts. "Release early, Release often."
  • I've been inspired by Sacha Chua and her wonderful blog. She puts up anything that -
    • she may look up in future.
    • could be remotely useful to anybody on this planet.

    I like her idea of "thinking of writing as sketching". "Keep repeating yourself, until the core message floats to the top". It feels similar to the idea - "Release early, Release often."

  • Also, Thanks to Madhu and Vattam who set an impossibly high standard by having their resumes and letters of recommendations and other "personal" stuff on version control on public repositories.
  • All my posts will be made from org2blog - a little org-mode based client that I hacked up. Emacs and Org-mode all the way! This is the first post by me (and probably anybody) from org2blog!