Angella Andrea - English Blog http://blogs.ugidotnet.org/angellaa-en/Default.aspx Infinite passion for software development ! en Angella Andrea Subtext Version 2.6.0.0 Angella Andrea - English Blog http://blogs.ugidotnet.org/images/RSS2Image.gif http://blogs.ugidotnet.org/angellaa-en/Default.aspx 77 60 This blog has been moved&hellip; http://blogs.ugidotnet.org/angellaa-en/archive/2012/01/29/this-blog-has-been-movedhellip.aspx <p> </p> <p>This is my new blog:</p> <p><strong><font size="3"><a href="http://andrea-angella.blogspot.com/">Andrea Angella – Official Blog</a></font></strong></p> <p> </p> <p>Hello everybody,</p> <p>It is time for me to have my personal space.</p> <p>There are many reasons and you can find a description in the following post:</p> <p><a title="http://andrea-angella.blogspot.com/2012/01/my-new-official-blog.html" href="http://andrea-angella.blogspot.com/2012/01/my-new-official-blog.html">http://andrea-angella.blogspot.com/2012/01/my-new-official-blog.html</a></p> <p>This is not certainty an goodbye because I will continue to follow all the Italian community as I always did and help DotNetToscana to grow.</p> <p>I hope that this will be the opportunity to blog more and that some of you will subscribe to my new feed:</p> <p><a title="http://feeds.feedburner.com/AndreaAngella-OfficialBlog" href="http://feeds.feedburner.com/AndreaAngella-OfficialBlog">http://feeds.feedburner.com/AndreaAngella-OfficialBlog</a></p> <p>Thanks a lot to <a href="http://www.ugidotnet.org/">UgiDotNet</a> for all these yeas of service</p> <p>Regards</p> <p>Andrea</p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/100738.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2012/01/29/this-blog-has-been-movedhellip.aspx Sun, 29 Jan 2012 14:55:39 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2012/01/29/this-blog-has-been-movedhellip.aspx#feedback 8 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/100738.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/100738.aspx Windows Phone Camp in London http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/31/windows-phone-camp-in-london.aspx <p>Next 17 September will be a full immersion day of Windows Phone 7 Mango <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Sorriso" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/Windows-Live-Writer/2a10cd367d12_13A6A/wlEmoticon-smile_2.png" /> <br /></p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/Windows-Live-Writer/2a10cd367d12_13A6A/image_2.png" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/Windows-Live-Writer/2a10cd367d12_13A6A/image_thumb.png" width="682" height="245" /></a></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/100314.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/31/windows-phone-camp-in-london.aspx Wed, 31 Aug 2011 22:24:53 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/31/windows-phone-camp-in-london.aspx#feedback 7 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/100314.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/100314.aspx Unit Test Lab il 24 Settembre 2011 &ndash; Tenetevi pronti http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/12/unit-test-lab-il-24-settembre-2011-ndash-tenetevi-pronti.aspx <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/Windows-Live-Writer/Unit-Test-Lab-il-24-SettembreTenetevi-pr_13305/dotnettoscana_hight_resolution_4.png" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 8px 15px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="dotnettoscana_hight_resolution" border="0" alt="dotnettoscana_hight_resolution" align="left" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/Windows-Live-Writer/Unit-Test-Lab-il-24-SettembreTenetevi-pr_13305/dotnettoscana_hight_resolution_thumb_1.png" width="159" height="159" /></a> <br /> <br />Ciao a tutti, <br />appena prima delle meritate vacanze estive <a href="http://www.dotnettoscana.org/"><strong>DotNetToscana</strong></a><strong> </strong>vuole rivelare alcuni dettagli del prossivo evento laboratorio.</p> <p>La data à già stata fissata a <strong>Sabato 24 Settembre 2011</strong> mentre il luogo deve ancora essere confermato.</p> <p>Il laboratorio sarà guidato da<strong> </strong><a href="http://blogs.ugidotnet.org/bmatte/Default.aspx"><strong>Matteo Baglini</strong></a> mentre gli altri membri dello staff forniranno supporto tecnico ai partecipanti.</p> <p> <br /> <br /> <br />Segue una breve descrizione dell’evento:</p> <p><em>Uno degli aspetti più controversi dello sviluppo software è sicuramente il test. <br />Pratica da molti reputata importante per ottenere un software di qualità ma allo stesso tempo snobbata. <br />La realtà è che gli sviluppatori preferiscono progettare e realizzare il software piuttosto che testarlo lasciando quest'ultimo compito al team di tester. <br />Esistono molteplici tipologie di test, lo Unit Test è uno di questi e rappresenta uno strumento importante per i tester, ma soprattutto per gli sviluppatori.</em></p> <p><em>Durante questo laboratorio potrai provare con mano la pratica dello Unit Test e trovare risposta alle tipiche domande: perchè, come e quando effettuare Unit Test. <br />Imparerai i principi che guidano lo Unit Test passando dalla teoria alla pratica, applicando questa tecnica in svariati contesti.</em></p> <p>Maggiori dettagli seguiranno alla fine del mese,</p> <p>Buone vacanze a tutti,</p> <p>Vi aspettiamo,</p> <p>Andrea</p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/100267.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/12/unit-test-lab-il-24-settembre-2011-ndash-tenetevi-pronti.aspx Fri, 12 Aug 2011 22:06:19 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2011/08/12/unit-test-lab-il-24-settembre-2011-ndash-tenetevi-pronti.aspx#feedback 24 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/100267.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/100267.aspx 101 Ways to Motivate Yourselft and Others &ndash; My favourites http://blogs.ugidotnet.org/angellaa-en/archive/2011/07/23/101-ways-to-motivate-yourselft-and-others-ndash-my-favourites.aspx <p>Recentely <a href="http://sourcesofinsight.com/">Sources of Insight</a> published a really interesting post: <a href="http://sourcesofinsight.com/2011/07/13/101-ways-to-motivate-yourself-and-others/">101 Ways to Motivate Yourselft and Others</a>.</p> <p>As a reminder, I would like to write the points I considere more important for me and where I want to work.</p> <ul> <li>Act on your inspiration</li> <ul> <li>“Use your best energy for your best results”</li> <li>"Your passion can expire, if you wait too long or miss the window of opportunity”</li> <li>“A common way to kill idea or momentum is to spread them out over time, or keep pushing them out”</li> </ul> <li>Be a coach, not a critic</li> <ul> <li>“Use your inner coach for constructive feedback, and give your inner-critic a break”</li> </ul> <li><strong>Be on fire</strong></li> <ul> <li><strong>“You know when you’re on fire. You kno what you’re like when you’re in the zone and you’re fully engaged and you’re at your best. Sometimes, the easiest way to get back to this mode is to simply remember what if feels like”</strong></li> </ul> <li><strong>Be YOUR best</strong></li> <ul> <li><strong>“Compete with yourselft and make it a game”</strong></li> </ul> <li>Build your band of merry men</li> <ul> <li>“Surround yourself with the people that inspire and deligh you, wherever you go”</li> </ul> <li>Change the frame, to change your game</li> <ul> <li>“Problems aren’t problems when you reframe them as challenges. Challenges are opportunities for growth, excellence and your personal best”</li> </ul> <li>Chart your progress</li> <ul> <li>“If you want to motivate, find a way to keep the score. Progress is the top motivator of performance. Even incremental progress boosts motivation”</li> </ul> <li>Choose significant tasks that are meaningful for you</li> <ul> <li>“If you like excellence, then challenge yourself to shine”.</li> </ul> <li><strong>Create a wall of inspiration</strong></li> <ul> <li><strong>“Put those pictures up that show you the greates things in life and what’s possible. Get those hopes and dreams up on the wall that remind you what’s worth fighting for.”</strong></li> <li><strong>“Put those wards on the wall and quotable quotes that fire you up and make you feel alive”</strong></li> </ul> <li><strong>Decide</strong></li> <ul> <li><strong>“Nothing builds momentum like decisive action. Just Decide.Decisive action is motivation, it build momentum and it crowds out excuses”</strong></li> </ul> <li><strong>Do worst things first</strong></li> <ul> <li><strong>“Don’t let things loom over you. Once they’re out of the waym the rest is a glide-path”</strong></li> </ul> <li>Don’t let feat stop you</li> <ul> <li>“A great way to conquer fear is to put the fears on the table and find a way to take away the thread or prepare for the worst case scenario”</li> <li>“The only thing we have to fear is fear itself”, Roosevelt</li> </ul> <li><strong>Don’t be perfectionist</strong></li> <ul> <li><strong>“Perfection is a fallacy and it’s over-rated. A better focus is to be effective. Make it work, then make it right. Think of perfection as a process of improvement.”</strong></li> <li><strong>“Focus on good enough for now. and satisfice”.</strong></li> <li><strong>“Taking action is a key way to stay out of analysis paralysis, and keep your motivation strong. Don’t worry about the perfect place to start, just start”</strong></li> </ul> <li>Don’t look for execuse</li> <li><strong>Don’t take yourselft too seriously</strong></li> <ul> <li><strong>“Build your sense of humor”</strong></li> </ul> <li><strong>Eat, sleep and exercise on a cadence</strong></li> <ul> <li><strong>“Your cadence will serve you emotionally, mentally and physically”</strong></li> </ul> <li>Find your “one thing”</li> <ul> <li>“One thing matters to you most. Do more of that. That’s the thing to focus on”</li> </ul> <li>Finish faster</li> <ul> <li>“The faster you finish, the more you will finish. The more you finish, the easier it gets”</li> </ul> <li>Focus on what you want</li> <ul> <li>“Get a clear and compelling picture of what you do want and focus on that”</li> </ul> <li>Play your favorite music</li> <ul> <li>“Play the songs that make your spirit soar”</li> </ul> <li>Reming yourself how short life is</li> <ul> <li>“One way to give your fall is to remember that nothing lasts forever”</li> </ul> <li><strong>Set a deadline</strong></li> <ul> <li><strong>“Knowing when something is due can help you funnel and focus your action and attention”</strong></li> </ul> <li><strong>Set extreme goals</strong></li> <ul> <li><strong>“Sometimes goals have to be extreme to feel worth it. Dream big. Set crazy limits or hurdles”</strong></li> </ul> <li>Want it with a passion</li> <ul> <li>“Nothing beats the pursuit of a worhy and compelling objective”</li> </ul> <li><strong>Keep in mind that knowing and doing are two different things</strong></li> <ul> <li><strong>“You hold the keys to unleashing what you’re capable of”</strong></li> </ul> </ul><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/100230.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2011/07/23/101-ways-to-motivate-yourselft-and-others-ndash-my-favourites.aspx Sat, 23 Jul 2011 17:23:36 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2011/07/23/101-ways-to-motivate-yourselft-and-others-ndash-my-favourites.aspx#feedback 9 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/100230.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/100230.aspx The first program I wrote ! Personal http://blogs.ugidotnet.org/angellaa-en/archive/2010/08/25/the-first-program-i-wrote.aspx <p>I entered in the fantastic world of programming when I was <strong>9 years old</strong>. </p> <p>My father give me a Casio graphical/programmable calculator as a present. It was exactly a<strong> FX-7400 G.</strong> </p> <p>Quick Specifications:</p> <ul> <li>Maximum of 26 variables (alphabet letters) </li> <li>13-character x 6-line display </li> <li>7 Kbytes of memory </li> </ul> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/ThefirstprogramIwrote_E77/fx-7400G_2.jpg" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="fx-7400G" border="0" alt="fx-7400G" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/ThefirstprogramIwrote_E77/fx-7400G_thumb.jpg" width="353" height="321" /></a> </p> <p> </p> <p>If you ask me what is the first program that I have created the right answer is that I simply copied the first example in the <a href="http://support.casio.com/manualfile.php?rgn=5&amp;cid=004002007">manual</a>.</p> <p>This is the first program I wrote, and I’m writing this post just to share my enthusiasm in reading this again:</p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/ThefirstprogramIwrote_E77/first_program_2.jpg" rel="lightbox"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="first_program" border="0" alt="first_program" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/ThefirstprogramIwrote_E77/first_program_thumb.jpg" width="778" height="517" /></a>  </p> <p /> <p> </p> <p>This is the beginning of my career in the computer science field :)</p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/99112.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/08/25/the-first-program-i-wrote.aspx Wed, 25 Aug 2010 01:15:02 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/08/25/the-first-program-i-wrote.aspx#feedback 2 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/99112.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/99112.aspx Have you been called by a telepest? http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/17/have-you-been-called-by-a-telepest.aspx <p>Yesterday, I received an <strong>unusual voice message</strong> in my mobile phone from my English Bank. I immediately was suspicious.</p> <p>For this reason, I found out the sender number on Internet and I discovered that this number is present in the database of unsolicited calling numbers.</p> <p>The following website can help you to find if the sender number is a possible <strong>telepest</strong>: <br /><a title="http://www.telepest.co.uk/" href="http://www.telepest.co.uk/">http://www.telepest.co.uk/</a></p> <p>Please, make attention when you receive an unsolicited call from an unknown telephone number.</p> <p><strong>Never reveals personal details and/or passwords in this case.</strong></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98805.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/17/have-you-been-called-by-a-telepest.aspx Thu, 17 Jun 2010 07:40:40 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/17/have-you-been-called-by-a-telepest.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98805.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98805.aspx Windows 7 - Pin folder to taskbar http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/15/windows-7-pin-folder-to-taskbar.aspx <p>I really like the Windows 7 Taskbar and in particular the jump lists to have access of my documents/folders that I frequently use. Adding a program link in the taskbar is extremely easy but there is not an easy way to create a quick link to a particular folder.</p> <p>For example, I wanted a taskbar link to my Download folder:</p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/Windows7Pinfoldertotaskbar_10AA9/taskbar%20link_2.jpg" rel="lightbox"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="taskbar link" border="0" alt="taskbar link" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/Windows7Pinfoldertotaskbar_10AA9/taskbar%20link_thumb.jpg" width="332" height="49" /></a>  </p> <p>In the following page, you can find a useful tip to solve this problem: <br /><a href="http://www.unawave.de/windows-7-tipps/folder-to-taskbar.html?lang=EN">http://www.unawave.de/windows-7-tipps/folder-to-taskbar.html?lang=EN</a></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98799.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/15/windows-7-pin-folder-to-taskbar.aspx Tue, 15 Jun 2010 19:06:37 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/15/windows-7-pin-folder-to-taskbar.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98799.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98799.aspx BOOKS - The Art of Happiness BOOKS http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/06/books-the-art-of-happiness.aspx <p> <br />Few minutes ago, I finished to read the <a href="http://www.dalailama.com/">Dalai Lama</a> book: “<a href="http://www.amazon.com/Art-Happiness-10th-Anniversary-Handbook/dp/1594488894/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1275830130&amp;sr=8-1">The Art of Happiness</a>”. </p> <p> </p> <p><a href="http://www.amazon.com/Art-Happiness-10th-Anniversary-Handbook/dp/1594488894/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1275830130&amp;sr=8-1"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="the art of happiness" border="0" alt="the art of happiness" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/BOOKSTheArtofHappiness10thAnniversaryEdi_C8F3/the%20art%20of%20happiness_3.jpg" width="260" height="260" /></a> </p> <p> </p> <p>I truly think this is a valuable book to understand the real value of the human life. This is a book that force you to reflect deeply about yourself and your relations with all human beings.</p> <p>The book is divided in 5 sections. </p> <p>I report some sentences that, for me, are the most significant:</p> <ul> <li><strong>THE PURPOSE OF LIFE</strong></li> <ul> <li>The very purpose of life is to seek <strong>happiness</strong>.</li> <li>Happy people are generally found to be more sociable, flexible, and creative and are able to tolerate life’s daily frustrations more easily than unhappy people. And, most important, they are found to be more loving and forgiving than unhappy people.</li> <li>Happiness is determined more by one’s <strong>state of mind</strong> than by external events. </li> <li>Happiness can be achieved through <strong>training the mind</strong>.</li> <li>Our feelings of contentment are strongly influenced by our tendency to compare. We can increase our feeling of life satisfaction by comparing ourselves to those who are less fortunate than us and by reflecting on all things we have.</li> <li>The greater the level of <strong>calmness of our mind</strong>, the greater our peace of mind, the greater our ability to enjoy and joyful life</li> <li>The demarcation between a positive and a negative desire or action is not whether it gives you a immediate feeling of satisfaction but whether it ultimately results in positive or negative consequences.</li> <li>Is not to have what we want but rather to want and<strong> appreciate what we have</strong>. </li> <li>Sometimes people confuse happiness with pleasure. True happiness relates more to the mind and heart. Happiness that depends mainly on physical pleasure is unstable.</li> <li>Framing any decision we face by asking ourselves: “<strong>Will it bring me happiness?</strong>”</li> <li>The first step in seeking happiness is learning. We first have to learn how negative emotions and behaviours are harmful to us and how positive emotions are helpful.</li> <li>The proper utilization of our intelligence and knowledge is to effect changes from within to develop a good heart.</li> <li>It is still my firm conviction that <strong>human nature is essentially compassionate</strong>, gentle. That is the predominant feature of human nature.</li> <li>When we combine a warm heart with knowledge and education, we can learn to <strong>respect other’s views and other’s rights</strong>.</li> <li>Scientists are discovering that those who lack close social ties seem to suffer from poor health, higher levels of unhappiness, and a greater vulnerability to stress</li> </ul> </ul> <p> </p> <ul> <li><strong>HUMAN WARMTH AND COMPASSION</strong></li> <ul> <li>Once you accept the fact that compassion is not something childish or sentimental, once you realize that compassion is something really worthwhile, realize it’s deeper value, then you immediate develop an attraction towards it, a willingness to cultivate it.</li> <li>There is a widespread notion in our culture that deep intimacy is best achieved within the context of a passionate romantic relationship. This can be a profoundly limiting viewpoint, cutting us off from other potential sources of intimacy, and the cause of much misery and unhappiness when that Special Someone isn’t there. </li> <li>Intimacy is based on a willingness to <strong>open ourselves to many others</strong>, to family, friends, and even strangers, forming a genuine and deep bonds based on our common humanity. </li> <li><strong>Empathy</strong> is an important factor.<strong> The ability to appreciate another’s suffering</strong>.</li> <li>If you are having some difficulties, it’s extremely helpful to be able to try to put yourself in the other person’s place and see how you would react to the situation.</li> <li><strong>We are all born in the same way, and we all die.</strong> All of us want happiness and do not want to suffer. Relating to others on that level makes it much easier to exchange and communicate with one another.</li> <li><strong>Married people are happier</strong> and more satisfied with life than single or widowed people, or especially compared to divorced or separated people.</li> <li>Compassion can be roughly defined in terms of a state of mind that is nonviolent, non harming, and nonaggressive. It is a mental attitude based on the wish for others to be free of their suffering and is associated with a sense of commitment, responsibility, and respect towards the other.</li> <li>Positive states of mind can improve our physical health.</li> </ul> </ul> <p> </p> <ul> <li><strong>TRANSFORMING SUFFERING</strong></li> <ul> <li>As long as we view suffering as an unnatural state, an abnormal condition that we fear, avoid, and reject, we will never uproot the causes of suffering and begin to live a happier life.</li> <li><strong>We tend to take small things too seriously</strong>, and blow them up out of proportion, while at the same time we often remain indifferent to the really important things.</li> <li>As a product of an imperfect world, all of us are imperfect. Every one of us has one some wrong.</li> <li>The <strong>acceptance of change</strong> can be an important factor in reducing a large measure of our self-created suffering.</li> <li>One must understand that every phenomena, every event, has different aspects. Everything is of a relative nature.</li> <li>You might reflect on the fact that when you are really angry at someone you tend to perceive them as having 100 percent negative qualities. The tendency to see someone as completely negative is due to your own perception based on your own mental projection, rather than the true nature of that individual.</li> <li><strong>The enemy is the necessary condition for practicing patience.</strong></li> <li>A balanced and skilful approach to life, taking care to avoid extremes, becomes a very important factor in conducting one’s everyday existence.</li> <li>The vulnerability we experience in the midst of our suffering can open us and deepen our connection with others</li> <li><strong>We convert pain into suffering in the mind.</strong> It is our suffering that is the most basic element that we share with others, the factor that unifies us with all living creatures.</li> </ul> </ul> <p> </p> <ul> <li><strong>OVERCOMING OBSTACLES</strong></li> <ul> <li>Learning and education are important because they help one develop conviction of the need to change and help increase one’s commitment. This conviction to change than develops into determination. Next, one transforms determination into action – the strong determination to change enables one to make a sustained effort to implement the actual changes. The final factor of effort is critical.</li> <li><strong>You have to be always aware of the destructive effects of the negative behaviour.</strong></li> <li><strong>Genuine change does not happen overnight</strong>.</li> <li>Numerous surveys have conclusively found that higher levels of education have a positive correlation with better health and a longer life, and even protect an individual from depression.</li> <li>Through proper training we can gradually<strong> reduce our negative emotions and increase positive states of mind</strong> such as love, compassion, and forgiveness.</li> <li>We need to actively cultivate the antidotes to hatred: <strong>patience and tolerance</strong>.</li> <li>An end result, or a product of patience and tolerance, is <strong>forgiveness</strong>. When you are truly patient and tolerant, then forgiveness comes naturally.</li> <li>Working on improving our physical health through proper diet and exercise can be useful to <strong>reduce anxiety and stress</strong>.</li> <li>If the situation or problem is such that it can be remedied, then there is no need to worry about it. Alternatively, if there is no way out, no solution, no possibility of resolution, then there is also no point in being worried about it, because you can’t do anything about it anyway.</li> <li><strong>Sincere motivation</strong> acts as an antidote to reduce fear and anxiety.</li> <li>A healthy sense of self-confidence is a critical factor in achieving our goals.</li> <li><strong>The more honest you are, the more self-confident you will be.</strong></li> <li>Love is a genuine wish for someone’s happiness. </li> </ul> </ul> <p> </p> <ul> <li><strong>CLOSING REFLECTIONS ON LIVING A SPIRITUAL LIFE</strong></li> <ul> <li>In helping us understand the true meaning of spirituality is important to <strong>distinguish between spirituality and religion</strong>.</li> <li><strong>True spirituality is a mental attitude</strong> that you can practice at any time.</li> <li>Independent researchers have found that religious people report feeling happy and satisfied with life more often than non-religious people.</li> <li>It is important to respect the rights of others. We must to learn to respect all there major religion traditions. </li> </ul> </ul> <p> </p> <p>I strongly recommend to read this book.</p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98729.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/06/books-the-art-of-happiness.aspx Sun, 06 Jun 2010 16:13:56 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/06/06/books-the-art-of-happiness.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98729.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98729.aspx Adding libraries and headers in Visual C++ 2010 C++ http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/adding-libraries-and-headers-in-visual-c-2010.aspx <p> <br />When you need to use a library in your C++ application you should tell the following things to the compiler:</p> <ol> <li>The name of the lib file</li> <li>The folder where to find the lib file</li> <li>The folder where to find the header file</li> </ol> <p>In this post, I show how you can do this using Microsoft Visual Studio 2010. All the options are available as <strong>Properties</strong> of your current project.</p> <p>Right click the project name under the Solution Explorer and select <strong>Properties</strong> from the dropdown menu: <br /></p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/properties_2.jpg" rel="lightbox"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 15px; display: inline; border-top: 0px; border-right: 0px" title="properties" border="0" alt="properties" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/properties_thumb.jpg" width="433" height="524" /></a> </p> <p> </p> <p>You can add all the names of your libraries in the “<strong>Configuration Properties –&gt; Linker –&gt; Input</strong>“ section:</p> <p> </p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/lib_2.jpg" rel="lightbox"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 15px; display: inline; border-top: 0px; border-right: 0px" title="lib" border="0" alt="lib" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/lib_thumb.jpg" width="855" height="607" /></a> </p> <p /> <p> <br />At the end, you can set the lib folders (“<strong>Library Directories</strong>”) and the headers folders (“<strong>Include Directories</strong>”) in the “<strong>Configuration Properties –&gt; VC++ Directories</strong>” section. </p> <p> </p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/folders_2.jpg" rel="lightbox"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 15px; display: inline; border-top: 0px; border-right: 0px" title="folders" border="0" alt="folders" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/AddlibrariesandheadersinVisualC2010_D2A7/folders_thumb.jpg" width="851" height="605" /></a></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98681.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/adding-libraries-and-headers-in-visual-c-2010.aspx Sat, 29 May 2010 15:11:44 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/adding-libraries-and-headers-in-visual-c-2010.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98681.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98681.aspx XNA &ndash; DirectX Capabilities Viewer XNA http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-directx-capabilities-viewer.aspx <p> <br />If you want to know the capabilities available in your graphics card you can use a tool in the DirectX SDK\Utilities\Bin\x86.</p> <p>This tool is called “<strong>DXCapsViewer.exe</strong>”.</p> <p>Here a screenshot with the capabilities of my NVIDIA GeForce 8600M GT: <br /></p> <p><a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/XNADirectXCapabilitiesViewer_22BB/capsviewer_2.jpg" rel="lightbox"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="capsviewer" border="0" alt="capsviewer" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/XNADirectXCapabilitiesViewer_22BB/capsviewer_thumb.jpg" width="983" height="669" /></a> </p> <p> </p> <p>You can download the latest DirectX SDK at the following link:</p> <p><a title="http://msdn.microsoft.com/en-us/directx/aa937788.aspx" href="http://msdn.microsoft.com/en-us/directx/aa937788.aspx">http://msdn.microsoft.com/en-us/directx/aa937788.aspx</a></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98678.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-directx-capabilities-viewer.aspx Sat, 29 May 2010 02:33:09 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-directx-capabilities-viewer.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98678.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98678.aspx XNA &ndash; Multisampling XNA http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-multisampling.aspx <p><strong>Multisampling</strong> is an <strong>antialiasing</strong> technique directly supported by DirectX and obviously by XNA. The problem of aliasing occurs when you draw a line on a monitor with low resolution. In that cases you see a stair step when approximating a line by a matrix of pixels. Multisampling use neighbouring pixels (called <strong>samples</strong>) to calculate the final color of a pixel.</p> <p>You can enable multisampling in XNA in this simple way:</p> <pre class="code"><span style="color: rgb(1, 0, 1);">graphics</span>.<span style="color: rgb(1, 0, 1);">PreferMultiSampling </span>= <span style="color: blue;">true</span>;</pre> <a href="http://11011.net/software/vspaste"></a> <p> <br /> Then you should also specify two options. </p> <p>The <strong>type</strong> is an enumerator (<strong>MultiSampleType</strong>) that represent the number of samples to use in multisampling. The <strong>quality</strong> is an integer that represent the quality level. This value is always set to zero. Before to set the type of multisampling you should always check if the graphic adapter support it using the method <strong><span style="color: rgb(1, 0, 1);">adapter</span>.<span style="color: rgb(1, 0, 1);">CheckDeviceMultiSampleType()</span></strong></p> <pre class="code"><span style="color: rgb(1, 0, 1);">graphics</span>.<span style="color: rgb(1, 0, 1);">PreparingDeviceSettings </span>+= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">EventHandler</span>&lt;<span style="color: rgb(43, 145, 175);">PreparingDeviceSettingsEventArgs</span>&gt;((<span style="color: rgb(1, 0, 1);">sender</span>, <span style="color: rgb(1, 0, 1);">e</span>) =&gt; <br />{<br /> <span style="color: rgb(43, 145, 175);">PresentationParameters </span><span style="color: rgb(1, 0, 1);">parameters </span>= <span style="color: rgb(1, 0, 1);">e</span>.<span style="color: rgb(1, 0, 1);">GraphicsDeviceInformation</span>.<span style="color: rgb(1, 0, 1);">PresentationParameters</span>;<br /> <span style="color: rgb(1, 0, 1);">parameters</span>.<span style="color: rgb(1, 0, 1);">MultiSampleQuality </span>= 0;<br /><br /> <span style="color: blue;">#if </span>XBOX<br /> <span style="color: gray;">pp.MultiSampleType = MultiSampleType.FourSamples;<br /> return;<br /> </span><span style="color: blue;">#else<br /><br /> int </span><span style="color: rgb(1, 0, 1);">quality</span>;<br /> <span style="color: rgb(43, 145, 175);">GraphicsAdapter </span><span style="color: rgb(1, 0, 1);">adapter </span>= <span style="color: rgb(1, 0, 1);">e</span>.<span style="color: rgb(1, 0, 1);">GraphicsDeviceInformation</span>.<span style="color: rgb(1, 0, 1);">Adapter</span>;<br /> <span style="color: rgb(43, 145, 175);">SurfaceFormat </span><span style="color: rgb(1, 0, 1);">format </span>= <span style="color: rgb(1, 0, 1);">adapter</span>.<span style="color: rgb(1, 0, 1);">CurrentDisplayMode</span>.<span style="color: rgb(1, 0, 1);">Format</span>;<br /><br /> <span style="color: blue;">if </span>(<span style="color: rgb(1, 0, 1);">adapter</span>.<span style="color: rgb(1, 0, 1);">CheckDeviceMultiSampleType</span>(<span style="color: rgb(43, 145, 175);">DeviceType</span>.<span style="color: rgb(1, 0, 1);">Hardware</span>, <span style="color: rgb(1, 0, 1);">format</span>, <span style="color: blue;">false</span>, <span style="color: rgb(43, 145, 175);">MultiSampleType</span>.<span style="color: rgb(1, 0, 1);">FourSamples</span>, <span style="color: blue;">out </span><span style="color: rgb(1, 0, 1);">quality</span>))<br /> {<br /> <span style="color: rgb(1, 0, 1);">parameters</span>.<span style="color: rgb(1, 0, 1);">MultiSampleType </span>= <span style="color: rgb(43, 145, 175);">MultiSampleType</span>.<span style="color: rgb(1, 0, 1);">FourSamples</span>;<br /> }<br /> <span style="color: blue;">else if </span>(<span style="color: rgb(1, 0, 1);">adapter</span>.<span style="color: rgb(1, 0, 1);">CheckDeviceMultiSampleType</span>(<span style="color: rgb(43, 145, 175);">DeviceType</span>.<span style="color: rgb(1, 0, 1);">Hardware</span>, <span style="color: rgb(1, 0, 1);">format</span>, <span style="color: blue;">false</span>, <span style="color: rgb(43, 145, 175);">MultiSampleType</span>.<span style="color: rgb(1, 0, 1);">TwoSamples</span>, <span style="color: blue;">out </span><span style="color: rgb(1, 0, 1);">quality</span>))<br /> {<br /> <span style="color: rgb(1, 0, 1);">parameters</span>.<span style="color: rgb(1, 0, 1);">MultiSampleType </span>= <span style="color: rgb(43, 145, 175);">MultiSampleType</span>.<span style="color: rgb(1, 0, 1);">TwoSamples</span>;<br /> } <br />});</pre> <a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a> <p> </p> <p>For more information:</p> <p><a href="http://en.wikipedia.org/wiki/Multisample_anti-aliasing" title="http://en.wikipedia.org/wiki/Multisample_anti-aliasing">http://en.wikipedia.org/wiki/Multisample_anti-aliasing</a></p> <p><a href="http://msdn.microsoft.com/en-us/library/bb975403.aspx" title="http://msdn.microsoft.com/en-us/library/bb975403.aspx">http://msdn.microsoft.com/en-us/library/bb975403.aspx</a></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98677.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-multisampling.aspx Sat, 29 May 2010 02:00:01 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-multisampling.aspx#feedback 2 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98677.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98677.aspx XNA &ndash; Nuclex Framework XNA http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-nuclex-framework.aspx <p>I would like to inform you that an interesting stable project is available on codeplex. This is the Nuclex Framework.</p> <p>This is the main page of the project:</p> <p><a href="http://nuclexframework.codeplex.com/" title="http://nuclexframework.codeplex.com/">http://nuclexframework.codeplex.com/</a></p> <p>The more interesting features for me are the following:</p> <ul> <li><a href="http://nuclexframework.codeplex.com/wikipage?title=Vector%20Fonts&amp;referringTitle=Documentation">3D Text Rendering</a></li> <li><a href="http://nuclexframework.codeplex.com/wikipage?title=LzmaContentManager&amp;referringTitle=Documentation">LZMA Content Compression</a> (that's 7-Zip's compression)</li> <li><a href="http://nuclexframework.codeplex.com/wikipage?title=Nuclex.UserInterface&amp;referringTitle=Documentation">Themeable Graphical User Interfaces</a></li> <li><a href="http://nuclexframework.codeplex.com/wikipage?title=Game%20State%20Management&amp;referringTitle=Documentation">Game State Management</a></li> <li><a href="http://nuclexframework.codeplex.com/wikipage?title=DebugDrawer&amp;referringTitle=Documentation">Debugging Overlays</a></li> </ul><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98676.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-nuclex-framework.aspx Sat, 29 May 2010 00:55:20 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/29/xna-ndash-nuclex-framework.aspx#feedback http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98676.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98676.aspx XNA &ndash; Analytical Geometry XNA http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/28/xna-ndash-analytical-geometry.aspx <p>Mathematics plays a fundamental role in video game development. I strongly recommend to study the basics of linear algebra to have a better control of what you create. However, in XNA there is a lot of support for analytical geometry. There are some complex algorithms already implemented so it’s extremely important to know what it is available.</p> <p>You can manage positions, speeds and directions using the classes: <strong>Point</strong>, <strong>Vector2</strong>, <strong>Vector3 </strong>and <strong>Vector4</strong>. </p> <pre class="code"><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">a </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Vector3</span>(0, 0, 10);<br /><span style="color: rgb(1, 0, 1);">a</span>.<span style="color: rgb(1, 0, 1);">Normalize</span>();<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">x </span>= <span style="color: rgb(1, 0, 1);">a</span>.<span style="color: rgb(1, 0, 1);">X</span>;<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">y </span>= <span style="color: rgb(1, 0, 1);">a</span>.<span style="color: rgb(1, 0, 1);">Y</span>;<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">z </span>= <span style="color: rgb(1, 0, 1);">a</span>.<span style="color: rgb(1, 0, 1);">Z</span>;<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">length </span>= <span style="color: rgb(1, 0, 1);">a</span>.<span style="color: rgb(1, 0, 1);">Length</span>();<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">b </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Right</span>;<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">c </span>= <span style="color: rgb(1, 0, 1);">a </span>+ <span style="color: rgb(1, 0, 1);">b</span>;<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">distance </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Distance</span>(<span style="color: rgb(1, 0, 1);">a</span>, <span style="color: rgb(1, 0, 1);">b</span>);<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">dotProduct </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Dot</span>(<span style="color: rgb(1, 0, 1);">a</span>, <span style="color: rgb(1, 0, 1);">b</span>);<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">crossProduct </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Cross</span>(<span style="color: rgb(1, 0, 1);">a</span>, <span style="color: rgb(1, 0, 1);">b</span>);<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">trasform </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Transform</span>(<span style="color: rgb(1, 0, 1);">a</span>, <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateScale</span>(5));</pre> <a href="http://11011.net/software/vspaste"></a> <p> <br /> The most important class in XNA is the <strong>Matrix</strong> class:</p> <pre class="code"><span style="color: rgb(43, 145, 175);">Matrix </span><span style="color: rgb(1, 0, 1);">identity </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">Identity</span>;<br /><br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">cameraPosition </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Vector3</span>(0, 0, 10);<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">cameraTarget </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Zero</span>;<br /><span style="color: rgb(43, 145, 175);">Vector3 </span><span style="color: rgb(1, 0, 1);">cameraUp </span>= <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Forward</span>;<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">viewMatrix </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateLookAt</span>(<span style="color: rgb(1, 0, 1);">cameraPosition</span>, <span style="color: rgb(1, 0, 1);">cameraTarget</span>, <span style="color: rgb(1, 0, 1);">cameraUp</span>);<br /><br /><span style="color: rgb(43, 145, 175);">Matrix </span><span style="color: rgb(1, 0, 1);">projectionMatrix </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreatePerspectiveFieldOfView</span>(<br /> <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver4</span>, <br /> <span style="color: rgb(1, 0, 1);">GraphicsDevice</span>.<span style="color: rgb(1, 0, 1);">Viewport</span>.<span style="color: rgb(1, 0, 1);">Width </span>/ <span style="color: rgb(1, 0, 1);">GraphicsDevice</span>.<span style="color: rgb(1, 0, 1);">Viewport</span>.<span style="color: rgb(1, 0, 1);">Height</span>, <br /> 1, 100);<br /><br /><span style="color: rgb(43, 145, 175);">Matrix </span><span style="color: rgb(1, 0, 1);">viewProjectionMatrix </span>= <span style="color: rgb(1, 0, 1);">viewMatrix </span>* <span style="color: rgb(1, 0, 1);">projectionMatrix</span>;<br /><br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">scale </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateScale</span>(5);<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">translation </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateTranslation</span>(10, 20, 30);<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">rotationX </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateRotationX</span>(<span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver4</span>);<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">rotationY </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateRotationY</span>(<span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver4</span>);<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">rotationZ </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateRotationZ</span>(<span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver4</span>);<br /><span style="color: blue;">var </span><span style="color: rgb(1, 0, 1);">rotation </span>= <span style="color: rgb(43, 145, 175);">Matrix</span>.<span style="color: rgb(1, 0, 1);">CreateFromAxisAngle</span>(<span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Vector3</span>(1, 2, 3), <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver4</span>);</pre> <a href="http://11011.net/software/vspaste"></a> <p> <br /> The <strong>Ray</strong> class represent a straight line. The <strong>Plane</strong> class represent a plane in the 3d world. Then there other important classes like <strong>Rectangle</strong>, <strong>BoundingBox</strong>, <strong>BoundingFrustum </strong>and <strong>BoundingSphere. </strong></p> <pre class="code"><span style="color: rgb(43, 145, 175);">Rectangle </span><span style="color: rgb(1, 0, 1);">rectangle1 </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Rectangle</span>(0, 0, 10, 10);<br /><span style="color: rgb(43, 145, 175);">Rectangle </span><span style="color: rgb(1, 0, 1);">rectangle2 </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Rectangle</span>(5, 5, 10, 10);<br /><span style="color: blue;">bool </span><span style="color: rgb(1, 0, 1);">intersect </span>= <span style="color: rgb(1, 0, 1);">rectangle1</span>.<span style="color: rgb(1, 0, 1);">Intersects</span>(<span style="color: rgb(1, 0, 1);">rectangle2</span>);<br /><span style="color: blue;">bool </span><span style="color: rgb(1, 0, 1);">contains </span>= <span style="color: rgb(1, 0, 1);">rectangle1</span>.<span style="color: rgb(1, 0, 1);">Contains</span>(<span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Point</span>(10, 20));<br /><br /><span style="color: rgb(43, 145, 175);">Ray </span><span style="color: rgb(1, 0, 1);">ray </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Ray</span>(<span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Zero</span>, <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Forward</span>);<br /><span style="color: rgb(43, 145, 175);">Plane </span><span style="color: rgb(1, 0, 1);">plane </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Plane</span>(<span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Up</span>, 10);<br /><span style="color: rgb(43, 145, 175);">BoundingSphere </span><span style="color: rgb(1, 0, 1);">sphere </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">BoundingSphere</span>(<span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">One</span>, 5);<br /><span style="color: rgb(43, 145, 175);">BoundingBox </span><span style="color: rgb(1, 0, 1);">box </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">BoundingBox</span>(<span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">Zero</span>, <span style="color: rgb(43, 145, 175);">Vector3</span>.<span style="color: rgb(1, 0, 1);">One</span>);<br /><br /><span style="color: blue;">float</span>? <span style="color: rgb(1, 0, 1);">distance </span>= <span style="color: rgb(1, 0, 1);">ray</span>.<span style="color: rgb(1, 0, 1);">Intersects</span>(<span style="color: rgb(1, 0, 1);">plane</span>);<br /><span style="color: rgb(43, 145, 175);">PlaneIntersectionType </span><span style="color: rgb(1, 0, 1);">pit </span>= <span style="color: rgb(1, 0, 1);">plane</span>.<span style="color: rgb(1, 0, 1);">Intersects</span>(<span style="color: rgb(1, 0, 1);">sphere</span>);<br /><span style="color: rgb(43, 145, 175);">ContainmentType </span><span style="color: rgb(1, 0, 1);">ct </span>= <span style="color: rgb(1, 0, 1);">box</span>.<span style="color: rgb(1, 0, 1);">Contains</span>(<span style="color: rgb(1, 0, 1);">sphere</span>);<br /> <br /><span style="color: rgb(43, 145, 175);">BoundingFrustum </span><span style="color: rgb(1, 0, 1);">frustum </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">BoundingFrustum</span>(<span style="color: rgb(1, 0, 1);">ViewMatrix </span>* <span style="color: rgb(1, 0, 1);">ProjectionMatrix</span>);<br /><span style="color: rgb(43, 145, 175);">Vector3</span>[] <span style="color: rgb(1, 0, 1);">corners </span>= <span style="color: rgb(1, 0, 1);">frustum</span>.<span style="color: rgb(1, 0, 1);">GetCorners</span>();<br /><span style="color: rgb(43, 145, 175);">Plane </span><span style="color: rgb(1, 0, 1);">nearPlane </span>= <span style="color: rgb(1, 0, 1);">frustum</span>.<span style="color: rgb(1, 0, 1);">Near</span>;<br /><span style="color: rgb(43, 145, 175);">Plane </span><span style="color: rgb(1, 0, 1);">farPlane </span>= <span style="color: rgb(1, 0, 1);">frustum</span>.<span style="color: rgb(1, 0, 1);">Far</span>;</pre> <a href="http://11011.net/software/vspaste"></a> <p> <br /> With the class <strong>Curve</strong> is then possible to handle curves. </p> <p>Finally, it is important to remember the class <strong>MathHelper</strong> that contains some useful methods</p> <pre class="code"><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">max </span>= <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">Max</span>(5, 10);<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">min </span>= <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">Min</span>(5, 10);<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">piOver2 </span>= <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">PiOver2</span>;<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">degrees </span>= <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">ToDegrees</span>(<span style="color: rgb(1, 0, 1);">piOver2</span>);<br /><span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">radians </span>= <span style="color: rgb(43, 145, 175);">MathHelper</span>.<span style="color: rgb(1, 0, 1);">ToRadians</span>(90);</pre> <a href="http://11011.net/software/vspaste"></a><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98675.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/28/xna-ndash-analytical-geometry.aspx Fri, 28 May 2010 23:21:58 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/28/xna-ndash-analytical-geometry.aspx#feedback 1 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98675.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98675.aspx XNA &ndash; Console Component XNA http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/xna-ndash-console-component.aspx <p><br /> XNA is a fantastic technology and I want to learn it well.</p> <p>If you don’t know nothing about 2D and 3D game development, I strongly recommend to buy the book “<a href="http://www.amazon.com/Learning-XNA-3-0-Game-Development/dp/0596521952/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1274910186&amp;sr=8-1"><strong>Learning XNA 3.0</strong></a>”. This is really easy to understand and it introduce to many concepts in a simple step by step approach. I read other three books about XNA but this is definitely the best as a starting point.</p> <p><a href="http://www.amazon.com/Learning-XNA-3-0-Game-Development/dp/0596521952/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1274910186&amp;sr=8-1"><img width="240" height="240" border="0" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/XNAConsoleComponent_13F56/learning%20xna_3.jpg" alt="learning xna" title="learning xna" style="border-width: 0px; display: inline;" /></a> </p> <p><br /> I would like to share with you my demo programs, without the purpose to be exhaustive but just to share interesting stuffs that I can find during my learning process.</p> <p>It is quite useful to have a way to print text on the screen for debugging help. For this reason I created the ConsoleComponent class.</p> <p>Firstly, I’ll show you how to use the console class in the game: </p> <a href="http://11011.net/software/vspaste"></a> <pre class="code"><span style="color: blue;">public class </span><span style="color: rgb(43, 145, 175);">MyGame </span>: <span style="color: rgb(43, 145, 175);">Game<br /></span>{<br /> <span style="color: rgb(43, 145, 175);">GraphicsDeviceManager </span><span style="color: rgb(1, 0, 1);">graphics</span>;<br /> <strong><font size="3"> <span style="color: rgb(43, 145, 175);">ConsoleComponent </span><span style="color: rgb(1, 0, 1);">console</span>;</font></strong> <span style="color: blue;">public </span><span style="color: rgb(1, 0, 1);">MyGame</span>()<br /> {<br /> <span style="color: rgb(1, 0, 1);">graphics </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>(<span style="color: blue;">this</span>);<br /> <span style="color: rgb(1, 0, 1);">Content</span>.<span style="color: rgb(1, 0, 1);">RootDirectory </span>= <span style="color: rgb(163, 21, 21);">"Content"</span>;<br /> }<br /><br /> <span style="color: blue;">protected override void </span><span style="color: rgb(1, 0, 1);">Initialize</span>()<br /> {<br /> <strong><font size="3"><span style="color: rgb(1, 0, 1);">console </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">ConsoleComponent</span>(<span style="color: blue;">this</span>, 17, <span style="color: rgb(43, 145, 175);">Color</span>.<span style="color: rgb(1, 0, 1);">Yellow</span>);<br /> <span style="color: rgb(1, 0, 1);">Components</span>.<span style="color: rgb(1, 0, 1);">Add</span>(<span style="color: rgb(1, 0, 1);">console</span>);</font></strong> } <span style="color: blue;">protected override void </span><span style="color: rgb(1, 0, 1);">Update</span>(<span style="color: rgb(43, 145, 175);">GameTime </span><span style="color: rgb(1, 0, 1);">gameTime</span>)<br /> {<br /> <font size="3"><strong><span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">Clear</span>();</strong> </font> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">"GraphicsDeviceManager.DefaultBackBufferHeight = " </span>+ <span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>.<span style="color: rgb(1, 0, 1);">DefaultBackBufferHeight</span>);<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">"GraphicsDeviceManager.DefaultBackBufferWidth = " </span>+ <span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>.<span style="color: rgb(1, 0, 1);">DefaultBackBufferWidth</span>);<br /><br /> <strong><font size="3"><span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>();</font> <font size="3"><span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">"ValidAdapterFormats: "</span>);</font></strong> <span style="color: blue;">foreach </span>(<span style="color: rgb(43, 145, 175);">SurfaceFormat </span><span style="color: rgb(1, 0, 1);">surfaceFormat </span><span style="color: blue;">in </span><span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>.<span style="color: rgb(1, 0, 1);">ValidAdapterFormats</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">" - " </span>+ <span style="color: rgb(1, 0, 1);">surfaceFormat</span>);<br /> }<br /><br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>();<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">"ValidBackBufferFormats: "</span>);<br /> <span style="color: blue;">foreach </span>(<span style="color: rgb(43, 145, 175);">SurfaceFormat </span><span style="color: rgb(1, 0, 1);">surfaceFormat </span><span style="color: blue;">in </span><span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>.<span style="color: rgb(1, 0, 1);">ValidBackBufferFormats</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">" - " </span>+ <span style="color: rgb(1, 0, 1);">surfaceFormat</span>);<br /> }<br /><br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>();<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">"ValidDeviceTypes: "</span>);<br /> <span style="color: blue;">foreach </span>(<span style="color: rgb(43, 145, 175);">DeviceType </span><span style="color: rgb(1, 0, 1);">deviceType </span><span style="color: blue;">in </span><span style="color: rgb(43, 145, 175);">GraphicsDeviceManager</span>.<span style="color: rgb(1, 0, 1);">ValidDeviceTypes</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">console</span>.<span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: rgb(163, 21, 21);">" - " </span>+ <span style="color: rgb(1, 0, 1);">deviceType</span>);<br /> }<br /><br /> <span style="color: blue;">base</span>.<span style="color: rgb(1, 0, 1);">Update</span>(<span style="color: rgb(1, 0, 1);">gameTime</span>);<br /> }<br /><br /> <span style="color: blue;">protected override void </span><span style="color: rgb(1, 0, 1);">Draw</span>(<span style="color: rgb(43, 145, 175);">GameTime </span><span style="color: rgb(1, 0, 1);">gameTime</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">GraphicsDevice</span>.<span style="color: rgb(1, 0, 1);">Clear</span>(<span style="color: rgb(43, 145, 175);">Color</span>.<span style="color: rgb(1, 0, 1);">Black</span>);<br /><br /> <span style="color: blue;">base</span>.<span style="color: rgb(1, 0, 1);">Draw</span>(<span style="color: rgb(1, 0, 1);">gameTime</span>);<br /> }<br />}</pre> <a href="http://11011.net/software/vspaste"></a> <pre class="code"><font size="2"><font size="1"><br /></font></font></pre> <p><font size="2">It is extremely simple to use. You create an instance of the ConsoleComponent class passing a reference to the game object, the interline and the text color. Then you can use the WriteLine() method to draw a text while with the Clear() method you can clear all the text.</font></p> <p><font size="2">This is the code of the component:</font></p> <pre class="code"><font size="2"> </font></pre> <font size="2"><a href="http://11011.net/software/vspaste"></a></font> <pre class="code"><span style="color: blue;"><font size="2">public class </font></span><span style="color: rgb(43, 145, 175);"><font size="2">ConsoleComponent </font></span><font size="2">: <span style="color: rgb(43, 145, 175);">DrawableGameComponent<br /></span>{<br /> <span style="color: blue;">private </span><span style="color: rgb(43, 145, 175);">SpriteBatch </span><span style="color: rgb(1, 0, 1);">spriteBatch</span>;<br /> <span style="color: blue;">private </span><span style="color: rgb(43, 145, 175);">SpriteFont </span><span style="color: rgb(1, 0, 1);">consoleFont</span>;<br /><br /> <span style="color: blue;">private float </span><span style="color: rgb(1, 0, 1);">interline</span>;<br /> <span style="color: blue;">private </span><span style="color: rgb(43, 145, 175);">Color </span><span style="color: rgb(1, 0, 1);">textColor</span>;<br /><br /> <span style="color: blue;">private </span><span style="color: rgb(43, 145, 175);">List</span>&lt;<span style="color: blue;">string</span>&gt; <span style="color: rgb(1, 0, 1);">messages</span>;<br /> <br /> <span style="color: blue;">public </span><span style="color: rgb(1, 0, 1);">ConsoleComponent</span>(<span style="color: rgb(43, 145, 175);">MyGame </span><span style="color: rgb(1, 0, 1);">game</span>, <span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">interline</span>, <span style="color: rgb(43, 145, 175);">Color </span><span style="color: rgb(1, 0, 1);">defaultTextColor</span>) : <span style="color: blue;">base</span>(<span style="color: rgb(1, 0, 1);">game</span>)<br /> {<br /> <span style="color: blue;">this</span>.<span style="color: rgb(1, 0, 1);">interline </span>= <span style="color: rgb(1, 0, 1);">interline</span>;<br /> <span style="color: blue;">this</span>.<span style="color: rgb(1, 0, 1);">textColor </span>= <span style="color: rgb(1, 0, 1);">defaultTextColor</span>;<br /><br /> <span style="color: blue;">this</span>.<span style="color: rgb(1, 0, 1);">messages </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">List</span>&lt;<span style="color: blue;">string</span>&gt;();<br /><br /> <span style="color: rgb(1, 0, 1);">spriteBatch </span>= <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">SpriteBatch</span>(<span style="color: rgb(1, 0, 1);">game</span>.<span style="color: rgb(1, 0, 1);">GraphicsDevice</span>);<br /> <span style="color: rgb(1, 0, 1);">consoleFont </span>= <span style="color: rgb(1, 0, 1);">game</span>.<span style="color: rgb(1, 0, 1);">Content</span>.<span style="color: rgb(1, 0, 1);">Load</span>&lt;<span style="color: rgb(43, 145, 175);">SpriteFont</span>&gt;(<span style="color: rgb(163, 21, 21);">"consoleFont"</span>);<br /> }<br /><br /> <span style="color: blue;">public void </span><span style="color: rgb(1, 0, 1);">Clear</span>()<br /> {<br /> <span style="color: rgb(1, 0, 1);">messages</span>.<span style="color: rgb(1, 0, 1);">Clear</span>();<br /> }<br /><br /> <span style="color: blue;">public void </span><span style="color: rgb(1, 0, 1);">WriteLine</span>()<br /> {<br /> <span style="color: rgb(1, 0, 1);">messages</span>.<span style="color: rgb(1, 0, 1);">Add</span>(<span style="color: rgb(163, 21, 21);">""</span>);<br /> }<br /><br /> <span style="color: blue;">public void </span><span style="color: rgb(1, 0, 1);">WriteLine</span>(<span style="color: blue;">string </span><span style="color: rgb(1, 0, 1);">text</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">messages</span>.<span style="color: rgb(1, 0, 1);">Add</span>(<span style="color: rgb(1, 0, 1);">text</span>);<br /> }<br /><br /> <span style="color: blue;">public override void </span><span style="color: rgb(1, 0, 1);">Draw</span>(<span style="color: rgb(43, 145, 175);">GameTime </span><span style="color: rgb(1, 0, 1);">gameTime</span>)<br /> {<br /> <span style="color: blue;">base</span>.<span style="color: rgb(1, 0, 1);">Draw</span>(<span style="color: rgb(1, 0, 1);">gameTime</span>);<br /><br /> <span style="color: rgb(1, 0, 1);">spriteBatch</span>.<span style="color: rgb(1, 0, 1);">Begin</span>();<br /><br /> <span style="color: blue;">float </span><span style="color: rgb(1, 0, 1);">y </span>= <span style="color: rgb(1, 0, 1);">interline</span>;<br /> <span style="color: blue;">foreach </span>(<span style="color: blue;">string </span><span style="color: rgb(1, 0, 1);">text </span><span style="color: blue;">in </span><span style="color: rgb(1, 0, 1);">messages</span>)<br /> {<br /> <span style="color: rgb(1, 0, 1);">spriteBatch</span>.<span style="color: rgb(1, 0, 1);">DrawString</span>(<span style="color: rgb(1, 0, 1);">consoleFont</span>, <span style="color: rgb(1, 0, 1);">text</span>, <span style="color: blue;">new </span><span style="color: rgb(43, 145, 175);">Vector2</span>(<span style="color: rgb(1, 0, 1);">interline</span>, <span style="color: rgb(1, 0, 1);">y</span>), <span style="color: rgb(1, 0, 1);">textColor</span>);<br /> <span style="color: rgb(1, 0, 1);">y </span>+= <span style="color: rgb(1, 0, 1);">interline</span>;<br /> }<br /><br /> <span style="color: rgb(1, 0, 1);">spriteBatch</span>.<span style="color: rgb(1, 0, 1);">End</span>();<br /> }<br />}</font></pre> <font size="2"><a href="http://11011.net/software/vspaste"></a> </font> <p><font size="2"><br /> In this simple example you can see how it is easier to draw 2D strings using XNA.</font></p> <p><font size="2">This is a screenshot of the application: <br /> </font></p> <p><font size="2"><a target="_blank" href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/XNAConsoleComponent_13F56/consolecomponent_2.jpg"><img width="663" height="517" border="0" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/angellaa-en/WindowsLiveWriter/XNAConsoleComponent_13F56/consolecomponent_thumb.jpg" alt="consolecomponent" title="consolecomponent" style="border: 0px none; display: inline;" /></a> </font></p> <p><font size="2"><br /> The complete Visual Studio 2008 project is available to the following link:</font></p> <p><font size="2"><a href="http://cid-1dcae6b548e3761c.skydrive.live.com/self.aspx/.Public/XNA/ConsoleComponent.zip" title="http://cid-1dcae6b548e3761c.skydrive.live.com/self.aspx/.Public/XNA/ConsoleComponent.zip">http://cid-1dcae6b548e3761c.skydrive.live.com/self.aspx/.Public/XNA/ConsoleComponent.zip</a><a href="http://11011.net/software/vspaste"></a></font></p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98663.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/xna-ndash-console-component.aspx Wed, 26 May 2010 23:30:40 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/xna-ndash-console-component.aspx#feedback 2 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98663.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98663.aspx My First English Blog http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/my-first-english-blog.aspx <p>Hello everybody, <br />this is my first post in my new English blog.</p> <p>I decided to create an English blog for few simple reasons (in order of importance):</p> <ol> <li>Learning English </li> <li>Increase the audience of my posts </li> </ol> <p>I would like to use this blog to share, with the international community, my efforts in learning new technologies but not only this. I would like also talk about my personal experiences and interests.</p> <p>I’m sorry if my English will not be perfect. Please, tell me if I make some terrible mistakes.</p> <p>See you soon,</p> <p>Andrea</p><img src="http://blogs.ugidotnet.org/angellaa-en/aggbug/98662.aspx" width="1" height="1" /> Angella Andrea http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/my-first-english-blog.aspx Wed, 26 May 2010 22:27:57 GMT http://blogs.ugidotnet.org/angellaa-en/archive/2010/05/26/my-first-english-blog.aspx#feedback 3 http://blogs.ugidotnet.org/angellaa-en/comments/commentRss/98662.aspx http://blogs.ugidotnet.org/angellaa-en/services/trackbacks/98662.aspx