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: thanks. any hint for Error setting periods. Try -nbufs 2 through -nbufs 16? device works fine w/ jack etc
Asked by gohai (62.178.23.x) on July 10 2011, 11:01am
Reply on July 10 2011, 7:24pm:
    Try a different block size? Or perhaps JACK has the device open.. I think someone made a JACK patch for ninjam, too...
Comment...
Question: have you thought about making ninjam compilable on modern linuxes? even the old debian package sources don't work here (amd64)
Asked by gohai (62.178.23.x) on July 9 2011, 7:25pm
Reply on July 9 2011, 11:13pm:
Comment...
Question: android or iphone?
Asked by John (70.173.150.x) on July 9 2011, 5:39pm
Reply on July 9 2011, 5:53pm:
    iphone
Comment...
Question: ok this is off topic.. but I was wondering what blood type you have?
Asked by Scooter (50.30.33.x) on July 8 2011, 12:21pm
Reply on July 9 2011, 5:53pm:
    that's private health info there =)
Comment...
Question: don't you think messing with ctags and gvim is much better than intellisense of VStudio? (for autocompletion of large libraries)
Asked by K�hner (74.63.112.x) on July 8 2011, 9:08am
Reply on July 9 2011, 5:54pm:
    I haven't used ctags, maybe I should.
Comment...
Question: Can you point me to resources on how to implement CD-Keys for software products?
Asked by Stench (67.88.171.x) on July 6 2011, 7:47pm
Reply on July 9 2011, 5:57pm:
    hmm, I forget. The classic way was to have a key which had 8-15 different validation mechanisms, of which you would only implement one initially, and gradually as people make keygens you enable more of them. That is a losing battle, though.

    The newer way would be to use asymmetrical encryption (such as RSA) to sign some tokens with your private key, which the app then verifies using the public key. For this to be useful, though, you'll need a pretty decent sized key, which means you'll likely want to use a registration file rather than a simple key string.
Comment...
Question: Have you ever opened up twitter next to this page, and observed the similarities between the format on both? (hint hint ;)
Asked by Eric (24.252.251.x) on July 3 2011, 10:45pm
Reply on July 6 2011, 4:58pm:
    I so much appreciate the distributed nature of the internet, though, it's a shame to let it all get funneled through a few aggregators...
Comment...
Question: what's the longest vacay you took away from coding?
Asked by John (70.173.150.x) on July 3 2011, 9:02am
Reply on July 6 2011, 4:58pm:
    Hmm maybe a week or two? Hard to remember going more than a few days without programming any time recently...
Comment...
Question: Do you salt your sha1/md5 messages?
Asked by John (70.173.150.x) on July 1 2011, 5:26am
Reply on July 1 2011, 10:27pm:
    Generally, yes, I would.
Comment...
Question: have you downloaded my swell test app yet...would like to take down the zip file (shouldn't be distributing some of those files)
Asked by olilarkin (86.31.114.x) on June 30 2011, 7:11pm
Reply on July 1 2011, 4:26am (edited at July 2 2011, 4:00am):
    Edit: yes, grabbed it (the updated version I guess)
Comment...
Question: how old is me?
Asked by natalie (173.33.149.x) on June 30 2011, 4:33pm
Reply on July 1 2011, 4:27am:
    I feel pretty old some days.
Comment...
Question: to get iplug on IOS, i need to modify some SWELL/LICE stuff... do you think i can use swell-gdi-lice.cpp?
Asked by olilarkin (144.32.156.x) on June 30 2011, 11:37am
Reply on June 30 2011, 1:46pm:
    With a little modification, I think you'd want to use swell-gdi.mm ... swell-gdi-lice is more for the linux/generic ports.
Comment...
Question: What's is red?
Asked by Me and myself (217.124.181.x) on June 30 2011, 7:16am
Reply on June 30 2011, 1:46pm:
    a color?
Comment...
Question: What is meant by "cloud computing"?
Asked by Laura@VVS (174.254.227.x) on June 30 2011, 12:36am
Reply on June 30 2011, 2:31am:
    At the most basic level, it means we don't run our own servers anymore, instead we run them on virtualized servers inside a big datacenter or group of datacenters. You can also take more advantage of this setup by dynamically increasing or decreasing the amount of resources you are using on the fly, according to demand...
Comment...
Question: What font do your use to write code on your editor?
Asked by Hugo (200.175.60.x) on June 29 2011, 11:43pm
Reply on June 30 2011, 2:29am:
    Courier 10, I think, which is VC6's default, mostly.
Comment...
Question: Is your belly button an innie or an outie?
Asked by Brad Neuberg (69.170.160.x) on June 29 2011, 1:25am
Reply on June 30 2011, 2:29am:
    innie.
Comment...
Question: Do you ever checkup on winamp.com to see the state of your old products, or do you just not care now?
Asked by Will (24.234.128.x) on June 28 2011, 5:53pm
Reply on June 30 2011, 2:29am:
    From time to time, yes, but not religiously. You definitely have to let go...
Comment...
Question: On Win32, what do you use to load images like jpg and gif into the program window? GDI+? Any good examples to refer?
Asked by Xumbrego (161.148.171.x) on June 27 2011, 7:21pm
Reply on June 27 2011, 7:51pm (edited at June 27 2011, 8:46pm):
    LICE has functions for these, using jpeglib, giflib, libpng, etc.. check out the test app or SnapEase, here is what you'd typically do:
    
    case WM_PAINT:
      {
        PAINTSTRUCT ps;
        if (BeginPaint(hwnd,&ps))
        {
          LICE_IBitmap *f = LICE_LoadImage("whatever.jpg");
          if (f)
          {
            LICE_SysBitmap bm;
            bm.resize(f->getWidth(),f->getHeight());
            LICE_Blit(&bm,f,0,0,0,0,f->getWidth(),f->getHeight(),1.0f,LICE_BLIT_MODE_COPY);
            BitBlt(ps.hdc,0,0,f->getWidth(),f->getHeight(),bm.getDC(),0,0,SRCCOPY);
            delete f;
          }
          EndPaint(hwnd,&ps);
        }
      }
    break;
    
    You could also remove the LICE_Blit and pass a sysbitmap into LICE_LoadImage() directly, but I did it the above way since often you'll want to composite things in lice before drawing them anyway...
Comment...
Question: Any warm fuzzies for these guys: whispersys.com? Or don't much care for that stuff [encryption ie:waste] anymore?
Asked by roberttheiii (155.201.35.x) on June 27 2011, 1:22pm
Reply on June 27 2011, 1:50pm:
    I haven't looked at that. I do love TrueCrypt, and appreciate HTTPS too, though...
Comment...
Question: I'm 18, and I know Java. Should I learn Perl or Python, next?
Asked by ChrisF (76.99.141.x) on June 25 2011, 6:12am
Reply on June 25 2011, 7:22pm (edited at June 25 2011, 7:23pm):
    I guess that would depend on what you'd like to do with your programming language... I should qualify that by saying that I haven't programmed much Python, but I do hear a lot of people who like it. Seemed odd to me to have meaningful whitespace, though I guess I tolerate that when writing makefiles... anyway.
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS