Changes between Version 104 and Version 105 of DeveloperGuidelines/Tips
- Timestamp:
- 07/21/10 09:21:53 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Tips
v104 v105 1 1 DeveloperGuidelines 2 3 2 ---- 4 == == Python debugging ====3 == Python debugging == 5 4 * WSGI likes print statements to go to {{{sys.stderr}}} not {{{sys.stdout}}}: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques 6 5 * use Web2Py shell: http://www.vimeo.com/879939 … … 17 16 * Using with Web2Py: http://www.wingware.com/doc/howtos/web2py 18 17 * [DeveloperGuidelinesEclipse Eclipse] IDE 19 ==== CSS & Javascript debugging ==== 18 19 === Reserved Keywords === 20 * 'request' -> web2py internal use 21 * 'key' as a db row name -> MySQL confuses it with internal keyword KEY 22 * http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-version-reference-reservedwords-5-0.html 23 * http://www.postgresql.org/docs/8.1/static/sql-keywords-appendix.html 24 25 == CSS & Javascript debugging == 20 26 * use Firebug: http://code.google.com/support/bin/answer.py?answer=77412&topic=12044 21 27 * use Venkman: http://www.mozilla.org/projects/venkman/ 22 28 * http://pastebin.me (allows edits of HTML & previews) 23 29 * IE6 cheatsheet: http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs 24 ==== Web2Py ==== 30 31 == Web2Py == 25 32 * http://web2py.com/examples/default/docs 26 33 * Prevent HTML tags being escaped in views: {{{{{=XML("<p>Not escaped!</p>")}}}}} … … 92 99 * Use the StatusBar for dynamic status updates 93 100 * http://code.google.com/p/web2pyorm/ 94 ==== !JavaScript ==== 101 102 == !JavaScript == 95 103 * http://trac.openlayers.org/wiki/Documentation#BeforeGettingStarted--TheTechnologiesBehindOpenLayers 96 104 * http://eloquentjavascript.net … … 101 109 * JS: {{{var RE_JSVAR = new RegExp("\W", "g"); var variable_name = string.replace(RE_JSVAR, '_');}}} 102 110 * Loop timings: http://blogs.sun.com/greimer/entry/best_way_to_code_a 103 ===== jQuery ===== 111 112 === jQuery === 104 113 * http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx 105 114 * http://james.padolsey.com/javascript/things-you-may-not-know-about-jquery/ … … 111 120 * Web2Py HTML Helper: http://groups.google.com/group/web2py/browse_thread/thread/ec63ee9af3ee659f 112 121 * jqGrid in Web2Py: http://groups.google.com/group/web2py/browse_thread/thread/2caa0e4e0161bb8d 113 ===== Ext ===== 122 123 === Ext === 114 124 * http://extjs.com/learn/Tutorial:Introduction_to_Ext_2.0 115 125 * http://extjs.com/learn/Manual:Basic_Application_Design … … 120 130 * http://blog.extjs.eu/know-how/mastering-ext-direct-part-1/ 121 131 122 == == HTML/CSS ====132 == HTML/CSS == 123 133 * http://enhance.qd-creative.co.uk/2008/06/28/the-misunderstood-div/ 124 134 * http://enhance.qd-creative.co.uk/2008/10/14/7-things-you-can-do-so-your-users-wont-leave/ … … 132 142 * http://webtips.dan.info/graceful.html 133 143 134 == == SQL ====144 == SQL == 135 145 Basics of Design: 136 146 * http://www.simple-talk.com/sql/database-administration/ten-common-database-design-mistakes/ … … 157 167 * Especially useful for USB (minimise disk access): http://web.utk.edu/~jplyon/sqlite/SQLite_optimization_FAQ.html 158 168 159 == == XSLT ====169 == XSLT == 160 170 * XPath: http://www.w3schools.com/xpath/default.asp 161 171 * XSLT: http://www.w3schools.com/xsl/default.asp 162 172 163 == == GIS ====173 == GIS == 164 174 * http://linfiniti.com/dla/ (includes videos, etc) 165 175 * http://desktopgisbook.com/ … … 174 184 Print 175 185 * http://www.amazon.com/Primer-GIS-Fundamental-Geographic-Cartographic/dp/1593855656 176 ==== Misc ==== 186 187 == Misc == 177 188 * Bugmail add-on for Thunderbird: https://addons.mozilla.org/en-US/thunderbird/addon/9584 178 189 179 190 ---- 180 181 191 DeveloperGuidelines