justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]

Question: Are you using UpdateResource/etc for the langpacks or another approach in order to support OS X too?
Asked by gio (94.66.6.x) on July 15 2012, 11:06pm
Reply on July 16 2012, 7:09pm (edited at July 16 2012, 7:10pm):
    We use another approach, which involves the preprocessor with __LOCALIZE() macros on the static-string side (and an app that scans source code looking for __LOCALIZE() to build the default language pack), and using a fast FNV hash of the string to identify it for translation.

    For dialog resources etc, we have a special version of CreateDialog used which does the translation of text items and some layout tweaks before handing the dialog procedure over to the coded version. At some point this will probably end up in WDL, but it hasn't yet.
Comment...
Question: Do you like Marillion (or at least have you ever heard of them?)
Asked by YesIamHuman! (89.180.115.x) on July 13 2012, 2:20pm
Reply on July 16 2012, 7:08pm:
    Haven't heard of them, but I will google.
Comment...
Question: Whats your process when starting a project? Do you plan it all out or just dive into coding? What code aspect do you start with?
Asked by Eagle (64.134.130.x) on July 13 2012, 5:47am
Reply on July 16 2012, 7:07pm:
    I try to at least understand what it is I'm doing before I start coding, but sometimes you have to start before you can fully understand... At any rate, I'm usually prepared to throw a lot away.
Comment...
Question: is there a pinterest account verification bot?
Asked by justin (199.8.28.x) on July 11 2012, 7:27pm
Reply on July 12 2012, 6:51pm:
    I don't know what this means
Comment...
Question: What denial of service (if any) did you build into shoucast/gnutella? Any simple/clever tricks?
Asked by Will (24.234.85.x) on July 11 2012, 6:51pm
Reply on July 12 2012, 6:52pm:
    Hmm you mean anti-DoS stuff? Not a whole lot.
Comment...
Question: your main music computer, pre, custom or self built
Asked by stumpy1 (63.192.169.x) on July 11 2012, 11:07am
Reply on July 12 2012, 6:52pm:
    I don't really have a main music computer, but in the sound booth I have an old Core Duo (crappy) MBP. At home I have a self built Q9500 box.
Comment...
Question: I dunno what this means, but would it improve reaper integration? musescore.org/en/node/17294
Asked by Bharath Kumar (117.192.139.x) on July 10 2012, 1:26pm
Reply on July 12 2012, 6:52pm:
    Seems to be similar to what we offer with reascript now, but with better integration and more persistance, perhaps?
Comment...
Question: Do you get contacted to write music for other people? Are you that good :P
Asked by Bharath Kumar (117.202.31.x) on July 9 2012, 7:23pm
Reply on July 10 2012, 12:28am:
    No, I'm terrible at writing music. Completely horrible.
Comment...
Question: How do geniuses design something so complex (mp3) but then leave the last step (front end) wide open for someone to get rich?
Asked by Will (70.173.150.x) on July 8 2012, 6:40pm
Reply on July 9 2012, 2:25am:
    ...and then let Apple dominate it, too? I guess when you set out to build something, you don't always see the big picture.
Comment...
Question: Any thoughts on Bitwig? Specifically the vertical non-linear stuff that can be docked with the linear arrange view...
Asked by Ryan (24.83.164.x) on July 6 2012, 9:44pm
Reply on July 9 2012, 2:25am:
    Haven't used it.
Comment...
Question: Would you ever consider kick starter funded contractors to implement FRs into your software?
Asked by Joseph (42.241.23.x) on July 6 2012, 10:15am
Reply on July 9 2012, 2:26am:
    If they can do it via our plug-in API, sure.
Comment...
Question: Now you've had time to think, favourite album-of-all-time?
Asked by Joseph (42.241.23.x) on July 6 2012, 8:15am
Reply on July 9 2012, 2:31am:
    I'd say some of my favorite albums would include (in no particular order): Pink Floyd - Dark Side of the Moon, Red Hot Chili Peppers - Blood Sugar Sex Magik, Grandaddy - The Sophtware Slump, Radiohead - Kid A + Amnesiac, Mogwai - Government Commissions, Pearl Jam - Ten, Portishead - Dummy, and maybe Sgt. Pepper's... but I'm missing some.
Comment...
Question: Working for a very big company, and working for a not-so-big company, whick do you think is better?
Asked by bboy (210.21.230.x) on July 6 2012, 12:52am
Reply on July 9 2012, 2:32am:
    Each has their own benefits and drawbacks, but I'd take not-so-big any day if I could make it work.
Comment...
Question: Have you used the history.js library?
Asked by Steve (218.186.12.x) on July 4 2012, 9:03pm
Reply on July 9 2012, 2:32am:
    Nope. I haven't done a lot of javascript, really.
Comment...
Question: If you shoutcast from PHP successfully, what does the C implementation offer that makes it superior?
Asked by Will (70.173.150.x) on July 4 2012, 4:03pm
Reply on July 4 2012, 4:19pm:
    Performance and the ability to scale way, way higher. Fortunately when I stream these days only at most a few people listen at any given time.
Comment...
Question: whats ur favorite song?
Asked by kalie (50.131.144.x) on July 4 2012, 12:46am
Reply on July 4 2012, 3:50am:
    Gah, hard to pick. Favorite album-of-all-time? Also hard, hmm..
Comment...
Question: What features of the IDE make you more productive than a text editor? I recall you said "I don't use that class browser shit".
Asked by Will (70.173.150.x) on July 3 2012, 4:00pm
Reply on July 4 2012, 3:51am:
    The biggest benefit is really just build integration and jumping to errors, probably. I do often use vim, but without any of that fancy integration (even though it probably does support it). In xcode I often use modifier+doubleclick to go to definition etc, but it often doesn't work right anyway.
Comment...
Question: me again. How do you increase line thickness in Lice? i.e. highlighted envelope in reaper
Asked by olilarkin (144.32.204.x) on July 3 2012, 2:39pm
Reply on July 3 2012, 3:13pm:
    Heh, doesn't really support that -- what the highlighted envelope drawing does is:
      LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
      if (envselected)
      {
        if (abs(xend-xstart) > abs(yend-ystart))
        {
          ++ystart;
          ++yend;
        }
        else
        {
          ++xstart;
          ++xend;
        }
        LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
      }
    
    
Comment...
Question: thanks. worked a treat. Sorry if it's a basic Q, but could you explain the Lice blit modes or point to a site that does?
Asked by olilarkin (144.32.156.x) on July 2 2012, 10:25am
Reply on July 2 2012, 2:25pm:
    Sure, I guess this should be in lice.h but isn't (note if alpha is non-1.0, it changes things too). The actual logic for these is in lice_combine.h.
    • LICE_BLIT_MODE_COPY: copies input to output -- if alpha is not 1.0, mixes accordingly
    • LICE_BLIT_MODE_ADD: sums input and output -- if alpha is not 1.0, output + alpha*input is used, so for subtraction you can use ADD with alpha of -1.0.
    • LICE_BLIT_MODE_DODGE: output = output/(1.0-input), more or less
    • LICE_BLIT_MODE_MUL: output = output*input
    • LICE_BLIT_MODE_OVERLAY and LICE_BLIT_MODE_HSVADJ: ok I need to go get coffee now. fail.
Comment...
Question: Have you used a Lumia 900, what doya think?
Asked by BobJones (196.210.237.x) on July 1 2012, 12:26pm
Reply on July 2 2012, 2:58am:
    I haven't, I'd like to though, I hear the hardware is quite nice.
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS