life (641)


.net - What's the best way to find long-running code in a Windows Forms Application

.net - What's the best way to find long-running code in a Windows Forms Application

I inherited a Windows Forms app written in VB.Net. Certain parts of the app run dreadfully slow. What's the easiest way to find which parts of the code are holding things up? I'm looking for a way…


How to know if a line intersects a plane in C#?-Basic 2D geometry

my school maths are very rusty and I think this is a good opportunity to take advance of this community:D I have two points(a line) and a rectangle, I would like to know how to calculate if the lin…


user interface - Fighting programmer colors

I have a couple of pet projects where I'm the sole designer/programmer and I spend too much time changing the user interface to make it easier to use by real users and avoiding bright yellow and green…


java - JSF Lifecycle and Custom components

There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the…


Image processing in Silverlight 2

Is it possible to do image processing in silverlight 2.0? What I want to do is take an image, crop it, and then send the new cropped image up to the server. I know I can fake it by clipping the imag…


algorithm - Optimizing Conway's 'Game of Life'

To experiment, I've(long ago) implemented Conway's Game of Life(and I'm aware of this related question!). My implementation worked by keeping 2 arrays of booleans, representing the 'last state', an…


What is Adobe Flex? Is it just Flash II?

Question Alright, I'm confused by all the buzzwords and press release bingo going on. What is the relationship between flash and flex: Replace flash(not really compatible) Enhance flash The next v…


Creating a Silverlight DataTemplate in code

How do I create a silverlight data template in code? I've seen plenty of examples for WPF, but nothing for Silverlight. Edit: Here's the code I'm now using this for, based on the answer from Santiago…


flex - Silverlight Install Base-How big is it?

Silverlight v2.0 is getting closer and closer to RTM but I have yet to hear any stats as to how many browsers are running Silverlight. If I ask Adobe(by googling "Flash install base") they're only t…


version control - What's the right way to branch with Visual Source Safe?

What I currently do is I link the project to another location and give it the same name, then check the box where it says "Branch after share." And then I would Check out the shared project and work…





cycle example how java end real what the for and