One of our early blogs was about extracting images from databases, websites and showing them on the screen. The blog(see it here) dealt with a) Retrieving images from the www b) Retrieving images from the database when retrieved as a binary. We realized there are some more scenarios to take care of here c) Save […]
Category Archives: Code for Keeps
Bulb Flash:- Setting a Dangerous Cookie on the Browser!!
During a recent assignment we were trying to set an xml string in the browser cookie. The string actually being a security token had a combination of signatures and unicode characters which the browser did not seem to like too much:-) So after we set the cookie,every time i would browse the solution i was […]
Code for Keeps:- Serialization
Another one of my favorites!..Everytime i need to serialize an object i end up surfing the web to get the correct code(who wants to reinvent the wheel!!) Also most of the time i don’t want to “save” the object on the filesystem but just in memory so my code will focus on saving and reading […]
Creating An “Extensible” Consolidated Social Networking Platform in WPF using MEF
One of my recent projects was on Social Networking where we worked with various social networking sites like WL, Facebook, Delicious, Twitter ,Picassa, Flickr etc to bring them to a common platform for a user. It was a pretty interesting application and i’ll try to demonstrate multiple WPF patterns we implemented in it. One was […]
Code For Keeps:- WPF/Silverlight Retrieve Images from DB/Url
WPF and Silverlight are all about images and styling and the one thing i end up doing a lot is extracting images from Databases, websites and showing them on a screen…and the code to do this is really hard to remember. So keep this code in your safe!! 1. Get Image from a byte[]: If […]
Code for Keeps!: Deep Copy For Custom Objects
One of the major issues i had working with database entities/custom objects in Silverlight/WPF was that since “class” is a reference type any changes made to the object would stay in all its copies!!. Lets take an example I have a custom class called Person and i want to show in a listbox all those […]