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: Pardon me. I was humorously exaggerating if in order to change the mixed fonts across all borders in REAPER needs to be done by automation or an editor will do the job just fine. Unless, the mixed fonts are there by design to satisfy some specific reason. Okay, Mr.? :)
Asked by gio (94.66.76.x) on February 23 2014, 12:34am
Reply on February 24 2014, 2:01am:
    Ah yeah, at some point perhaps we should reconsider the dialog default font choices.
Comment...
Question: any idea how difficult would it be to make EEL/JS work on the OWL pedal (arm cortex M4)? That would be amazing.
Asked by olilarkin (81.100.230.x) on February 22 2014, 6:09pm
Reply on February 22 2014, 10:01pm:
    It would be quite a bit of work to target ARM, and probably some redesigning to make it sufficiently efficient for that CPU..
Comment...
Question: Not all dialogs use MS Shell Dlg in the powerhouse. A great majority uses MS Sans Serif, the former is way better in any case unless there is a reason to do otherwise. How would you address this issue, using string replace in the editor or with a neat Perl script? Greetings ;)
Asked by gio (94.66.76.x) on February 22 2014, 5:56pm
Reply on February 22 2014, 10:01pm:
    Hmm not sure I get the question.
Comment...
Question: I am getting 3 job opportunities. 1. Old stuff which i know m good at but relocation to new city, Mumbai, India 2. Something i have never done in my life....relocate to new country, London, UK. 3. Something m not very excited about which i have done before. No relocation, New Delhi, India.......please help
Asked by Desert Rain (122.176.161.x) on February 22 2014, 3:29pm
Reply on February 22 2014, 10:02pm:
    I really like East London and have never been to India, so I'm probably not the best person to ask. Soo...
Comment...
Question: Ah, makes sense. Signed negative int typecast to unsigned takes 0xFFFF and adds UINT_MAX+1 until it's within [0, UINT_MAX], making it larger than 4 (ia32) or 8 (x86_64) and the loop never runs. Fuckit cast the sizeof() to signed (int). 4or 8[edited]will fit easily.
Asked by Will (70.173.80.x) on February 21 2014, 7:44am
Reply on February 22 2014, 10:02pm:
    yeah (int)sizeof() takes care of it.
Comment...
Question: You'd think a cast would occur in the comparison. :(
Asked by Will (24.234.85.x) on February 21 2014, 12:57am
Reply on February 21 2014, 2:14am:
    It does, just in the other direction. This one got me too -- I had some code that wasn't working and I had to figure out why. "Hey wait this loop isn't executing, wtf?"
Comment...
Question: Sorry it truncated. When I tried it in gcc, the loop didn't execute a single time. I expected it to iterate from -1 to 3 and print 5 x's, but nothing outputs. Spoil my fun please.
Asked by Will (70.173.80.x) on February 20 2014, 5:14pm
Reply on February 20 2014, 11:29pm:
    hint: sizeof(x) is of type size_t...
Comment...
Question: Please explain for (int x=-1;x...
Asked by Will (70.173.80.x) on February 20 2014, 9:30am
Reply on February 20 2014, 4:35pm:
    I wouldn't want to spoil the fun ;)
Comment...
Question: How about them apples? The end is awesome! www.youtube.com/watch?v=fPEBY247mJE
Asked by Will (24.234.85.x) on February 18 2014, 11:43pm
Reply on February 20 2014, 4:37pm:
    Aight
Comment...
Question: Any tips on code refactoring? I'm always afraid of breaking sth. Do you use test automation?
Asked by Murgh (188.20.86.x) on February 18 2014, 5:09pm
Reply on February 20 2014, 4:36pm:
    If you can break it into smaller steps and keep them around as separate commits, that's good. Also, if you can leverage the compiler to catch mistakes (i.e. if changing the meaning of a variable, change its name too so that you have to manually check every use of it) that's good. And of course, test early and test often.
Comment...
Question: Can you explain why a bias is used in the exponent bits of IEEE754 floating point encoding?
Asked by Will (70.173.80.x) on February 17 2014, 11:20pm
Reply on February 18 2014, 2:04am (edited at February 18 2014, 2:05am):
    Here is a pretty good explanation of the format of floating point numbers. As to the question "Why?", hard to say -- perhaps early implementations found that it required less gates to use a bias rather than 2's complement? Also, since the extreme exponent values can signify infinity/NaN/zero/etc, perhaps 2's complement would make those bit patterns more work to detect. I'm really guessing here.
Comment...
Question: I have a NSIS question, I was thinking about Install Location, because my make's design largely to over install in and out both our partnered .exe venture. My question is in the heading does the Uninstall.exe over write the original first? Might it co-compile like mashing together? I don't know how to drop the install location whats known on init. Remain
Asked by Nicholas R Forys (173.31.164.x) on February 17 2014, 10:52am
Reply on February 17 2014, 2:40pm:
    It won't combine uninstaller executables, you'd want to write a new uninstaller (and have both). Or you could make your uninstaller execute the other too...
Comment...
Question: I guess... your last answer was either a test, or you were in a rush meant "Knowing how x/2 and x>>1 differ is important" ? :)
Asked by nitpickOS (46.218.205.x) on February 17 2014, 10:23am
Reply on February 17 2014, 5:33pm:
    Ahh oops yeah typo thanks! Glad someone has my back :)
Comment...
Question: Please describe 3 or 4 of your favorite bitwise operator tricks
Asked by Will (70.173.80.x) on February 16 2014, 1:14am
Reply on February 16 2014, 4:48am (edited at February 17 2014, 5:32pm):
    Hmm I dunno if I really have favorite tricks. x & (x-1) for checking if something is a power of two is somewhat handy. Knowing how "x/2" and "x>>1" differ is important, IMO, as well as "x%2" vs "x&1" (what code is produced by each, and why it matters, depending on types of course). Most recently I discovered this, which had never come up:
    for (int x=-1;x<sizeof(x);x++) printf("x"); 
Comment...
Question: total newb to code, taking basic online tutorials online tutorials which would be better to start with, so far I have worked thru the first few tutorials on Python on code.org, is that a good one to start with?
Asked by stumpbroke1 (67.182.191.x) on February 14 2014, 12:56am
Reply on February 14 2014, 9:00pm:
    No idea... Python still feels foreign to me for whatever reason... just enough subtle differences (and whitespace being important) to make it never click. Probably a good place to start though!
Comment...
Question: How hard would it be to add mousewheel support in Reaper's big dropdown menus (f.i. plugins with a large number of parameters and you want to utilize parameter modulation etc.; or long VST lists when right-clicking the FX button)?
Asked by Tinny (88.207.126.x) on February 13 2014, 4:12pm
Reply on February 14 2014, 9:01pm:
    Hmm if the OS menus don't natively support mousewheel, not sure how one would add it (might be possible, but would require a bunch of messing around to see)...
Comment...
Question: Have you ever read a computer organization or computer architecture book?
Asked by Will (24.234.85.x) on February 10 2014, 12:45am
Reply on February 11 2014, 2:48pm:
    I dunno, maybe? What should I be looking for in my memories to match that?
Comment...
Question: what softsynth plugins do you use or own if any?
Asked by stumpbroke1 (208.79.246.x) on February 9 2014, 11:27am
Reply on February 11 2014, 2:48pm:
    There are some classic SynthEdit plug-ins that are awesome, though, and Drumatic is too.. and BFD, and Addictive Drums. Kontakt too hmm... I don't use them all that much, but when I do....
Comment...
Question: Ever met Fabrice Gabriel? Thoughts? Strikes me as a guy as dedicated to technical detail as yourself. I'm aware this is a weird question.
Asked by mick (101.165.217.x) on February 8 2014, 9:24am
Reply on February 11 2014, 2:47pm:
    Not that I can recall, but I know people who like him a lot.
Comment...
Question: What kind of new superpower is the RMBP? The way it is presented looks like some kind of brain expansion. Is it permanent?
Asked by gio (2.84.100.x) on February 6 2014, 10:12pm
Reply on February 7 2014, 4:34am:
    Just a few manual commits...
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2024 Justin Frankel. | RSS