Блог пользователя SecondThread

Автор SecondThread, история, 4 года назад, По-английски

CF Notifications

Want an easy-to-use tool to notify you when you get a problem correct? Looking for an inspirational jingle to celebrate when you AC? Wish you could just move on to problem B immediately after submitting A and had someone to let you know in case you got it wrong? Now you can!

CFNotifications.com is a simple website that does this for you. All you have to do is type in your handle and click login.

It works on all CF rounds, and also other submissions if you are upsolving, practicing, or running a VP on your own. Personally, I just leave it on a second computer with the volume turned up and then I don't have to worry about it ever.

How it works

It rechecks Codeforces every 4 seconds for new submissions, or every 1 second if you have a submission that is judging. It uses the CF API and I did my best to make sure it is as low-impact to the servers as possible while still giving results pretty much instantly.

Let me know what you think!


Updates!

  • Per request, I added the ability to play a custom sound on AC (or play no sound at all). The changes are live now, so you should be able to see, but basically now you can enter 'none' if you just want the notification that you got the problem right and no 'distracting' inspirational sound effect, or something like 'https://www.youtube.com/watch?v=dZLfasMPOU4' if you want to hear 3 minutes of Stacy's Mom every time you solve a problem!

  • I also made it save your handle (and the custom sound if you choose to use one) as a cookie, so it should be even easier to use. If you have been there before, everything will auto-fill so you can literally just click the button and it's working.

  • Проголосовать: нравится
  • +197
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by SecondThread (previous revision, new revision, compare).

»
4 года назад, # |
  Проголосовать: нравится +13 Проголосовать: не нравится

I think you should remove that music when AC is given, because it distracts you while reading the next problem. Otherwise, thanks, good job.

»
4 года назад, # |
  Проголосовать: нравится +37 Проголосовать: не нравится

great tool ! it would be awesome if the user had the option to customize the music

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    yes! I want to hear FFVII victory music whenever i get an AC and Undertale determination when I get a WA

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I have suggestion to make! How about it only notifies when the verdict is any other than Accepted. Since being notified during the contest for AC is just distraction :)

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +43 Проголосовать: не нравится

    Then you never know if the queue is just stuck or if you actually got it. I think knowing you got it for sure (or at least that you passed pretests for sure) is helpful so that you can then safely permanently context switch all of that out of your head.

    I always appreciate suggestions though!

»
4 года назад, # |
Rev. 2   Проголосовать: нравится +36 Проголосовать: не нравится

Isn't Codeforces already supposed to be doing that for you? I quite often see a gray bubble with white text saying "Accepted" or "(Wrong answer) or (Runtime error) or (Time limit exceeded) on test x" on the bottom right of the screen while reading B after submitting A.

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +25 Проголосовать: не нравится

    I think it is suppose to, but often it doesn't when the queue is delayed, and you can miss it if you go back to look through your code to make sure you didn't forget some case like I often do. This one is as reliable as hitting f5 until you see that you have a verdict.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Wow!it can be really useful during contests .. thanks

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by SecondThread (previous revision, new revision, compare).

»
4 года назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

This is actually very useful,thanks))

»
4 года назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

Worked well in last contest, thanks.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It would be great if there was a "test" button after I log in to check if everything is working fine (Sometimes I mute my PC).

Currently I have need go to submit page and submit a compile error.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can this be made firefox and chrome extension just as CF-predictor?

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    It can. The server only serves the initial webpage, so it would be more suitable as a browser extension/userscript.
    The only (minor) advantage to have a website that I can think of is that the server will always serve the most recent version, whereas extensions/userscripts can take a bit longer to update for all users or may not update at all if disabled.

»
4 года назад, # |
  Проголосовать: нравится -11 Проголосовать: не нравится

Another Application: You may also add your friend's cf handle to let know of his submissions (just for fun :)

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Honestly, idk why this comment has so many downvotes. I use it all the time so I know when my opponent submits when I am doing lockout contests against someone. Occasionally you'll get notified when they get it right by whatever system you're playing on, but it's also helpful to know when they get something wrong too since you know what they're working on then.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Alright, so this should now handle system tests a little bit better than it was before. Also, the default sound is added back in, and there is now another check box that you can use if you want to not have the computer voice saying you got the problem right and instead you just want to hear whatever sound you selected (or the default one is you didn't select any).

Let me know if there's anything else that would make this a better tool! :)

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Oh Hello! This is Aryan. I am a subscriber of your youtube channel as well :) I had a suggestion. Could you please add a feature so that It tells us the change in rank as well! So it would save a lot of time checking the standings. Thanks !!

»
4 года назад, # |
  Проголосовать: нравится +36 Проголосовать: не нравится

Is it possible to announce non-AC results?

I want to make a challenge with this, for every non-AC submissions the user must play one full blast of despacito.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

This is great! I can now listen to twice whenever I AC a problem :)

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
4 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Seeing a green ACCEPTED hits differently.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

A chrome notification as well would be great!

»
4 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Custom sounds like that guy farting into a mic in a supermarket are a must!