16 September 2019

ArcGIS Api Html2canvas not outputting/rendering graphics and labels, Also PrintTask with a similar problem.

I'm using ArcGIS API (Legacy 3.23) to show a map, and the user can draw locations.
The locations are added to a graphics layer, and above it I add a label to show the location number.

After that I was exporting the map as an image with the awesome html2canvas library.

Problem is that the exported image was a hit and miss, most of the time if not always lately, it did not render the polygons nor the labels.

After a lot of debugging and modifying the code, the problem is the label symbol's Halo!
removing the Halo resulted in the correct rendering of all graphics and labels.

So I thought of sharing this incase someone else faces the same problem.

One other problem, related to the PrintTask and Export Web Map Task, which wasn't rendering the labels too, I read in some forum post that setting the label(symbol) text as a number is one of the causes, and that turned out to be my problem!

Happy coding.

ArcGIS Server 10.7
ArcGIS API 3.23
html2canvas 0.5
PS: I should be posting this on ESRI forums, but they have a problem with logins.

17 February 2014

Timex Indiglo back light not working fix!

I bought a Timex watch from Amazon:
Timex Men's T2N721 Intelligent Quartz Adventure Series Tide Temp Compass Brown Leather Strap Watch

It's a great watch, and I love the quality Timex invests in building their watches.

I got a problem with the Indliglo back light, it stopped working after 3 month, although all other options still worked; the watch, tide, compass and temperature.


Warnings before you continue:
1- opening the watch yourself will void your warranty, Timex fixes their watches for low or no cost, so send it to them if you can.

2- I recommend letting a professional do that for you because you need a special tool to push the cover back.

Causes of the problem:
1- The watch needs to be reset (using the reset pin or if you don't have one remove the battery and add it back.
2- Low battery: Thanks to FLJohnsonhe mentioned in a comment that if the battery is low the light will stop working, so change the battery.
3- A faulty watch.

I'm not in the US so I tried to contact my local Timex distributor through email, but their email does not work!, I tried also to contact Timex US customer support through email but they didn't respond!

So I said why not open the watch myself and look around, maybe if I remove the battery and put it back it will work again.

I managed to open it easily, found a reset pin (shown in the picture), pressed it, and the back light started working again :D


Now the hard part is to put back the back cover, turns out its a pain for Timex watches, I think it's because of it being a water resistant watch,  there are guides on the internet for how to do this, this one is excellent, although the thumbs pressure trick didn't work, there are other ideas mentioned by users in that post.

Good luck!

Update: Added the low battery reason mentioned by FLJohnson.

16 April 2008

EDC 2008

Hello Guys!

2 days Ago i attended the EDC (Egyptian Developers Conference)
it's an MDC (Microsoft Developers Conference) but in Egypt.

this was my first time to attend, it was a good Experience to listen, discuss and argue about Opinions with other persons and to hear from the Microsoft Guys.

it was also a good chance to know what's going on in the IT Field for today and for the near/far feature of our Specialization.

there were some things i didn't Like about the Organizing of the Conference but it was overall not bad.

like the Attendees, they should have somehow filtered the persons who would like to attend the conference, as i saw people coming like if they were going to an ammusement park or something, and others who came to enjoy the time with their Couple/fiance, as if there aren't enough parks out there!, i'm not sure how why the comittee of the conference didn't do anything to this, as if they just want to increase the number.
anyway that's just my Opinion.

Another things was the Website of the EDC2008, it was buggy although the team who Implemented it got Honored at the end of the Conference ?!?? (still my Own Opinion)

also the Opening Ceremony was a Little Fancy more than it should especially the Limousine Part, it was kind of ridicules, I thought that Bill Gates himself will be the Guest when i saw a Limousine!

Food wasn't that good and there wasn't enough drinks.

Enough for the bad things although there are plenty others!


I liked the Subjects being discussed at the sessions, and the speakers were great!
I liked listening to Chad Howard, Boris Jabes, Goksin Bakir , Krishna Kumar and Andrew Pardoe.

They discussed great Articles and had good Presentation skills.
I attended sessions about WFP, WF, WPF, XNA, enhancements in VC++/MFC
and a session about VSTS and TFS.

If anyone want to discuss things about the Conference then please be my guest.

this is my first post (I wasn't interrested in starting my own Blog till now)
so i'm not assuming that anyone will read this :) or am i wrong?

have a nice day further!