Jump to content

Lincoln

Member
  • Posts

    333
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Lincoln

  1. 1 hour ago, Daniel_Doyce said:

    I thought about incorporating 15 directly like you did, but I thought was would be considered inelegant.

    That's what sucks about these problems - too subjective. What are you trying to accomplish? Code clarity? minimum opcodes? memory space?

    I would have ventured something like (pardon my pseudocode)

    x = (num mod 3)

    y = (num mod 5)

    z = x + y

    if z < 2 then

    {

    if !(z)  then "Fizz Buzz"

    else if (y) then "Fizz" else "Buzz"

    }

    My argument would be that the mod operator is time consuming, so limiting to 2 mods saves time overall. I believe string addition is costly too, so this avoids that.

     

     

    The purpose is to get correct output with code that is not a trainwreck. Micro optimizing to eliminate mod ops is counterproductive for the original exercise. Your answer works but I'd be wary of your approach as it sacrifices clarity. 

     

    24 minutes ago, Daniel_Doyce said:

    Here's a really cheap way to do it with only two statements in an array structure starting at count 0:

    deeznuts[15] = {"Fizz Buzz", "", "", "Fizz", "", "Buzz", "", "", "", "Fizz", "Buzz", "", "Fizz", "", "" };

    print( deeznuts [ num mod 15 ] );

    Ok, make it work for all ints 1 to 1000. Or scalable for any arbitrary range.

     

    One missing requirement from the original problem was to print the integer if it wasnt any of the other cases. Its not much tougher but does require awareness of meeting none of the explicit conditions.

  2. I think i did have to answer it for one interview but i dont remember exactly, maybe 7 years ago.

    The original purpose of the question was to have a potential candidate actually write code and build/execute it to prove they could.

    IIRC it was created in response to receiving hundreds of applications from people who literally could not write even the most basic code.

    Its not supposed to be tricky and its not looking for overly clever answers. Its low pressure on purpose. The only goal was to filter out people who had no business applying for a programming position. 

    Of course nerds pick up on it and try to prove to each other how smart they which is why its gained so much traction online. And then who knows how it gets filtered through management types before winding up in an interview.

     

  3. i know the people involved and nobody is living large while asking for help. it's a tough situation for everyone involved and they're doing what they can. if you're not in a position to contribute that's fine, but I don't think it's necessary to shame them.

    • Like 3
  4. bump

    made some changes to attempt to find missing conversations.

    every conversation has an id. most of mine are in sequential order. so, if i'm going to an inbox page that doesn't load, i can start checking in order from the point of the last known conversation and see if the id turns up a good hit for me. i can find a bunch for myself this way, out of like 5 pages that don't load.

    some conversations have id's way out. what i think happened is when gc imported all the inboxes, they went user by user, maybe in order users joined NA, and created a new id for each conversation that user was in (that hadn't already been seen while processing another user). I joined 2008, which is relatively early. if you joined years later, most of your conversations may have been processed under the other parties' names, so this will be less effective. but it's the best i can manage right now.

    link now points to the newer version, just download and replace. the whole history gets downloaded again, so you don't need an existing xml file if you already did it. let me know how it works.

  5. 2 minutes ago, Gloves said:

    Nice.

    Now if only we had access to see our transactions...

    that's not available anywhere right? it seems like they pulled the bare minimum out of the old forum into the new one. 

    other than pm's i think the forum posts themselves are the only available info.

  6. howdy i wrote a mess of a little thing to pull your inbox messages from the gocollect forum.

    download here

    or find the link on the FRANK'S NES PATCHES page (use an adblocker please)

    it's a windows app. it will launch firefox loop through your inbox and read your messages. it saves your messages to an xml file on your machine. you can use the app to open the xml file from your machine any time after. there are some super basic filter for dates and a search term.

    *** requires firefox right now. i can work on chrome support if you need it.

    quickstart:

    extract the zip file

    launch nainbox.exe

    on the first run, click the download button

    put your NA username and password in the boxes and go (user and password not saved, just used to download)

    you'll get an xml file

    close the download window

    back on the main window click open and choose your xml file

     

    it looks terrible and will probably fail spectacularly if you look at it wrong but it was good enough for me to find an old message i was looking for. let me know if there's something you really need to get what you want out of your old messages.

    *** note that fuckin gocollect's forum is garbage and you will probably be missing several pages of inbox because their shit breaks. sorry, i haven't figured out how to work around their incompetence yet. if anyone has suggestions let me know thanks.

    *** edited 3/30 added some code to guess at possible conversations on a broken inbox page. probably not 100% but finds a lot. you may still be missing conversations unfortunately.

     

    image.thumb.png.8a72d6f700438a82d2fe492d19cc1d09.png

    • Like 2
    • Thanks 1
  7. 16 minutes ago, epiclotus said:

    I was a big C&C fan in middle school.  I'm still not sure about the CE, though.  

    Origin has a c&c bundle with all the games for like $20 and there are fan apps to support network play for.many titles. Buddy and I have been playing a bunch of red alert 2 battles.

    • Like 1
  8. 57 minutes ago, MiamiSlice said:

    bah, you gotta appreciate that rich patina!

     

    it shouldn't matter, this system should be valuable regardless, but sure, it would increase the value IMO

    I thought they had already identified a prototype game that was found with this system? that it was able to play? Am I mis-remembering? 

    There was a cart of some kind but iirc it's not working? Or just a bios cart to run the disc drive.

    It's been reverse engineered and emulated, and someone released a game that runs in the emulator and would theoretically run on the real thing.

  9. 14 minutes ago, Quest4Nes said:

    Real consequences to actions and saying someone deserves something are not the same. And its the whole "govt provided" part I dont agree with and will never. Providing needles enabling their bad life choices doesnt mean they wont get HIV. QMost addicts will probably die from drug use before HIV anyway

     

    Taking drugs and risking their life is their choice. They know the risks. No one inherently deserves it. Its a result of actions they know arent right. 

    Well, as with most things, reality disagrees with your worldview. 

    The people who make use of needle exchanges are those who are addicted beyond the point of making rational decisions. They're gonna find a way, clean needle or not.

    The people who benefit from needle exchanges are everyone. Reducing incidence of disease in a community is good for the community as a whole. It's a public service, and saves money in the long run. 

    • Like 5
  10. On 2/29/2020 at 1:01 AM, Andy_Bogomil said:

    It's a two way street. I have BINs up but have an auto reject for lowballs. It absolutely amazes me how many offers get default rejected which are usually set at about 60% of my asking price. Like does the buyer really think if I have a $100 item that I'm going to accept $50 or less? A lot of times people will hit the threshold and then when I come back with a counter offer it's ignored.

    I agree that rejecting a solid offer or ignoring an offer is frustrating when the option is enabled.

     

     

    I've made offers where 50% of asking would still be generous. Some people are detached from reality or have no intention of selling for anything reasonable.

    • Like 2
  11. So I make a post, and someone quotes it, I get a notification dot in the hamburger menu. I click on the bell, click on the thing, it takes me to the post and clears the notification.

    However I also get a pop-up at the bottom with "x has replied to you" or whatever. If I click that, it takes me the post, so I've seen it but the notification is still there. 

    Can clicking the pop-up link also clear that notification?

    Can just viewing the post clear the notification?

    • Like 2
  12. 12 minutes ago, TDIRunner said:

    I was really tempted to go with the AVS since it does everything I need and it's in a price range that I'm more comfortable with.  There is no question though that the NT Mini looks a lot better.  

    Agree to disagree, I think the nt looks terrible with a cart in place. The big avs lid is kinda awkward but overall I prefer it.

    The jailbreak abilities are very tempting though, but not $300 worth. I'd probably go with a mega sg if that was the goal, as those are very nice.

×
×
  • Create New...