Sticky

Post general comments here

by Alex on Apr 28, 2015 - 11:48:46 pm UTC
  • (3/0)
This is the place to post general comments, such as pressing bugs or broader questions.

Comments (Search)

When I try to submit in Pascal, I get this compile error:

74099.pas(16,1) Error: Can\'t call the linker, switching to external linking
74099.pas(16,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)

I tried resubmitting correct code from earlier solved problems, but it gets the same error. What does this mean?

I'm having a really hard time fixing this. Restoring stuff from backups made a few months ago didn't help---so I think the problem might be some recent reconfiguration on the host side. I'll see what I can do about this.

I've implemented a dirty workaround, so Pascal should be working again (but who knows for how long?)

@Admins - Might I suggest having a separate colour for Mr. Fenty's students? Or a separate page? The Users page's getting rather cluttered with the mess of blue *Other users*.

A PHP Error was encountered

Severity: Warning

Message: imagettftext(): Could not find/open font

Filename: controllers/submissions.php

Line Number: 466

Any source that isn't yours, i.e. any that opens as an image, will show this error.

Oops, I had this problem last time too, due to the font not being installed. It should be fixed

Aaaand it's broken again.

Damnit. Every time we've moved the server so far the font broke. This time I put it in the wrong folder... it's fixed now.

A PHP Error was encountered

Severity: Warning

Message: imagettftext(): Could not find/open font

Filename: controllers/submissions.php

Line Number: 482


It's baaack. :P

/necropost


Hah! I remembered this time! Take that!

What happened to all the users?
Did some reorganization happen which I was not aware of?

*Only users that have logged on within the past month are shown

It seems the Sort by Users on the Problems page doesn't work quite as expected.
E.g.
Coded Message - 15 Users
Huffman Encoding - 5 Users
Cookies - 14 Users

Settings:
All default, except Sort is set to Users and Hide solved problems is checked.

This only occurs with problems that were in a contest.

In fact, it appears to be because
-snip-
takes the union of the number of users who solved it in the contest, and the number of users who solved it on judge.

How did you obtain the SQL query? >_>

Minor security overlook?

I thought I had mentioned it before; maybe not.

You should put the sort type as POST (or find another way to secure it, such as hardcoding allowable values or making the form values indices, then retrieving from an array); it's the only portion that appears to be changeable.

(To be honest, I did poke around with it to see if it could be abused by an SQL injection; thankfully, I don't think that's possible.)

Thanks, will fix. We use CodeIgniter's active record API to avoid injection, so it's all good. I'll just validate the sort parameter server-side.

Uhhh...
I can't view the Problems section now.


I remember Brian posting some hint about this a while back, but I can't seem to find it even with the comment search.
I realize it didn't seem to work back then, but I would still like to take a look at it.
Does anyone know where it's posted?
Thanks.

Said comment might not actually exist.

It's
cin.sync_with_stdio(false)
and
cout.sync_with_stdio(false)
Note that after breaking synchronicity, you will no longer be able to use the stdin and stdout file pointers, even implicitly (so scanf, printf, and so on will not work).

Ah you're probably right.
I must have been referring to the one you made on the compsci.ca forums.
Does this work on Judge?

It works, but I don't think cin became faster than scanf until a newer g++ version.

Could you add problems from that contest?
Thanks!



One year ago, I had around 530 points. Now, my points have dropped to 413. Why?

That's odd. I only deleted programs within a certain time range due to extreme circumstances and it was an accident that it affected multiple people.

I'll see if I can get someone to explain what happened. :)

Jacob and I also deleted a bunch of identical pairs of solutions from different users (like when your code was the same as Bob's or Logical1111's)...

Did they lose their programs too? Half of them were written by me which I gave them as an exchange.

Jacob and I also deleted a bunch of identical pairs of solutions from different users

Is it possible to change ur username?

If you have a really good reason, I'll consider it.