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

Автор Betlista, 12 лет назад, По-английски

Hello coders,

probably some of you know CodeChef (another programming contest page).

Why am I writing about another page? Because I believe, that when you want to make your rating higher, you have to compete in contests. Some coders think, that practice and contest are the same (just solving the problems), but definitely they are not for me. In contest I'm under the pressure (time pressure, fear, that if I do not solve the problem my rating will be lower, ...) and so I'm doing a lot of mistakes in real contest (like not reading statement carefully, missing some conditions, trying to submit quickly without precise testing and so on). That's why I want to share with you, that on CodeChef page there are long contests. For me it's something in the middle between practice (no competition, no fun) and competition, because you are not under the time pressure.

But real reason, why I'm writing about CodeChef long contests is, that I worte extension for Chrome, that marks solved problems (what CodeChef page is not doing by default).

There were some extensions discussed in this question, but mine works better.

Description

Extension works for all problem tables. Green tick is for problems solved in contest, orange one is for problems solved in practice.

1.) long contests

long contests screenshot

2.) short contests

short contests screenshot

3.) practice

practice screenshot

Download and installation

From version 1.5 you can install the extension as regular Chrome/Firefox Plugin/AddOn

Chrome: https://chrome.google.com/webstore/detail/codechefcom-strike-throug/bgkejhlpkkdfglfcbhlghfekajbefalp?utm_source=chrome-ntp-icon

Firefox: https://addons.mozilla.org/en-US/firefox/addon/codechefcom-strike-throught-1/

To install the extension you have to:

1.) download it here

2.) unzip somewhere

3.) go to the Tools > Extensions in chrome settings

4.) than you need to enable developer mode and upload unpacked extension (from the location where you unpacked it)

New version 1.1 is available

Some minor bugs were fixed in version (problem tables on main page and on user profile page do not have additional header column).

New feature in version is, that problem title contains ticks if you solved the problem already — it is useful if someone has problem on forum, then you quickly know if you solved this problem already or not.

ticks next to the problem title

New version 1.1.1 is available (7.6.2012)

Some minor bugs fixed (problem with table on problem page and status page — submissions).

New version 1.2 is available (19.6.2012)

There were some changes on CodeChef page that made plugin not working, fixed for now, update link updated ;-)

New version 1.2.1 is available (21.6.2012)

Problem with facebook login fixed (if user user facebook to log in, extension didn't recognize logged user).

New version 1.3 is available (4.5.2013)

ww2.codechef.com fix + myRank implemented (shown in current contest ranking)

myRank screenshot

New version 1.3.1 is available (4.5.2013)

bug fixes

New version 1.4 is available (6.5.2013)

last result for unsolved problems

last result for unsolved problem

New version 1.5 is available (11.8.2013)

I fixed the problem and extension is now available in Chrome store:

https://chrome.google.com/webstore/detail/codechefcom-strike-throug/bgkejhlpkkdfglfcbhlghfekajbefalp?utm_source=chrome-ntp-icon

and also as Firefox AddOn:

https://addons.mozilla.org/en-US/firefox/addon/codechefcom-strike-throught-1/

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

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

    Thanks for your comment, you are right, fixed ;-)

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

      belista in my os(ubuntu 12.04 LTS) is not working. Warning: Google Chrome cannot prevent extensions from recording your browsing history. To disable this extension in incognito mode, unselect this option.

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

        First of all, are you using incognito mode? This is just a warning I think there is no problem, extension is not recording history...

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

thx:)

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

Nice work, it really helps :)

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

CODECHEF IS EVIL!!1

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

    Why? I like their long contests very much, I have a lot of time time to think about the problems.

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

Doesn't work for me... Ubuntu 10.04, Chrome Version 19.0.1084.56.

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

    I just checked with 1.2 version and it works fine on Windows XP, we will solve this using talk.

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

Nice extension, thanks :)

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

thx you:)

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

Before, I felt difficult and a little uneasy when solving problems on CodeChef because I didn't know which problem I did solve. But now, thanks for your extension, I can control my problems. Thank you so much!

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

Is it still available? I can't download it from link http://down.betlista.net/codechef-strike/codechef-strike-1.2.1.zip

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

    I'm sorry guys, server was down for a while, it's ok now, let's try it ;-)

    Good luck in contest.

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

    This download link is not working for me right now. Have you considered publishing this extension to Chrome's App Store instead?

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

      I'm sorry for late reply I was quite busy. Link is working again, thanks for posting.

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

the link is not working...any alternative link??

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

@Betlista >> Link not working!

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

Impressive !

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

The latest plugin 1.4 doesn't work on my chrome. Luckily I had 1.2.1 somewhere so I reverted back. Could I help by providing some debug information in case its bugged.

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

I've installed plugin today, but it doesn't work.

JavaScript Console says that there is "Uncaught TypeError: Cannot call method 'replace' of undefined" in lines 92 and 169 of codechef-strike.js.

I use Google Chrome v. 27.0.1453.110 m.

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

Not working :( I have loaded the unpacked extension. But nothing is striked in codechef....

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

    Hi,

    Simple workaround is to remove plugin, go to unzipped directory and edit file: codechef-strike.js then replace line var username = ....; with: var username = "";

    load plugin into chrome and enjoy :)

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

This is awesome! Thanks a lot!

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

Please update the chrome extension. v1.4 does not seem to work for the current monthly challenge @ http://www.codechef.com/JULY13

thanks

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

    found and fixed the bug: var username = $("#user-bar>.login-user a:contains('ccount')").attr("href").replace(/.*\//, ""); in lines 89 and 170.

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

And site is down once again

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

Does the link work yet?

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

I am using ubuntu 12.10 (chromium browser) but when i tried to load the unpacked extensions then it gives an error that "Could not load extension from '/path where i have extracted the file/'. Manifest file is missing or unreadable." How can i rectify this error for proper working of the extension. ?