zen

zen of python

There is the Zen of Python written by Tim Peters. It is considered like a summary manual of python's philosophy. Here it is: >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is bet...

What is the most disruptive thing in a developer's day

What things interrupt developers during the day and really derail your progress? Phone calls, OS issues, Email, change control, meetings, announcements, etc. Which in particular make you change gears to the point that it takes a significant amount of time to return to a programming task. ...

Drupal - Zen Subtheme - Specify stylesheets for non-IE browsers

On Drupal 6 using a Zen subtheme, our custom stylesheet is beautiful and perfect everywhere except in ie7. Appears to be the :hover bug, where any link we hover over causes the main content area to jump over the left sidebar (is that called margin collapse or margin reset?). Tried setting min-height: 1% on all :hover and parent elements...

Zen Code + jQuery

Hi, I just read this article at Smashing Magazine (http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/) about Zen Code. Maybe there is any jQuery plugin for this? Might be good for json data inserting/templating. ...

Resharper Power toy Zen Coding

I have tried Resharper Power toy Zen Coding and found it can only generate code in one line, can it generate formatted code. for example i type in ul>li*3 it generate: <ul><li></li><li></li><li></li></ul> i want it format to: <ul> <li></li> <li></li> <li></li> </ul> ...

zen cart- pop up page on home

Hai I have a zen cart project. Here I want to show an Ajax pop up box (on body load). But I am new to Zen cart. Pop up must be shown only on the home page. Is it possible? Please help me. Thanks in advance ...

Blank Pages with Zen Cart v1.3.8 and PHP 5.3

I am trying to run a live Zen Cart store (version 1.3.8) on a my local machine which is PHP 5.3. I am aware of the incompatibilities between both versions and have dealt with it by applying the patch found here: http://www.zen-cart.com/forum/showthread.php?t=140960 I am able to login the admin side no problem, but when i navigate to the...

how can i pass zen cart auth to an admin page?

I am adding some pages to zen cart admin and I need to update order records from an external process. when i call the page externally it returns a redirect to the login page. how can i pass the auth data to the page so that it doesn't redirect? ex: www.domain.com/admin/do_update.php?admin_name=auser&admin_pass=apass my preference is t...

Order notification - GPRS/SMS etc

Hi, I am trying to make a site for a pizza shop.I am using Zen Cart. I wanted to know, what are my options in terms of notifying the shop in real time when there is a new order. I find an email notification inappropiate for a pizza shop. I am thinking of some sort of device (printer). I know a little about an GPRS/SMS printer. Can s...

The Zen of Ruby

Hi, I have written a Ruby gem named 'this'. Get it here http://rubygems.org/gems/this. Purpose of 'this' is to show quotes of 'The Zen of Ruby' whenever you "require 'this'". As I could not find any equivalent zen quotes for Ruby, currently I am using 'The Zen of Python' (PEP 20). Extremely sorry for using it :) Can you guys suggest me...

More Zen and CSS

I am still trying to get sprites to work right, and continue to be confused, since I can't seem to find an example matching what I want. Basically I have a series of 16x16 icons that need to go in row. I don't seem to be able to find the right element to use and set the background image on. I have tried divs, and they work in block mode...

Even more Zen and CSS Sprites

I am very frustrated with trying to use CSS Sprites. I have asked a couple of times here, and got great advice, but still no solution. The problem is that I want my sprites in a horizontal line, not a vertical stack. I can't seem to find an example of this on the web, and all tutorials I have found seem to only describe menus and other v...

dissecting a line of (obfuscated?) python

I was reading another question on SO (zen of python), and I came across this line in Jaime Soriano's answer: import this "".join([c in this.d and this.d[c] or c for c in this.s]) Entering the above in a python shell prints: "The Zen of Python, by Tim Peters\n\nBeautiful is better than ugly.\nExplicit is better than implicit.\nSimple ...

Zen-coding how to acheive alternating item multiplication

I recently attempted the adding zen-coding to my tool box of software development box of magic and have been mostly underwhelmed by it. Whether or not this is because it truly is technically deficient or rather suffers from documentation deficiencies I am not sure. Regardless, I can't seem to use zen to generate this very simple and comm...