HNHacker News
TopNewBestAskShowJobs

c0un7d0wn

39 karma · joined February 11, 2008

submissionscomments
c0un7d0wn··on Black – Uncompromising Python code formatter
See https://github.com/shosca/django-sorcery/blob/master/Makefil... for example

Run that target as part of the test

c0un7d0wn··on What's new in Ubuntu 19.04
https://news.ycombinator.com/item?id=19282074
c0un7d0wn··on Wolfenstein: Ray Tracing on Using WebGL1
https://www.youtube.com/watch?v=1nqhkDm2_Tw running on AMD Vega 56
c0un7d0wn··on Molten: A modern Python (3.6+) web framework
Coming from nhibernate now working with sqlalchemy, more so than async the one feature i miss when working with sqlalchemy is futures with multiple result queries, like this https://ayende.com/blog/3979/nhibernate-futures
c0un7d0wn··on Django 2.1 released
We went the other way around and came up with https://github.com/shosca/django-rest-witchcraft and https://github.com/shosca/django-sorcery to integrate sqlalchemy with django as the project was already using sqlalchemy.
c0un7d0wn··on Django Newbie Mistakes
Definitely agreed regarding django orm. And moment you decide not to use it or cannot use it because of legacy issues you're in a world of pain. We've developed https://github.com/shosca/django-rest-witchcraft and https://github.com/shosca/django-sorcery as the project was already using django+sqlalchemy and doing everything manually and also had to touch legacy db's (think composite pk's and all kinds of db quirks..)
c0un7d0wn··on Mir’s next steps – we need your input
https://wiki.gnome.org/Initiatives/Wayland/GnomeShell/GnomeS...
c0un7d0wn··on Django REST framework 3.7 released
I went the other way around and came up with https://github.com/shosca/django-rest-witchcraft as the project is already using django+sqlalchemy and I needed to do api's on existing things.
c0un7d0wn··on The Tenacity of Tech Recruiters
oh little bobby tables we call him...
c0un7d0wn··on An excellent donation from Google, extended contracts, and Google Code-In update
What about ATI/AMD? they have oss docs and drivers.
c0un7d0wn··on My tmux setup
No key chords, just left pinkie, why would it be so hard?
c0un7d0wn··on My tmux setup
I've been using `
c0un7d0wn··on Ubuntu 13.10 to ship with Mir instead of X
Wayland doesn't require kms. It requires EGL
c0un7d0wn··on Open Source in your Inbox: Code Triage
C language links are broken. c == c++ == c#
c0un7d0wn··on Hybrid graphics support in Nvidia 's Linux driver
They also employ 5 oss devs i believe
c0un7d0wn··on [dead]
Does anybody else see font tags?

>>> document.getElementsByTagName('font').length 348

c0un7d0wn··on T-Mobile Galaxy S2 with Android 4.0 is the first with IPv6 support
confirmed working with galaxy nexus too
c0un7d0wn··on Microsoft Bans Linux/Android Dual-Booting on Windows 8 ARM Devices
http://www.techradar.com/news/software/operating-systems/goo...
c0un7d0wn··on Microsoft Bans Linux/Android Dual-Booting on Windows 8 ARM Devices
Just when we hear chromeos and android about to become one
c0un7d0wn··on Show HN: SpaceMagic, a real-time node.js framework
yep, back button is broken
c0un7d0wn··on AMD Publishes Open-Source HD 7000, Trinity Code
You can put the card in low power mode with

  echo low | sudo tee -a /sys/class/drm/card0/device/power_profile
ymmv
c0un7d0wn··on Natty Narwhal with Unity: Worst Ubuntu beta ever
focus-follows-mouse is pretty much impossible to use with the menu bar being in the panel. When you need something from the menu, you have to try to avoid moving your mouse over other windows while trying to reach the menu so that they don't get the focus.

You can disable the main menu bar by removing the appmenu-gtk package.

c0un7d0wn··on Review my weekend HTML5 project: DropMocks
drag+drop not working on firefox 4. It does work with gmail.
c0un7d0wn··on Gmail: Drag and drop attachments onto messages
and not working on Ubuntu/10.04 (lucid) Firefox/3.6.3
c0un7d0wn··on SQL AntiPatterns Presentation from MySQLConf 2009
You use a database that supports CTE or at the very least, recursive querying options, then you format your schema like so:

  Comments:
  /-----------------------------\
  |   ID   | ParentID |   etc   |
  |-----------------------------|
  |    1   |   Null   |   etc   |
  |    2   |   Null   |   etc   |
  |    3   |     1    |   etc   |
  |    4   |     1    |   etc   |
  |    5   |     4    |   etc   |
  \-----------------------------/
You then use a Common Table Expressions query, like this:

  WITH CommentTree (ParentID, ID, Level)
  AS
  (
    SELECT ParentID, ID, 0 as [Level], 
        FROM Comments
        WHERE ParentID = [ROOT COMMENT ID] OR ParentID IS NULL
    UNION ALL
        SELECT c.ParentID, c.ID, ct.Level + 1
            FROM Comments c
            JOIN CommentTree ct ON ct.ID = c.ParentID
  )
  -- Now actually query the data from the CTE Expression
  SELECT ParentID, ID, Level FROM CommentTree 
     ORDER BY ParentID, Level, ID
This returns a table with a calculated column called Level.

  /---------------------------\
  | ParentID | Level |   ID   |
  |---------------------------|
  |   Null   |   0   |   1    |
  |   Null   |   0   |   2    |
  |    1     |   1   |   3    |
  |    1     |   1   |   4    |
  |    4     |   2   |   5    |
  \---------------------------/
Which of course, would represent this tree:

       Root
      /    \
     2      1
           / \
          3   4
               \
                5
c0un7d0wn··on ASP.NET MVC 1.0 Released
What are the advantages of this over Castle Monorail?
c0un7d0wn··on Foxconn deliberately sabotaging their BIOS to destroy Linux ACPI
http://antitrust.slated.org/www.iowaconsumercase.org/011607/...