Friday, 22 June 2012

My HP pavilion has a troublesome display


My HP Pavilion dv5t laptop... It's 4 years old and went through a lot during the last eight semesters. It is equipped with an  Intel Core 2 Duo P8600 CPU, a dedicated nVidia 9200M display adapter and a gorgeous 1680x1050 display.

BUT the display assembly is rather frail and didn't withstand my everyday workload and traveling. After a year and a half of service the display to randomly shut itself down and went white. I was cheap when I order this laptop and got only a year of warranty service and I had to buy a new LCD display.

It's been almost 2.5 years since the time I changed the display and right in the end of the semester - BOOM - another time consuming display issue. This time it is was a very annoying blinking:


Sometimes it goes blank for 3-5 seconds and keeps me from doing my business. On different OSes, the problem was still there, so I came to the conclusion that it was again a hardware issue. I've googled around and found other people with my problem - it was the LCD cable *dramatic music playing*.

Where I live(Bulgaria), I was offered only cable with display attached to it :) at the price of ~200$. So I ordered it from eBay and it costs around 10$.

While I was waiting for the cable, I continued searching around and I found this blog post: http://erkinson.altervista.org/repair-lcd-inverter-flat/ 

It's an Italian blog an what I got from it was, that I should remove the the front bezel of the display, unplug the cable, move it around a bit, and plug it back in. And it worked. The display is up and running and I'm saving the new display cable for the dark day, when it starts blinking again.

Thanks, Italian hackers!


Wednesday, 13 June 2012

WebKit# HTML editor for MonoDevelop pt.1

Finally the semester is over! I passed my last exam today and I feel unchained... But no time for partying just yet :)

During the past three weeks of my GSoC I haven't done a lot and I think a short resume of my work will fit in a few paragraphs.

As a beginning I've created a new dynamic library project in MD and called it AspNetEdit2. I didn't know whether to start editing the old AspNetEdit addin code in the extras/ folder, and I thought that a clean start would be better, plus when my addin matures it won't be that hard to merge it with the existing one, if needed.

For now the addin just offers a visual preview of the users HTML code. I have added display binding for WebSubtype.Html. An AttachableViewContent with a WebKit# WebView frame is a available for .html files, under a tab named "Browser Preview".
MonoDevelop AspNetEdit2 v01
I used WebView's method LoadString to display the contents of the SourceEditorVIew. I did it only to test out WebKit# abilities.

This week I'll be implementing an important branch of the editor's architecture - the Main DOM tree. The contents of the SourceEditorView will be parsed and stored in a central, canonical DOM representation of the ASP.NET/HTML document. For displaying the Main DOM tree will be serialized, with special rules applied to certain control elements, and passed for displaying to the WebKit engine.