I was working on a project in which I need to wrap a JPEG file into PDF format. The program needs to be done in C, and after searched on the Internet, I could not find anything that I can refer to. Most of the Open Source PDF engine is based on either Java or PHP, and a few C PDF engines are huge and will add a lot of unnecessary code to my project. I decided to write this simple JPEG to PDF wrapper. And it's the result of reverse-engineering of the simplest PDF file that contains one single JPE...
As few people told me to implement an observer in my last post where I just showed how to use it, here is the post where I am going to clear out confusions for you. If you have read my other post, you might already know what is an Observer and why it is required. Lets recap this a bit more....
A while ago I wrote a couple of CodeProject articles on how to recreate a outlook calendar using WPF… Occasionally I still get emails from people asking… how can I make it work in silverligh? how can I show multiple day? etc…Creating an Outlook Calendar using WPF (Part 1) Creati...
I absolutely love the DataForm (I even ported the Silverlight version to WPF). One of the common question I occasionally receive is how to express a relationship. Have a look at the following 3 data tables...
If you've used Microsoft's Ajax Control Toolkit, you'll probably have used a control called the ColorPicker. This is where it displays a list of colors that you can select from in a web page, and have the hex value of that color displayed when you click on it. I thought it would be a good exercise to show you how to do this using ASP.NET MVC and jQuery. Well here's how to do it. The example I’m demonstrating in this article is using the new jQuery 1.4 Alpha 2 release. That code can be downloaded...
Last week I published an article on Building A Color Picker Using ASP.NET MVC And jQuery. I received allot of good feedback from that article, but one reader asked this question: I like how people are coming up with alternatives for the Ajax Toolkit but one thing I will say in this case is MVC is intended to separate data from the output. It's a huge no no in my mind to add HTML to your controller. The controller returns a JsonResult which means it should be purely Json and not include HTML. ...
Someday all scientific literature and data will be online and accessible to everyone everywhere. The astronomy community has made unusually good progress toward this vision of online science in addition to addressing the associated challenges of data publication....
In data-parallel applications, the same independent operation is performed repeatedly on different data. Loops are usually the most compute-intensive segments of data parallel applications, so loop optimizations directly impact performance. When confronted with nested loops, the granularity of the computations that are assigned to threads will directly affect performance. Loop transformations such as splitting (loop fission) and merging (loop fusion) nested loops can make parallelization easier ...
There are some things, such as scanning documents, that cannot be done with just browser technologies like HTML and Javascript. For this reason we have developed a simple to use ActiveX Twain control which requires only basic Javascript knowledge to use effectively....
I've been delving into the fun world of web design lately and have been trying my hand at using a Content Management System to make it easier. Turns out, using a CMS makes the website simpler in some ways, but adds its own complexities. As I'm working between the different CMSs, I think it would be worth sharing some top level opinions for those who are trying to decide between them....
CVS only cares about its own copy of the code in $CVSROOT. Each folder under $CVSROOT is called a module. The files in here are kept in the same structure with the same filenames, EXCEPT every file has a ",v" at the end of it. No need to go into why, just understand that these are the backend files of files under CVS control and that each ",v" file contains all the version history of the file in it. Developers should NEVER be here, never look here, and I have probably done wrong just telling you...
This is one of the most useful tricks I have used in terms of SCM controlling of a CVS repository, so listen closely.
CVS is a great tool, and a horrible tool all in once Open Source package. It can do a lot, but often it can do too much as well. In order to stand a chance of having a well controlled environment, it is often important to have CVS do some of the enforcement work for you. Let it be the bad guy instead of you....