Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: FAQ: Web Development in Ubuntu

  1. #11
    Join Date
    Jan 2008
    Location
    Raytown, MO
    Beans
    460
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: FAQ: Web Development in Ubuntu

    Verminox - thanks, this is nicely done.

    One more, re other ideas - folks are probably not aware of the tclhttpd -
    http://www.tcl.tk/software/tclhttpd/

    extremely easy to use webserver ...

    Tcl, along with Python, Ruby, Perl, etc ... can be quite useful for web programming.

    Steve
    The Tcler's Wiki http://wiki.tcl.tk Tcl Developer Exchange http://www.tcl.tk SQLite http://www.sqlite.org

  2. #12
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: FAQ: Web Development in Ubuntu

    Quote Originally Posted by Verminox View Post
    comes preloaded. Does it mean that SQLite is installed on Ubuntu by default or just that Python comes with the module to interact with SQLite?
    SQLite is just a (C) library which reads/writes file in internal format, and has SQL API. It is not a server, no administration needed. Python bindings were available for a while (so it's stable now), and Py2.5 includes it by default.

    Nice trick is, that many ORMs support it (because "from outside" it looks like SQL database (with single user and no password) so it is much easier to develop web-based DB app against SQLite than against "real" multiuser database, like MySQL. "Real" databases are set to manage multiple users, but web app has often just single user - apache CGI script. You can create something in SQLite, copy whole database, run test, discard it and use copy to restore - it SQLite DB is just a file.
    Last edited by pmasiar; May 20th, 2008 at 10:01 PM.

  3. #13
    Join Date
    Nov 2006
    Location
    Mumbai, India
    Beans
    186
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: FAQ: Web Development in Ubuntu

    pmasiar: Thanks, added the clarification in the OP.

    stevescripts: I'll look into Tcl.
    http://verminox.wordpress.com - Answers to Life, the Universe and Everything

  4. #14
    Join Date
    Nov 2007
    Location
    Puebla, México
    Beans
    333
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: FAQ: Web Development in Ubuntu

    Great Howto
    Just one doubt, does anyone know about a good howto use xml and php. I've trying to setup a RSS feed for my site (you can go clicking in my signature in the 'mr wizard...') but I don't want to write an entry every time I post. And I know there is a way to do it with PHP (SEE http://www.phdcomics.com/gradfeed.php !!) but I just can't find a HowTo I can learn. I think is with XML parsing or something like that but the how to in PHP.net is way too confusing.
    So can anyone point me in the right direction please? thanks

    By the way my site is built almost completely from scratch all by my self (except for the experimental forums that's all phpbb LOL and and some CSS, still learning) Using PHP, Apache and some MySQL. Sorry I just had to say it

  5. #15
    Join Date
    Jul 2008
    Beans
    1,491

    Re: FAQ: Web Development in Ubuntu

    Quote Originally Posted by Verminox View Post
    Generally, all Javascript code should work with IE's JScript implementation (with minor exceptions).
    I suppose it depends on your definition of "generally", but you may want to note that specifically event handlers, and DOM modifications (especially those inside the 'style tree') are anything but portable.

    For instance, if you want to look up properties about an event e; Spidermonkey (the JavaScript engine used by Firefox) will generally provide you with a different interface from that of the engine in MSIE. This starts at the very bottom level of where to fetch/point to your copy of the event from:
    Code:
    function simpleExample(e) {
    e = e /* other browsers simply dispatch an event */ || window.event; /* MS IE does it different ... <_< */
    return e;
    }
    Such a function is required with DHTML when you want to process events such as "onclick" or "onmouseup", at least if you want to keep your code portable. But this function clearly demonstrates (one of the many, but this one is probably the prime example of what any aspiring web developer will 'really feel' first).

    Also: did you link to the Mozilla guides regarding their JavaScript engine? Those are absolute lifesavers!

    http://developer.mozilla.org/en/docs/SpiderMonkey
    Last edited by Reiger; July 29th, 2008 at 11:08 PM.

  6. #16
    Join Date
    Jul 2008
    Beans
    1,491

    Re: FAQ: Web Development in Ubuntu

    Quote Originally Posted by Darkade View Post
    Great Howto
    Just one doubt, does anyone know about a good howto use xml and php. I've trying to setup a RSS feed for my site (you can go clicking in my signature in the 'mr wizard...') but I don't want to write an entry every time I post. And I know there is a way to do it with PHP (SEE http://www.phdcomics.com/gradfeed.php !!) but I just can't find a HowTo I can learn. I think is with XML parsing or something like that but the how to in PHP.net is way too confusing.
    So can anyone point me in the right direction please? thanks
    PHP has an excellent DOMDocument API capable of processing HTML, and various flavours of XML. Including validating it against a DTD, Schema or RelaxNG Schema. Also it nicely fits in with the PHP XSL extension which exposes the XSLTProcessor class. Now that's a nifty tool, because it allows you to do XSLT Processing on the server side, which has the benefit of "only one implementation to worry about" (ever noticed how MSIE does 'it' different from Opera which does it different from Firefox?).

    So what you can do is the following: have a piece of XML be translated at runtime into corresponding XHTML using an XSLT stylesheet...

    For references see the PHP manuals (I use PHP 5.x myself) and W3C schools (again) for the XSLT. A simple Google search "PHP 5 DOMDocument" & "XSLT W3C Schools" should suffice for getting what you need. IIRC the W3C schools come out on top upon the simple Google query "XSLT" also, but don't quote me on that...

    By the way my site is built almost completely from scratch all by my self (except for the experimental forums that's all phpbb LOL and and some CSS, still learning) Using PHP, Apache and some MySQL. Sorry I just had to say it
    I briefly looked at your site; and as my standard action is... "upload it to the W3C validator" (heh, I'm using Opera; it's only a right & left click away ) What can I say? You should really see the report. <_<
    Last edited by Reiger; July 29th, 2008 at 11:06 PM.

  7. #17
    Join Date
    Nov 2007
    Location
    Puebla, México
    Beans
    333
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: FAQ: Web Development in Ubuntu

    Quote Originally Posted by Reiger View Post
    I briefly looked at your site; and as my standard action is... "upload it to the W3C validator" (heh, I'm using Opera; it's only a right & left click away ) What can I say? You should really see the report. <_<
    yes I know but much of that CSS ain't mine, as I said, but I don't know how to correct it, again as I said I'm Still learning CSS LOL

    And thanks I will look at your references as soon as I get home

  8. #18
    Join Date
    Apr 2007
    Beans
    14,781

    Re: FAQ: Web Development in Ubuntu

    Quote Originally Posted by Darkade View Post
    yes I know but much of that CSS ain't mine, as I said, but I don't know how to correct it, again as I said I'm Still learning CSS LOL

    And thanks I will look at your references as soon as I get home
    You shouldn't use what you don't understand. Take my site for example (http://laroza.freehostia.com). It isn't flashy, and many people think it is too plain. However, it is 100% valid code and more usable than most sites.

    Do not overstep. Use what you know.

  9. #19
    Join Date
    Nov 2007
    Location
    Puebla, México
    Beans
    333
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: FAQ: Web Development in Ubuntu

    Thank you both LaRoza and Reiger, in fact I'm now going into debuging my site .
    Maybe I'll drop my CSS two colums and come up with one my self
    Later this week I'll see that RSS feed thing

    EDIT: Hey! I finished! now I have no URI problems, except for the ones from embeding the Youtube videos... which I'm now looking how to solve; and the damn CSS, I'll probably come up with my own css columns, the advantage of my site is that everything is in modules
    But for every other thing
    This Page Is Valid HTML 4.01 Transitional!
    Last edited by Darkade; July 30th, 2008 at 04:51 AM.

  10. #20
    Join Date
    Nov 2007
    Beans
    81

    Re: FAQ: Web Development in Ubuntu

    a good way for debugging is to download the web developer add-on to firefox. You can check local pages ( pages that are just on your computer ) for xhtml compliance and css compliance with the tools button you can even edit the css and html live with the toolbar. The way I started learning css and xml was at w3schools.com they have excellent tutorials and also tizag.com they also have good tutorials. For css I recommend buying O'Reilly's Cascading Style Sheets a definitive guide, I found my copy used for about 12 dollars worth every penny. If yo are haveing URI problems try using full paths on your webserver
    i.e. /var/html/www/the page you use for dynamic stuff. There are good mysql php classes out there and page template php classes too. You can check them out at php classes.com and also remember google is your friend. Devnet.com is also a good site.
    I troll, therefore I am

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •