U

Uswaretech

uswaretech.com · Company blog · on HN since 2008

Uswaretech, a Django consultancy, writes tutorials on Django forms, Python metaclasses, social login and Markov chain text generation.

What HN saysHN commenters link it for the Markov chain text generator and the Django forms post, which one calls a misunderstood and underdocumented feature.
19HN people shared it
8linked it in comments
41stories submitted
494story points
15 years agolast shared
2008people per year2026

Most-shared posts

  1. 1
  2. 2
    Doing things with Django forms
    3 people · 38 points · first shared 2010 · 4 comments on HN
  3. 3
  4. 4
    A response to Dropping Django
    2 people · 86 points · first shared 2009 · 17 comments on HN
  5. 5
    The magic of metaclasses in Python
    2 people · 4 points · first shared 2009 · discussion on HN
  6. 6
    Django for a Rails Developer
    1 people · 57 points · first shared 2009 · 31 comments on HN
  7. 7
    Django-forum
    1 people · 35 points · first shared 2010 · 10 comments on HN
  8. 8
    Bing Python API
    1 people · 24 points · first shared 2009 · 3 comments on HN
  9. 9
    How to build a Facebook app in Django
    1 people · 23 points · first shared 2009 · discussion on HN
  10. 10
    Django Request Response processing
    1 people · 17 points · first shared 2009 · 1 comments on HN
  11. 11
  12. 12
  13. 13
    Constraint programming in Python
    1 people · 13 points · first shared 2009 · 4 comments on HN
  14. 14
    Django aggregation tutorial
    1 people · 12 points · first shared 2009 · discussion on HN
  15. 15
    Building SEO optimised Django web applications
    1 people · 12 points · first shared 2008 · 3 comments on HN

What HN people wrote when they linked it

pizza · 2009-09-20
All of these use Markov Chains: A weather simulator, that guesses tomorrow's weather by looking at today's state and retrieving the probability of case x tomorrow. Run it a few times, see what the weather patterns look like. A chat between two bots, that use nlp and maybe an algorithm to check if they make sense. See if they always finish with the same results. Then, apply this to the human mind and reflect. Great resources: http://blog.electric-cloud.com/2009/09/15/using-markov-chains-to-gener… (might want to implement the bots from this) http://en.wikipedia.org/wiki/Examples_of_Markov_chains (where the weather idea came from) http://uswaretech.com/blog/2009/06/pseudo-random-text-markov-chains-py… (simple markov chains in python) bonus: make the bots have a chat room P.S. This might not easily tie in with GarlicSim, but I thought these are very interesting topics.
philgo20 · 2011-05-13
We push to production 3-4 times a day. You mean the carrousel on the home page ? I'll take a look. That page hasn't really been touched since we started developing and needs a complete makeover. Thanks for the heads up ! We currently our own LinkedIn login to create account as we use their API to match candidates and jobs. Next step is to add Facebook and Twitter as alternative login. We were thinking to go with django social-auth to cover al bases. http://uswaretech.com/blog/2009/08/django-socialauth-login-via-twitter… Had you compared it to allauth ? I'll take a look, hadn't seen that one. thxs !
mahmud · 2010-05-23
Here is a layman's introduction to Markov text generation: http://www.in-vacua.com/markov_text.html With some code: http://uswaretech.com/blog/2009/06/pseudo-random-text-markov-chains-py…
shabda · 2010-01-31
Forms are IMO, most misunderstood, and underdocumentated feature of Django. A from is not just a representation of a HTML. A form is, 0. a representation of a HTML form. 1. Knows how to validate and sanitize that data. 2. Know what to do with the data. In my apps, a lot of logic is in forms, (which people generally put in views.) Its written by me, but I think is explains some interesting ways to use forms which people miss and do the hard way. http://uswaretech.com/blog/2010/01/doing-things-with-django-forms/
weaksauce · 2010-01-31
Is this what you are talking about? Taken from:http://uswaretech.com/blog/2010/01/doing-things-with-django-forms/ higher in this thread. 5. Prob. You want to create a field which has cross field validations. Ans. Create a field with a .clean class UserForm(forms.Form): username = forms.CharField() password1 = forms.PasswordField() password2 = forms.PasswordField() def clean(self): data = self.cleaned_data if "password1" in data and "password2" in data and data["password1"] != data["password2"]: raise forms.ValudationError("Passwords must be same")
ajcronk · 2010-01-07
I started with their socialauth app, and heavily modified it for http://bln.kr. I wanted to allow a user to login with one service, then add additional services to the same account. http://uswaretech.com/blog/2009/08/django-socialauth-login-via-twitter…
mikexstudios · 2010-01-07
Yes, there are a number of solutions for django. The one used by the forum (and also by cnprog.com) is django-authopenid (http://bitbucket.org/benoitc/django-authopenid/wiki/Home) which integrates with existing django auth db. Users can choose sign up for an account on your django site or sign in with an openid. Some other solutions include: django-socialauth (http://uswaretech.com/blog/2009/08/django-socialauth-login-via-twitter… and django-rpx (http://github.com/howthebodyworks/django-rpx).
snprbob86 · 2009-08-20
(I wrote the original Dropping Django post) I wrote a quick comment at http://uswaretech.com/blog/2009/08/a-response-to-dropping-django/#comm… Maybe I wasn't clear enough, or maybe this is just guaranteed flame war territory. But I think this comment sums up what I was trying to say better than anything: http://news.ycombinator.com/item?id=773510 I'm going to try to write more about our URL routing and authorization soon.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close