SecondThread's blog

By SecondThread, history, 4 months 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
  • +197
  • Vote: I do not like it

»
4 months 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).

»
4 months 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.

»
4 months 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

»
4 months 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 :)

  • »
    »
    4 months 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!

»
4 months 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.

  • »
    »
    4 months 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.

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 months 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).

»
4 months ago, # |
  Vote: I like it +10 Vote: I do not like it

This is actually very useful,thanks))

»
4 months ago, # |
  Vote: I like it +10 Vote: I do not like it

Worked well in last contest, thanks.

»
4 months 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.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

For some reason it doesn't work in Kazakhstan (tried on different computers and networks), although it works pretty good in China.

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can you use text to speech library to read out the verdict? Like "Accepted for X", or "Wrong Answer on pretest 2 for X"?

»
2 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Nice tool . But its not working on my chrome :( . I hear the message for AC , but the music does not play until I click on that tab.

»
2 months ago, # |
  Vote: I like it -11 Vote: I do not like it

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

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

    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.

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

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 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Is it possible to make it an browser extension/addon?

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

    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 weeks ago, # |
  Vote: I like it +36 Vote: I do not like it

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 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it
»
10 days ago, # |
  Vote: I like it +3 Vote: I do not like it

Seeing a green ACCEPTED hits differently.