Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

SecondThread's blog

By SecondThread, history, 9 days ago, In English,

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.

 
 
 
 
  • Vote: I like it
  • +178
  • Vote: I do not like it

»
9 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
9 days ago, # |
  Vote: I like it +13 Vote: I do not like it

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

»
9 days ago, # |
  Vote: I like it +37 Vote: I do not like it

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

»
9 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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 :)

  • »
    »
    9 days ago, # ^ |
      Vote: I like it +43 Vote: I do not like it

    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!

»
9 days ago, # |
Rev. 2   Vote: I like it +36 Vote: I do not like it

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.

  • »
    »
    8 days ago, # ^ |
      Vote: I like it +25 Vote: I do not like it

    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.

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
7 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Sorry, but I can't understand what the voice says. Can I personalize the voice?

  • »
    »
    7 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    The voice is the default Text To Speech (TTS) voice your computer uses I believe, unless you have one of the two that I prefer and have hardcoded, which is unlikely. (I think 'Microsoft Eva' and one other one that I forget the name of are higher priority than the default if you have them).

    • »
      »
      »
      6 days ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      It means that the voice varies from computer to computer? I am using Ubuntu 19.04, maybe that is the problem.

      • »
        »
        »
        »
        6 days ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Yes, the actual sound is syntehsised locally on your browser, likely using features provided by your OS.

        Here is a demo (that I didn't make) of the speech synthesis system. If that doesn't work for you either, then it is likely an issue with the voices you have installed on your computer.

»
7 days ago, # |
  Vote: I like it +10 Vote: I do not like it

This is actually very useful,thanks))

»
7 days ago, # |
  Vote: I like it +10 Vote: I do not like it

Worked well in last contest, thanks.

»
6 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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.