Dec 29

i am currently taking my basics in college but am planning on majoring in computer science. I dont know much about programming but i want to learn. What books are good to read in order to learn more about computer programming? what websites will help me more? any information will be helpful thanks.

The right way to learn, in my humble opinion, is python. You learn all the concepts- good style, object orientation, documentation, organization, writing re-useable code, using an existing code base instead of re-inventing the wheel- automatically as you learn the language. The only element that’s missing from the language is "switch" constructs, but you can often manage the exact same data structure with dictionaries.

Plus, as a beginner, it’s frustrating writing stuff that only reads and writes stuff out to the console, isn’t it? With python, you’ll be learning how to make "real" programs with a GUI pretty early on with Tcl/Tk.

I know a lot of that sounded like jargon, but python is a really, really easy language to learn for total beginners. And it’s powerful enough that you’ll keep using it long after you’ve got ten languages under your belt. Here’s enough to get you started.

Start here. It’s even got a cartoon :) http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-189-a-gentle-introduction-to-programming-using-python-january-iap-2008/

You want to click "Lecture notes", then click the Session 1 notes pdf, it’ll walk you through step by step installing python and writing your first python program, then day by day go through the rest of the lecture series, and when you think you’re hot stuff give yourself the exams.

Then once you know your stuff, go here to make "real" programs,
http://python.about.com/od/advancedpython/ss/tkinter_intro_10.htm

Annnnnd once you realize how cool and powerful those console-based programs you started with really are, you can go here to get good with those,
http://docs.python.org/tutorial/introduction.html

That’s enough to go from rank beginner to expert in a couple weeks. Enjoy!

Dec 29

I have 3 or 4 .xaml files in my silverlight application. By using the this.RootVisual property, I can
access only one .xaml file at a time. I also want to see other .xaml files output by default in
different .aspx pages. How can I do that?

My first stop would be wikipedia or google for a quick reference. I actually had a similar question not even 5 days ago, but I couldn’t find the answer. If it’s possible, try getting help from someone with more knowledge/experience/expertise, like a professional if it’s possible. This can be pretty important.

I saw a forum with this online, but I didn’t have time to read it all. Try checking it out. I want to help out more, but I’m not 100% sure about the answer. Sorry I’m not much help. I hope you found your answer! Good luck!

Dec 29

I am a new programmer . Currently I am studying C# But I confused in choosing WPF and windows form for studying .
I like to develop windows application .
please help to choose one of them .

You will need to know both. WinForms are the old method of doing things and still very widely used. WPF is the new method. It is catching on but there will always be WinForm work to do.

Dec 22

On a frictionless air track, a 0.155kg glider moving at 1.05m/s to the right collides with and sticks to a stationary 0.235kg glider.
What must be the net momentum of this system after the collision?
Why?
Find the speed of the gliders after the collision,Is kinetic energy conserved during the collision?

m1v1 + m2v2 = m1v’1 + m2v’2

Since v2 = 0 then m2v2 = 0 and the velocity of v’1 = v’2 because they stuck together, the formula can be rewritten as:

m1v1 = v’(m1 + m2) to solve for v’ (post-collision velocity):

v’ = (m1v1)/(m1+m2)

In those equations all of your answers can be found.

Dec 22

I need to put some Silverlight programs on the Internet. I am looking for a free website hosting service that would host HTML files, CSS files, and some Silverlight xap files. It is ok if the website must have ads. I also don’t want to purchase my own domain, I would like to use a free subdomain. Any suggestions?

You’ll need to find a host that offers Windows based hosting. Years ago I looked for one but never found a good free one. I ended up buying a domain name, installing IIS on a spare computer and hosting the site myself. Cost: $20 per year.

Dec 22

can anyone help me figure out how to take the user input, save it to a variable (if necessary) and run it against the database?

If you’re planning to let the user enter the entire SQL query and then run it, this sort of thing can be VERY risky…a malicious (or simply inept) user could easily delete all data from your tables and so forth.

Dec 13

Three forces are applied to a 10 kg box. The magnitude and direction of the forces are:
1) 5.0N due North
2) 3.0N due West
3) 6.0N @ 30 degrees S of E

Determine the net force acting on the box (include both magnitude and direction). What is the net acceleration of the box?

VECTOR Add East and South Components of 6.0 N force, respectively, to 3N and 5N forces.
ie
East Component of 6N = 6 cos 30° = 5.2 N => added to 3.0 N W = 2.2 N, E
South Component of 6N = 6 sin 30° = 3.0 N => added to 5.0 N N = 2.0 N, N
Size of Fnet = √2.2²+2.0² = √8.84 = 3.0 N ANS
Direction of Fnet = arctan 2/2.2 = 42° ANS

Net Accelertion on box = Fnet/m = 0.3 m/s² at 42° ANS

Dec 13

I m more familiar with Window form as everyone started VB with it, but in term of thread implementation, does it matter? please explain.

You can use threads in either so it doesn’t matter.