As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

My Little [Programming] Thread: Debugging is Magic

11819212324100

Posts

  • bowenbowen How you doin'? Registered User regular
    That is kind of silly, but I can feel that.

    I've heard of some 2d lighting libraries that use the GPU to do some primitive ray tracing. Also maybe check out sprite lamp when you get a moment, I think they're in Alpha.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited April 2014
    Yeah I do have one 2D particle/lighting lib in my back pocket that I want to look at before i totally homebrew

    I haven't really dug deep yet because dynamic lighting is sort of the cherry on top for what I am doing, it's literally the last thing on the list

    If I could find a 3rd part lib where I could just hand over a gl or d3d context to and say "do what you will", that would certainly save me a TON of time

    Jasconius on
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    No... shaders? What is this ancient witchcraft of which you speak?

  • bowenbowen How you doin'? Registered User regular
    If you're not using a GL/DX context, SDL2 uses the software renderer.

    At that point that I wanted dynamic lights I'd use OpenGL and just use the 3d system as a 2d one to take advantage of the acceleration GPUs have for stuff like that.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EchoEcho ski-bap ba-dapModerator mod
    Sprite Lamp is pretty cool stuff.

    bowen
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    you can tell SDL to use hardware all you want. It will do hardware rendering for what you give it, which is 2D texture rendering. and it will do that on OpenGL or D3D or whatever is available.

    But the thing is, if you want to use a shader, you have to break away from SDL's APIs and types and do it yourself. Which is a real bear. I don't need anywhere near the fidelity of Sprite Lamp though, luckily.

    I basically just need primitive raycasting

  • bowenbowen How you doin'? Registered User regular
    Echo wrote: »
    Sprite Lamp is pretty cool stuff.

    Yeah I'm digging it. Not sure if I want to drop any money on it or whatnot.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • bowenbowen How you doin'? Registered User regular
    Jasconius wrote: »
    you can tell SDL to use hardware all you want. It will do hardware rendering for what you give it, which is 2D texture rendering. and it will do that on OpenGL or D3D or whatever is available.

    But the thing is, if you want to use a shader, you have to break away from SDL's APIs and types and do it yourself. Which is a real bear. I don't need anywhere near the fidelity of Sprite Lamp though, luckily.

    I basically just need primitive raycasting

    Seems like you could throw it as a texture on a quad in OGL and then throw in 3d lighting and get the same effect and move your CPU rendering to the GPU with very little change on your end.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    well yeah, if my software lighting ends up being too slow, the last ditch effort would be to force SDL to prefer OpenGL even on Windows, and then start writing straight OGL rendering techniques to supplement what's already there

    I want to save that for last though, because I am not good at opengl. Honestly I don't even know the proper way to write a shader.

    bowen
  • bowenbowen How you doin'? Registered User regular
    Yeah just making sure you've got that in your sleeve in case this doesn't work out and you need to optimize.

    OGL shader is probaly going to be easier than the software ray tracing but I'm just as clueless as you are!

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • bowenbowen How you doin'? Registered User regular
    edited April 2014
    Ugh now I've gotta figure out how to implement CCD (HL7 v3).

    This is going to be such a clusterfuck.

    Getting my boss to fork over cash to HL7's org for them is going to be difficult. Something tells me I'm going to be flying blind here.

    Anyone got any spec sheets on how to create CCDs/HL73s ?

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • bowenbowen How you doin'? Registered User regular
    @Infidel you deal(t) with CCD/Healthcare right? Do you have any documentation on sending unstructured data through CCD? Like PDFs/Scans or whatnot?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • InfidelInfidel Heretic Registered User regular
    Not really, for non-text documents like DI stuff we have been using HIAL for routing instead of our HL7v2/Cloverleaf.

    OrokosPA.png
  • urahonkyurahonky Registered User regular
    Question:

    If I deploy an .ear file using WebSphere, does it move the file to a different location or does it always launch from that location?

    For example, if I deploy the following ear:

    /opt/home/wasadmin/software/Software.ear

    and then I delete that .ear file, will the app still work correctly?

  • bowenbowen How you doin'? Registered User regular
    Infidel wrote: »
    Not really, for non-text documents like DI stuff we have been using HIAL for routing instead of our HL7v2/Cloverleaf.

    Ah that seems like it's mostly Canadian centric then from what I can pull.

    Thanks anyways though!

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • InfidelInfidel Heretic Registered User regular
    For our HL7 systems, we just get the text report (doctor's indications etc.) and you have to look at imaging in your PACS.

    OrokosPA.png
  • bowenbowen How you doin'? Registered User regular
    Infidel wrote: »
    For our HL7 systems, we just get the text report (doctor's indications etc.) and you have to look at imaging in your PACS.

    Yeah that's typically what ours does too.

    But I guess with CCD/HL7v3 you can inline "non structure documents" in a c62 or whatever they're called. Something to do with nonXMLBody and all that. I can't make heads or tails of it and the documentation shows you the structure but not an example on how to inline data.

    At least with HL7v2.x you could base64 encode data into an OBX field to do this.

    CCD is the most frustrating thing I think I have ever dealt with.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • IncindiumIncindium Registered User regular
    edited April 2014
    Sounds like working with EDI 811 Telecom data. Every telecom carrier who implements it does so in their own quirky way.

    Incindium on
    steam_sig.png
    Nintendo ID: Incindium
    PSN: IncindiumX
    bowen
  • bowenbowen How you doin'? Registered User regular
    Yeah CCD is a nightmare. Like a lot of their attributes are flat out mandatory.

    I don't get it, they're random numeric codes. You could just leave them out and have the element hierarchy and just imply the number. I don't even know. Did they consult a good software person when designing these things?

    http://motorcycleguy.blogspot.com/2013/03/displaying-nonxmlbody-in-hl7-cda.html

    I did find this.

    Holy hell was that a nightmare to track down. Whoever this motorcycleguy is, he's a godsend.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    Infidel
  • bowenbowen How you doin'? Registered User regular
    edited April 2014
    CCD:
    <code code="10160-0" codeSystem="2.16.840.1.113883.6.1"/>
       <title>Medications</title>
       <text>
          ...
       </text>
    </code>
    

    You'd figure that would be the equivalent to this:
    <medications>
        <medication name="Tylenol" snomed="437876006" />
    </medications>
    

    Hey look at that, meaningful data that isn't fucking retarded.

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • IncindiumIncindium Registered User regular
    Just like with EDI the gubment was involved so it's going to be crappy and annoying by default so that consultants can charge huge fees to do any work related to it.

    steam_sig.png
    Nintendo ID: Incindium
    PSN: IncindiumX
  • InfidelInfidel Heretic Registered User regular
    The HL7 standard is more of a suggestion.

    What you really need to do unfortunately depends on the question "well, what does my downstream do with this shit exactly?"

    That's why we have so much translating going on in Cloverleaf, there is no way you could directly plumb one application to another HL7 endpoint to HL7 endpoint.

    OrokosPA.png
    bowen
  • bowenbowen How you doin'? Registered User regular
    Infidel wrote: »
    The HL7 standard is more of a suggestion.

    What you really need to do unfortunately depends on the question "well, what does my downstream do with this shit exactly?"

    That's why we have so much translating going on in Cloverleaf, there is no way you could directly plumb one application to another HL7 endpoint to HL7 endpoint.

    Which is so dumb!

    Seriously you and I probably could've sat down and snapped off a better standard that actually works and doesn't let people just add shit.

    I mean what do you need really in healthcare?

    Images.
    Medication IDs (snomed should be fine for this)
    ICD9 or ICD10 for diagnoses (let both exist in the standard)
    plain text data for examinations and all that
    CPT codes for procedures

    I mean right there you've pretty much got a standard that works for data, the standard could be like... 5-10 pages tops and pretty simple and clear.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • LD50LD50 Registered User regular
    This is coming from the industry that invented MUMPS.

  • bowenbowen How you doin'? Registered User regular
    I'm thinking about inventing my own standard and just trying to get people to use it as an alternative format to CCD then.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • InfidelInfidel Heretic Registered User regular
    Just have them print and tube it! :rotate:

    OrokosPA.png
    bowen
  • InfidelInfidel Heretic Registered User regular
    So, Linode has done some more infrastructure upgrades, I just upgraded PAdev (carbon).

    1GB memory -> 2GB, and storage is now on SSDs.

    Thanks, Linode!

    Let me know if anything is amiss with your PAdev accounts or services. Or if you want to signup for dedicated Linux hosting that is shared by forumers and managed by myself (just $5/mo!)

    OrokosPA.png
  • EtheaEthea Registered User regular
    LD50 wrote: »
    This is coming from the industry that invented MUMPS.
    Don't you be hating on MUMPS. B)

  • urahonkyurahonky Registered User regular
    What's the most common practice for naming folders in Linux with spaces in them?

    sec_lib or sec-lib?

  • EndEnd Registered User regular
    Infidel wrote: »
    So, Linode has done some more infrastructure upgrades, I just upgraded PAdev (carbon).

    1GB memory -> 2GB, and storage is now on SSDs.

    Thanks, Linode!

    Let me know if anything is amiss with your PAdev accounts or services. Or if you want to signup for dedicated Linux hosting that is shared by forumers and managed by myself (just $5/mo!)

    interesting that they reduced the number of cores

    which actually makes the memory increase for me less useful, because for my own stuff, my non-cache memory usage is mostly based on how many cores I have available

    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpgsteam~tinythumb.png
  • bowenbowen How you doin'? Registered User regular
    urahonky wrote: »
    What's the most common practice for naming folders in Linux with spaces in them?

    sec_lib or sec-lib?

    sec_lib afaik

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EndEnd Registered User regular
    edited April 2014
    On my system I see - used more than _, but it seems that - are pretty consistently used for both appending version numbers and as directories referring to package names (the debian package name in this case). I don't see a lot of - or _ outside of that.

    I don't think it matters too much which you use

    End on
    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpgsteam~tinythumb.png
    bowen
  • bowenbowen How you doin'? Registered User regular
    edited April 2014
    Yeah typically you use - to separate logical components, and _ to separate with a space

    So Image_Library-v1.2.5 or whatever. But just spaces in a foldername? Meh, doesn't matter really.

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    Ethea
  • InfidelInfidel Heretic Registered User regular
    End wrote: »
    Infidel wrote: »
    So, Linode has done some more infrastructure upgrades, I just upgraded PAdev (carbon).

    1GB memory -> 2GB, and storage is now on SSDs.

    Thanks, Linode!

    Let me know if anything is amiss with your PAdev accounts or services. Or if you want to signup for dedicated Linux hosting that is shared by forumers and managed by myself (just $5/mo!)

    interesting that they reduced the number of cores

    which actually makes the memory increase for me less useful, because for my own stuff, my non-cache memory usage is mostly based on how many cores I have available

    Depends yeah, for overall typical hosting services it should be better with the increased memory and i/o, but if you are actually doing CPU limited workloads then it's a downgrade on the bottom 2GB plan.

    It is mostly a wash on the 4GB plan, and an increase above that.

    OrokosPA.png
  • urahonkyurahonky Registered User regular
    Appreciate the help folks.

  • undergroundmonorailundergroundmonorail single-track subway Registered User regular
    edited April 2014
    Personally I use - because it's way easier to type but I don't doubt that _ is uncommon.

    Of course, you could always use "\ " :P

    undergroundmonorail on
    Pokémon X | 3DS Friend Code: 0490-4897-7688
    Friend Safari: Fighting - Machoke, Pancham, Riolu | In game name: Jessica
    Official Weather Gym Leader of the G+T Pokémon League. @me to try for the Climate Badge!
  • InfidelInfidel Heretic Registered User regular
    Please don't use "\ " D:

    I like _ because I often already have dashes.

    Sample Log 2014-04-17.log
    Sample-Log-2014-04-17.log
    Sample_Log_2014-04-17.log

    Easier to grok for me and closer to the original, the line down the middle gives it a different readability in the second case.

    OrokosPA.png
    DelmainbowenEthea
  • LD50LD50 Registered User regular
    Personally I use - because it's way easier to type but I don't doubt that _ is uncommon.

    Of course, you could always use "\ " :P

    Bonus points if you can use \ in some way that causes naive string handling to choke on your directories only after they've been used at least once.

    undergroundmonorail
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Better yet have a space at the end so if someone messes it up it will parse the next bit as paths from the root. For rm and such

    undergroundmonorailecco the dolphinInfidelbowenThe Anonymous
  • undergroundmonorailundergroundmonorail single-track subway Registered User regular
    edited April 2014
    I didn't actually use it, but today I wrote this because I was curious.
    class Thing(object):
      __next__ = next # python3 compatibility
      
      def __iter__(self):
        self.b = True
        return self
      
      def next(self):
        if self.b:
          self.b = False
        return self
      else:
        raise StopIteration
    
    It doesn't seem like much, it's just an iterable that returns itself once. But...
    class Thing(object):
      def __init__(self, name):
        self.name = name
      
      __next__ = next # python3 compatibility
      
      def __iter__(self):
        self.b = True
        return self
      
      def next(self):
        if self.b:
          self.b = False
        return self
      else:
        raise StopIteration
    
    t = Thing('scooby doo')
    
    print t.name # scooby doo
    for s in t: print s.name # scooby doo
    
    This way, you can write functions that will do a thing to every instance of this class in a list, and that same function will do that same thing to just one instance if you only give it one instance.

    I can't decide if this is pythonic because duck typing or unpythonic because it's disgusting.

    undergroundmonorail on
    Pokémon X | 3DS Friend Code: 0490-4897-7688
    Friend Safari: Fighting - Machoke, Pancham, Riolu | In game name: Jessica
    Official Weather Gym Leader of the G+T Pokémon League. @me to try for the Climate Badge!
This discussion has been closed.