The Problem Today I had a hard 2 hours, and if you have found this blog post, I bet we are in the same shoes. I was working on a ASP .NET + windows azure project, and I needed the HtmlEditorExtender control from the Ajax Control Toolkit . I was lucky to find a control for my needs. So far so good. I've installed the toolkit with NuGet Package manager, it added a reference to the assembly to my web.config. I've used the following code where I needed the HtmlEditorExtender: < ajaxToolkit:ToolkitScriptManager runat ="Server" /> < asp:TextBox ID ="txtComments" TextMode ="MultiLine" Columns ="60" Rows ="8" runat ="server" /> < ajaxToolkit:HtmlEditorExtender TargetControlID ="txtComments" runat ="server" /> </ asp:Content > Just to see how this control works. As you can bet ajaxToolkit is the refe...
Disclaimer: I'm not a python developer :) Yesterday I've found a tool that I needed, it was written in python. Nothing special, get a list of links from a csv, login to a page, and access a link from the opened page by match. The script was old(2 years), and it needed some refinement, but I managed to make it work to start griding my over 7000 links, after 30 minutes later I saw it crashed with a strange error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 50: ordinal not in range(128) I've started to investigate the issue, found some information on stackoverflow, but I was confused, I don't really know python that well. What I've found is to make some changes in the config files from python, which I don't really know how to do and it was not recommended, or to use decode('utf-8') function on the string variable and usage that caused the issue. As you can see in the full error log, listed down below, I tra...
Am petrecut foarte mult timp cu depanarea codurilor scrise de mine sau de altii. Nu conteaza despre ce limbaj de programare este vorba: C, C++, C#, Java, PHP, HTML, CSS, ASP, etc. Pana la urma cel mai mult timp il vei pentrece cu depanarea codului pe care il scrii, sau scris de altii. In aceasta ordine de idei am elaborat 14 sfaturi pentru programatori incepatori: Rabdare. Depanarea necesita foarte multa rabdare. Trebuie sa ai o gandire calma si rationala, cu cat te enervezi mai mult cu atat scade sansa de a reusi sa-ti repari codul. Google este prietenul tau. Foarte multi oameni care au invatat sa programeze au avut aceleasi probleme ca si tine. Poti gasi solutia la problema pe care o ai, sau alte solutii pe care trebuie sa le adaptezi pentru problema ta, si cum se foloseste functia sau clasa de care ai nevoie. Pe internet sunt foarte multe detalii despre functia sau clasa pe care vrei s-o folosesti, doar trebuie sa cauti. Citest...
Comments
Post a Comment