Posts

UnAuthorized error with access token generated from Outlook WebAddin

Image
0 2 I am trying to use access token generated in Outlook Addin to download mail attachments, it is throwing an unauthorized error(401). Looks AccessToken is not valid. Using the accessToken within 5 min after generation in the add-in to make sure to avoid expired code. Followed steps suggested in Office documentation and created the C# code. My code gist is available here : https://gist.github.com/rajeevprasanna/6b0ba1db1599500a94451958b4f52d79 My add-in manifest is available here which asks ReadWriteMailbox permission : https://gist.github.com/rajeevprasanna/5ef93e3df80f304826742bb81a0b4421#file-addin-manifest-xml-L64 I am experimenting on Office365 Outlook WebClient but I have to work on a uniform solution which works on all outlook instances and office365 and Exchange versions. Code for extracting access token...

Accessing an unordered_map

Image
6 1 How can I improve the access time to this unordered map? If I instead allocate a 8 x 10 x 30 x 30 x 24000: std::vector<std::vector<std::vector<std::vector<std::vector<float> > > > > each access is about 0.0001 ms. Using an unordered_map implementation, each access is about 0.001 ms, 10x slower. What can I do to reduce the access time for this unordered_map ? I'm doing a lot of insertions and modifications of existing entries. #include <cstdio> #include <random> #include <unordered_map> #include "boost/functional/hash.hpp" #include "boost/date_time/posix_time/posix_time.hpp" struct Key { Key(int a, int b, int x, int y, int z) : a_(a), b_(b), x_(x), y_(y), z_(z) { } bool operator==(const Key& other) const { ...