Better HN
topnewbestaskshowjobs
Log inSign up

c0un7d0wn

39 karma · joined Feb 11, 2008 (18y ago) · 31 submissions

Submissions

comment 7y ago · link · parent

See https://github.com/shosca/django-sorcery/blob/master/Makefil... for example

Run that target as part of the test

comment 7y ago · link · parent

https://news.ycombinator.com/item?id=19282074

comment 7y ago · link · parent

https://www.youtube.com/watch?v=1nqhkDm2_Tw running on AMD Vega 56

comment 8y ago · link · parent

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

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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..)

comment 9y ago · link · parent

https://wiki.gnome.org/Initiatives/Wayland/GnomeShell/GnomeS...

comment 9y ago · link · parent

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.

comment 11y ago · link · parent

oh little bobby tables we call him...

10.

Nvidia launches patent war against Samsung and Qualcomm over graphic chips(gigaom.com ↗)

1 points · by c0un7d0wn · 12y ago · discuss

11.

AMD hopes to put a little Mantle in OpenGL Next(techreport.com ↗)

4 points · by c0un7d0wn · 12y ago · discuss

comment 12y ago · link · parent

What about ATI/AMD? they have oss docs and drivers.

comment 13y ago · link · parent

No key chords, just left pinkie, why would it be so hard?

comment 13y ago · link · parent

I've been using `

comment 13y ago · link · parent

Wayland doesn't require kms. It requires EGL

16.

Unite.vim, the Plugin You Didn't Know You Need(bling.github.io ↗)

1 points · by c0un7d0wn · 13y ago · discuss

comment 13y ago · link · parent

C language links are broken. c == c++ == c#

18.

The Real Story Behind Wayland and X [mp4](mirror.linux.org.au ↗)

1 points · by c0un7d0wn · 13y ago · discuss

comment 14y ago · link · parent

They also employ 5 oss devs i believe

comment 14y ago · link · parent

Does anybody else see font tags?

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

comment 14y ago · link · parent

confirmed working with galaxy nexus too

comment 14y ago · link · parent

http://www.techradar.com/news/software/operating-systems/goo...

comment 14y ago · link · parent

Just when we hear chromeos and android about to become one

comment 14y ago · link · parent

yep, back button is broken

comment 14y ago · link · parent

You can put the card in low power mode with

  echo low | sudo tee -a /sys/class/drm/card0/device/power_profile
ymmv

comment 15y ago · link · parent

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.

comment 16y ago · link · parent

drag+drop not working on firefox 4. It does work with gmail.

comment 16y ago · link · parent

and not working on Ubuntu/10.04 (lucid) Firefox/3.6.3

comment 17y ago · link · parent

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

comment 17y ago · link · parent

What are the advantages of this over Castle Monorail?
12