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: I have to ask... What�s the perception you have of Portugal and the Portuguese. No need being polited!
Asked by THe_Portuguese (217.129.147.x) on February 19 2012, 7:51pm
Reply on February 19 2012, 9:31pm:
    I don't have any real perception, I've never been, but would like to go, though I suppose I should learn some Portuguese first...
Comment...
Question: As an old Win32-head, how did you approach OSX programming? What did you try to learn first?
Asked by Rodrigo (187.112.250.x) on February 18 2012, 7:44pm
Reply on February 18 2012, 11:40pm:
    Probably the biggest help would be getting comfortable with objective C's syntax, and getting used to things like [obj isKindOfClass:[NSWhatever class]] and [obj respondsToSelector:@selector(doesSomething:)] and so on. Then you learn some basic cocoa stuff, and spend ages digging through the awful documentation to figure out how to do what you want to do. I liked it so little, I made sure that I'd never have to do it again (hence SWELL wrapping the cocoa).
Comment...
Question: When dealing with large changes in a system, do you prefer a gradual change or a hard switchover? (postgres > mongodb for me)
Asked by neuman (184.152.73.x) on February 17 2012, 9:49pm
Reply on February 18 2012, 12:11am:
    Gradual when possible, for sure...
Comment...
Question: I run out of cool names for servers. Would you help with a few suggestions? make it geeky and/or cocky :)
Asked by gio (94.66.16.x) on February 17 2012, 5:47pm
Reply on February 18 2012, 12:11am:
    Characters from your favorite movies are always good.
Comment...
Question: Do you ever get annoyed with comentaries in Reaper forums with critics to options you make with the software?
Asked by Curiosity (89.180.54.x) on February 17 2012, 11:49am
Reply on February 18 2012, 12:12am:
    Yeah, hearing criticism from other people can be tough; sometimes you get good stuff from it though, and the rest you mostly need to brush off...
Comment...
Question: sorry.. another q... how do you resize a window in swell?
Asked by olilarkin (144.32.204.x) on February 15 2012, 12:40pm
Reply on February 15 2012, 7:00pm:
    SetWindowPos()?
Comment...
Question: any tips for compiling eel2 on OSX? forum.cockos.com/showthread.php?t=96874 thanks
Asked by olilarkin (86.13.97.x) on February 15 2012, 8:50am
Reply on February 15 2012, 7:00pm:
    Answered (don't include asm-*.c in your project). :)
Comment...
Question: I would like to ask you several questions about your participation to Gnutella, for my ending studies project. Tks
Asked by NaigJ (78.223.11.x) on February 13 2012, 1:20pm
Reply on February 13 2012, 5:34pm:
    Sure, you can post here or email.
Comment...
Question: Hi Justin, have you ever been to Romania? If not, do you have any intentions to visit it?
Asked by Julian (89.35.166.x) on February 13 2012, 10:30am
Reply on February 13 2012, 5:35pm:
    I haven't.. I wouldn't mind, I believe I am descended partly from there...
Comment...
Question: imgur.com/bG6iq nice shadow to emphasize the Z order relationship... Where should I look for similar functionality?
Asked by gio (94.66.83.x) on February 12 2012, 9:02pm
Reply on February 13 2012, 12:15am (edited at February 13 2012, 2:16am):
    That is done using LICE_GradientRect().. Or maybe it's an overlayed image, I forget (it can be either depending on the theme)
Comment...
Question: default value of pointer to struct is always zero! why?
Asked by ruchira (175.157.40.x) on February 11 2012, 4:09am
Reply on February 11 2012, 3:38pm:
    Hmm, it is?
Comment...
Question: linked loader implementation for images of LICE is cool! Is it your idea?
Asked by ruchira (111.223.171.x) on February 11 2012, 3:06am
Reply on February 11 2012, 3:38pm:
    Yeah, though I doubt it is original... also, sometimes depending on how things are build the linker fails to call the constructor for the registration objects, sadly...
Comment...
Question: Do you ever get annoyed with sexism towards men, or do you think men's rights groups are all just whiny misogynists
Asked by Neil (86.17.97.x) on February 10 2012, 6:49pm
Reply on February 11 2012, 1:17am:
    No, I don't think we can really complain, we've had it so good...
Comment...
Question: Did you write any Windows desktop programs with C# and .NET? Would you recommend it instead of C++ in any particular situation?
Asked by Rodrigo (161.148.171.x) on February 10 2012, 4:22pm
Reply on February 11 2012, 1:19am:
    I haven't had any real experience using C# or .NET, so it would be hard for me to recommend. I'd imagine it is easier to get started with, though, as win32/C++ is a complete roll-your-entire-environment mess.
Comment...
Question: do you think your skill/technology would be out of date if you had to find a job like the rest of us?
Asked by poop (68.28.147.x) on February 9 2012, 2:33pm
Reply on February 9 2012, 4:15pm:
    Depends on the job, I'd think!
Comment...
Question: UpdateLayeredWindow: should i multiply each pixel rgb values with its alpha? how? value
Asked by ruchira (175.157.19.x) on February 8 2012, 3:44am
Reply on February 8 2012, 5:04am (edited at February 8 2012, 5:05am):
    Ah yeah, it wants premultiplied alpha, I forgot about that:
    
    void pf(LICE_pixel *p, void *parm)
    {
      int a = LICE_GETA(*p) + 1;
    
      // not technically correct, removing the +1/-1 and changing /256 to /255
      // would be more correct (and also quite a bit slower).
      *p  = LICE_RGBA(
               (LICE_GETR(*p)*a)/256,
               (LICE_GETG(*p)*a)/256,
               (LICE_GETB(*p)*a)/256,
               a-1);
    }
    
    LICE_ProcessRect(&a,0,0,a.getWidth(),a.getHeight(),pf,NULL);
    
    
    (This would also mangle the buffer, so you'd want to do it in a temporary buffer if you don't redraw every frame completely)
Comment...
Question: I'm sure the answer is some deep math, but why does the frequency response of graphical equalizers bubble up all the time?
Asked by John (69.15.110.x) on February 7 2012, 5:01pm
Reply on February 7 2012, 5:03pm:
    Bubble up?
Comment...
Question: Playing 2 identical waveforms at the exact same time will not yield a natural mix. How does that work in nature? Implausible?
Asked by McThib (131.107.0.x) on February 6 2012, 7:41pm
Reply on February 6 2012, 11:05pm:
    What does "natural mix" mean? And in nature, do you mean having two trumpets playing identically infinitely close to each other, or with two analog signals being combined on a copper wire?
Comment...
Question: Do you hate when people ask for features from other DAWs? Is it really hard to do proper area selection (PT-style) for Reaper?
Asked by EvilDragon (88.207.58.x) on February 4 2012, 8:11am
Reply on February 6 2012, 4:55am:
    You have to make it make sense within the context of REAPER, vs. making it be-like-some-other-app, yeah.
Comment...
Question: how to use UpdateLayeredWindow function with LICE?
Asked by ruchira (61.245.172.x) on February 3 2012, 3:44pm
Reply on February 6 2012, 4:59am (edited at February 6 2012, 5:01am):
    Probably something like:
    
      LICE_SysBitmap a; // draw there
      int alpha=255;
    
      HDC dc = a.getDC();
      RECT r;
      GetWindowRect(hwnd, &r);
      SIZE rs = {r.right-r.left, r.bottom-r.top};
      BLENDFUNCTION blendPixelFunction= { AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA };
      POINT psrc ={0,0};
      UpdateLayeredWindow(hwnd, GetDC(NULL), (LPPOINT)&r, &rs, dc, &psrc, 0, &blendPixelFunction, ULW_ALPHA);
    
    
    (this assumes you have a window with no titlebar etc, like our splash screen...)
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS