I had this task of making a proof of concept sample that will allow users to use the User-Rich text editor Microsoft Word.
It is really challenging, since working with those object are not something we can do in a jiffy , well at least for someone like me who rarely do MSWord macro things.
Reading thru API and using the new features of C#4.0 thru dynamic types, I'm able to design and implement a class library that can simply use MS Word and perform saving to database. It involves checking MRU and also subscribe to events of the MS Word Interop object.
Since it is in Silvelight, data access and operations should be thru WCF. I completed the solution, and only later figured out that my ADO.NET class won't work in silvelright.
(x_x) <= sick due to stress
Bloody 13th of Friday (01-13-2012)

As I've got myself a good position on some of my lists, today was a bearish trade day. PNB was still good at 63.9 until somebody dumped at 63.2, but I believe PNB will move up, since the PNB-Allied Bank merger is still on early stage and might hit trade price of 70 soon. Mining was also hit today,and I would like to mark these prices because we might never see them again next week, after LCB breaks 2 TP. Unfortunately, the local share LC has strong resistance around 1.79-1.82 price. :(
Meralco seems to have good support and when it traded at 257, I'm pretty sure that it was just a test of support.
Seems like new HIs will be recorded on monday.(^_^)
C# Code Optimizations
Today, I asked few developers from a forum(S.O) about some conversion. On my post, I said my need to get the data by performing bit shifts instead of divisions. Though, most of the people there suggested that it is not something that can improve optimization, I strongly disagree.
So, to make an experiment.. how about trying to make two Stopwatch objects ..
on the method that will be executed, initialize an instance, then invoke the Start method. just below that have a loop that performs 10000 times and inside this loop, perform a multiply operation.
After it exits the loop, invoke the Stop method.
then, on the next line, initialize the second Stopwatch object, invoke the start method and have a loop that performs 10000 times and inside this loop, perform a division operation.
after it exits the loop, invoke the Stop method of this object as well...
You can see the difference by checking on the ElapsedTicks of the Stopwatch objects.. I'm sure you now know what I'm talking about (^_^)
Subscribe to:
Posts (Atom)