[web2py] Re: Server-Sent Events

2013-04-06 Thread Chris May
Wow. It's cool that web2py ships with a websockets implementation. I was also thinking like Arnon about how to implement server-sent events with web2py. As such I do want to add, maybe for posterity sake, that websockets serve a different use case than server-sent events, and are more complicat

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-06 Thread Chris May
Your date has passed, so I don't know how useful this will be, but when I introduce people to jQuery, I usually start with fun, gimmicky things, like changing all the images in a web page to photos of cats: jQuery('img').each(function() {var my = jQuery(this); my.attr('src','http://www.placekit

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-06 Thread Chris May
On Wednesday, April 3, 2013 3:10:23 PM UTC-4, Derek wrote: > > Flickr, Panaramio, RSS to JSON (http://ejohn.org/projects/rss2json/) > Yahoo YQL (http://developer.yahoo.com/yql/guide/response.html), Twitter, > Salesforce.com... > > One thing that bugs me is that jQuery returns jQuery objects not

[web2py] Welcome app / AddToAny integration question

2012-05-30 Thread Chris May
More of a curiosity on my part, but why does web2py promote AddToAny (by automatically including it with every new application)? Sure, it's easy enough to remove, but why is it in there in the first place?

[web2py] web2py book references: return invalid functions

2012-05-15 Thread Chris May
rackets signify a link in markmin, and is triggering the creating of these invalid links. Is someone available to help? Chris May

[web2py] Re: How to get pound sign in url or work around it?

2012-03-22 Thread Chris May
I might have missed something. Are you trying to move the viewport to the element with the id after the hash? If so, would you be able to use: document.location.hash = "tabs=2"; Does that work? On Wednesday, March 21, 2012 5:39:08 PM UTC-4, Cliff wrote: > > Thanks, Jonathan. I appreciate th

[web2py] Re: web2py site and disabling browser right clicks

2012-03-09 Thread Chris May
I'm sorry, Rahul. I may have misunderstood the reason behind your post, as I have heard similar requests in my time as a front-end developer. However, seeing that the site in your signature does potentially show sensitive information, the best thing I can recommend is to not send any more sensi

[web2py] Re: web2py site and disabling browser right clicks

2012-03-09 Thread Chris May
I agree with Wikus. Just by having a web site out in the public means just that. Don't publish anything that you wouldn't want printed in newspapers or announced to your grandmother. :) You may be different, but every one who has asked me to prevent users to view source code did not care about

[web2py] Re: I would like to learn Web2py but where do I start?

2012-02-23 Thread Chris May
One caveat: While I agree that w3schools is a helpful resource (as I use it as a regular reference), their examples do not promote best practices, most notably absent is unobtrusive JavaScript. I had to *unlearn much *of what I read on there. For more information and better resources, include

[web2py] [OT] e-mail delivery strategies

2012-01-31 Thread Chris May
This is off-topic, but since a fair number of web2py users send e-mail from their applications, I thought this post from 37Signals might prove helpful to some. There were nearly 16 million e-mails sent from 37Signals' eight web applications in the last seven days. About 99.3% of them were accep

[web2py] Re: (OT) Choosing a javascript mvc framework

2012-01-23 Thread Chris May
This might be too late for your application, but I just saw this review of 12 MVC frameworks. http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/ Quoted from the page: > Specifically, the following four features are very important to me: > UI Bindings - I’m not just tal

[web2py] Re: Need help with drag-n-drop using jQuery

2012-01-20 Thread Chris May
Hello, Frank, Welcome to web2py! I am also relatively new to web application development. I threw your code into a new application, and I get very fast responses, usually in a fraction of a second. I don't know exactly why I have a dramatic difference in speed, but I do notice one thing that mi

[web2py] Re: Python / web2py or.... the learning path?

2012-01-17 Thread Chris May
There are indeed a *lot* of PHP tutorials and articles out there. Most of them are of little value in general, or even misleading readers into bad practices (as referenced by Christian Heilmann in a recent post on Smashing Magazine

[web2py] Re: haml and sass

2011-12-19 Thread Chris May
Curious. I've surprisingly not heard of haml. What would you say are the benefits over web2py's built-in HTML helpers? SASS could be quite helpful for us front-end guys, and I notice there are a couple of python modules out there. My opinion is that I don't know if it would need to be included

[web2py] Re: Backbonejs in web2py

2011-12-14 Thread Chris May
Nice example! I love how snappy the site navigation is. That is one benefit I expected from using backbone, with the potential for so much less data being transferred for view changes over normal page refreshes.

[web2py] Re: Backbonejs in web2py

2011-12-14 Thread Chris May
As with so many things in web development, it depends on your application. web2py is a complete framework to set up an environment for your application to run. Backbone.js can extend web2py's functionality to provide complex client-side interactions. I think it can be a great idea, if the desig

[web2py] Re: Massimo

2011-12-08 Thread Chris May
I second that! We are truly blessed to have so many great, patient and available contributors to the code and the community! Anthony, do you have the book memorized yet? :D

Re: [web2py] Re: Google Groups problem

2011-12-06 Thread Chris May
Thanks for the reminder for feedback! There were several times that Google Groups was telling me that x number of posts were updated, but showed all as read. I noticed that just before I read this post, they just pushed out an update to the Groups software. Hopefully that'll fix it.

[web2py] Re: ttf and fonts

2011-12-02 Thread Chris May
It looks like you're going about it fairly well, but I also had issues with particular truetype fonts. Those issues went away after I changed which truetype font I used. This is the code that works for me: @font-face { font-family: myFont; src: url('../static/Qarmic_sans_Abridged.ttf')

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-26 Thread Chris May
I agree. It's very important to not annoy the site visitor by forcing him into one view / solution / experience. Judging by the parallel discussion in the developer group (http:// groups.google.com/group/web2py-developers/browse_thread/thread/ 2056602a6c30af27#) and the corresponding issue request

[web2py] Re: DISCUSSION: Dual Desktop/Mobile Functionality

2011-07-22 Thread Chris May
Hey Ross, thanks for starting this discussion. And what a timely discussion, considering today's Smashing Magazine article is a roundup of Responsive Design (RD) patterns. (www.smashingmagazine.com) (For those unfamiliar with RD, also check out A List Apart for a great intro: http://www.alistapart

[web2py] Re: jQuery .focus()

2011-07-18 Thread Chris May
To select an element by ID in jQuery, you can use the CSS-like syntax #id. jQuery("#key1).focus(); Your jQuery("input.key1").focus(); statement told jQuery to look for an input with the class property of "key1". On Jul 18, 3:54 am, annet wrote: > In web2py_ajax.html I have the following line o

[web2py] Re: estore

2011-07-05 Thread Chris May
I sure hope so... The only thing I have been looking to is Massimo's brief tutorial on credit card payments http://groups.google.com/group/web2py/msg/00df672fe3d67aab On Jul 5, 4:48 am, apple wrote: > Is this no longer maintained? It does not seem to be available to > dowload. > > Are there any

[web2py] Re: proper way to mobile and desktop 'skins'

2011-06-28 Thread Chris May
Are you sending different content to either desktop or mobile devices? If you aren't, you could use the "responsive web design" approach (http://www.alistapart.com/articles/responsive-web-design/ or http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/) or the "mobile

[web2py] Re: Speed of rendering html data (10,000+ rows)

2011-06-21 Thread Chris May
Have you tried pasring the data using your 0.078 second method into a json format and using jQuery to parse it?

[web2py] Re: Wiki example in the book

2011-05-26 Thread Chris May
I don't think I'm running trunk code... I'm running version 1.95.1 (2011-04-25 15:04:14). I copied views/generic.rss into views/default/news.rss (which seems more in line with the book example, since the show function shows the wiki page), and it still inserted ".rss" in after "show" So... if you

[web2py] Wiki example in the book

2011-05-26 Thread Chris May
I am using the book to learn more about web2py, and I was checking out the wiki example in chapter 3 (http://web2py.com/book/default/chapter/ 03#A-Wiki ), I noticed that the links inside the RSS feed come out slightly wrong. The links have ".rss" in between the app name and the row.id argument, as

[web2py] Re: Ajax page update

2011-05-19 Thread Chris May
I thought I read of a way of using jQuery for something like this using its deferred object. (http://api.jquery.com/category/deferred- object/) Sorry I can't be more specific, but I hope it helps. On May 19, 10:25 am, VP wrote: > Is there a guide for a clean and sweet way to implement these type

[web2py] Re: py-appscript

2011-05-04 Thread Chris May
I love the thought that Web2Py can do this. I find it fascinating that this power / opportunity exists, but I could use someone's perspective on practical uses for this. I have my head a little too far in the sky to harness this functionality. On May 4, 1:25 pm, Massimo Di Pierro wrote: > http://