Help us identify cheat solutions in Cody
Cody is a useful tool to practice MATLAB skills not only by solving the problems but also learn from each other’s solutions. Sometimes you see subpar solutions that are cheats and hacks. With the flagging feature we released recently, you can help us identify solutions that administrators, including Community Advisory Board members, can review and delete.
How to flag?
Flag Options - Only available on solutions
이 주제를 고정하시겠습니까?
이 동작을 수행하면 이 게시물이 고정되어 커뮤니티의 최근 토론 페이지 상단에 표시됩니다.
이 주제를 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
What a great idea, many thanks. However, I get an error message when I try it!
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Mark,
Could you give me some further info so I can troubleshoot this issue?
- Are you using incognito mode on your browser, by any chance? - Is this error happening for every solution you try to flag, or just specific ones?
Could you log out and log back into Cody, and try again?
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Arunika,
Thanks for the suggestions.
No, I'm not using incognito mode; I'm using Firefox for Android on a Galaxy S20.
I get the same problem on multiple solutions, and logging out and back in again hasn't helped.
I'll try to remember to try on a desktop browser in case the issue is limited to the mobile browser.
Regards,
Mark
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Arunika,
Just to follow up on this again. It seems to be an issue with Firefox for Android. I can flag solutions fine in a PC web-browser and in Chrome for Android. Perhaps its ad-block related? I'll investigate further and report back.
Regards,
Mark
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Sorry to keep posting on this thread, but just to note that it now no longer works on my phone on Chrome for Android either. I can't work out why neither Firefox nor Chrome mobile browsers work. I have turned off all ad-blocking, logged out and back into Cody, restarted the phone etc. but still not working. I hope you can work out what is going wrong!
(Edit) Now it's not working on my PC browser either. I get the "Server temporarily unavailable" error on all platforms.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Mark,
Thank you for following up on this issue and getting back to us with details. It does seem very strange - I was not able to reproduce the issue with my Android for either Chrome or Firefox (I'm using a Samsung Galaxy A02S). It will be difficult to investigate it further for mobile devices if I am not able to reproduce it.
As for the PC browsers - we could do some further debugging if you have the time. Could you please try to flag this specific cheat solution?https://www.mathworks.com/matlabcentral/cody/solutions/1706233
I can check in our logs more specifically to track what happens and investigate further once you try to flag it.
Again, thank you for working with us on this to help us figure out what's going wrong.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Arunika,
Sorry that I’ve not followed up for a while, but I’m still unable to flag hack answers. I still get the “server is temporarily unavailable” error. This problem occurs over different devices and with different browsers on those devices. I hope that you can get to the bottom of why it’s not working for me!
Regards,
Mark
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hi Mark,
Just following up on this. We have identified a possible cause for this and fixed it now. You should be able to flag solutions now. Please let me know if you still face any issues.
-Arunika
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Hey Mark,
I'm sorry to hear that you're still facing issues with flagging - I am looking into it currently, and I have a few candidates for plausible causes.
Could you confirm what URL you are trying to reach Cody through?
Is it like "https://www.mathworks.com/matlabcentral/cody/" or like "https://se.mathworks.com/matlabcentral/cody/", or "https://uk.mathworks.com/matlabcentral/cody/", etc.? It would be helpful if you could confirm what regional URL you are using to reach Cody.
-Arunika
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Could you try again to see if you are running into any issue? We had intermittent issues with our infrastructure yesterday.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
If it would be possible to include a check from a shared resource, it would be easier to prevent common methods to cheat. Overwriting assert and using regexp to execute code are hardly ever valid solutions. I would expect the vast majority to be basically those two hacks.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Thank you for the suggestion. We are going to continue to work on functionality to prevent common hacks.
이 답글을 영구히 삭제하시겠습니까?
이는 실행 취소할 수 없습니다.
Something that I've seen used before and personally think to be useful is creating a separate test case that analyzes the submitted solution to make regexp and assert (plus other functions used to break test cases) don't appear:
%
functions={'!','feval','eval','str2func','str2num','regex','system','dos','unix','perl','assert','fopen','write','save','setenv','path','please'};
assessFunctionAbsence(functions, 'FileName', 'solution_name.m');
이 작성자의 게시물
-
Discussion
-
Discussion
-
Discussion
-
Discussion
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)