News for hackers. Stuff that matters.

Encave

Re:Schema-less is usually a lie on Wednesday July 03, 2013 @03:14PM (#5986868)
Here are some slides from a good talk by Martin Fowler about schemalessness and how there is always an 'implicit schema' http://martinfowler.com/articles/schemaless/
Re:Breaking down Amazon's mega dropdown on Wednesday March 06, 2013 @02:55PM (#5333387)
You can sort of do the same thing in just CSS by adding two small boxes as :after and :before pseudo elements.

See: http://i.imgur.com/aSnjEYx.png Not perfect, but pretty close.

Relevant SASS:

  $boxSize:30px

  &:hover:after, &:hover:before
    content: " "
    display: block
    position: absolute
    top: 50%
    right: -$boxSize
    height: $boxSize
    width: $boxSize
    background-color: transparent
    z-index: 1000
  
  &:hover:before
    right: auto
    left: -$boxSize
Re:Yipit Django Blog: Sharing Everything We’re Learning on Wednesday October 26, 2011 @05:38PM (#3160552)
My normal settings structure is as follows:

  * settings/__init__.py
  * settings/base.py
  * settings/development.py
  * settings/staging.py.
  * settings/production.py
  * settings/credentials.py
This allows me to have a base settings file which the others inherit from, and all settings are tracked in git apart from passwords which are stored in credentials.py.

Unlike some other approaches, installed apps are just defined once (in the base), but apps can be added/removed for each environment.

Re:Puppet vs Chef, Fight on Sunday October 09, 2011 @04:08PM (#3091198)
Check out cuisine https://github.com/sebastien/cuisine It is a good companion for fabric to handle user creation and package installs.

More info after slide 42 here: http://www.slideshare.net/ffunction/fabric-cuisine-and-watch...

Re:Python 3 Wall of Shame on Monday February 14, 2011 @04:07PM (#2218673)
That just saved me a hell of a lot of work. Thank you!
Re:Python 3 Wall of Shame on Monday February 14, 2011 @01:45PM (#2217973)
I am currently doing a similar sort of website, but trying to limit it to popular projects only. Also trying to group together a lot of the python 3 related articles and porting tips.

My current research can be found here: http://goo.gl/SCImr

Any corrections, or ideas for what can be on the site would be appreciated.