News for hackers. Stuff that matters.
Re:Creating 7 web apps in 7 days with Django by stillmotion on Friday January 25, 2008 @09:56PM (#104472)
Done before, but with other languages. I hate pride coding.
Re:Creating 7 web apps in 7 days with Django by shabda on Saturday January 26, 2008 @11:28AM (#104650)
I have heard of anappaday.com, what are the others?
Re:Creating 7 web apps in 7 days with Django by michaelneale on Friday January 25, 2008 @10:43PM (#104490)
why not one app I would possibly want to use? Whats with all the rush?
Re:Creating 7 web apps in 7 days with Django by shabda on Saturday January 26, 2008 @11:25AM (#104648)
proving a point :)
Re:Creating 7 web apps in 7 days with Django by atlacatl on Friday January 25, 2008 @11:35PM (#104510)
A complete add would be better. More != Better.
Re:Creating 7 web apps in 7 days with Django by derefr on Saturday January 26, 2008 @04:13AM (#104586)
Okay, I wasn't going to mention it before because it only seemed to cover the ejecta (no pun intended) of a certain web phenomenon, but now it's getting ridiculous.

N Xs M Y(s) is now a snowclone.

Re:Creating 7 web apps in 7 days with Django by curi on Saturday January 26, 2008 @12:42PM (#104669)
I don't think the apps are exactly done. I looked through the source code a little, and saw a (rather amusing) todo note.

  def htmlize(text, language):
      from pygments import highlight
      from pygments.formatters import HtmlFormatter as Formatter
      if language == 'Python':    
          from pygments.lexers import PythonLexer as Lexer
      elif language == 'Perl':
          from pygments.lexers import PerlLexer as Lexer
      elif language == 'Ruby':
          from pygments.lexers import RubyLexer as Lexer
      elif language == 'PythonConsole':
          from pygments.lexers import PythonConsoleLexer as Lexer
      elif language == 'PythonTraceback':
          from pygments.lexers import PythonTracebackLexer as Lexer
      elif language == 'RubyConsole':
          from pygments.lexers import RubyConsoleLexer as Lexer
      elif language == 'HtmlDjango':
          from pygments.lexers import HtmlDjangoLexer as Lexer
      elif language == 'Html':
          from pygments.lexers import HtmlLexer as Lexer
      else:
          from pygments.lexers import TextLexer as Lexer
      """
      Todo: I cant get this to work.
      lang_lexer = str(language + 'Lexer')
      Lexer = __import__('pygments.lexers', globals(), locals(), [lang_lexer, ])
      Or
      from pygments.lexers import get_lexer_by_name
      Lexer = get_lexer_by_name(language.lower())
      """
      htmld = highlight(text, Lexer(), Formatter(linenos='table'))
      return htmld