Stock Portfolio In Visual Basic

Create an application in Visual Basic Using Visual Studio 2010 that will imitate building a Stock Portfolio.

Instructions:
1) Create MS-Access database called Stock Portfolio with Stocks table. Fill Stocks table with the data shown above.
2) Develop an application that performs the following tasks: add a stock to the portfolio, update a stock, display stocks and show profit (or loss) of your portfolio.

3) A possible form design is provided. You may use DataGridView instead of outListBox.
You may modify the design if needed.
4) Include necessary comments. In addition, specify the authorship for all parts of the code using comments.
5) Define Stocks Class with appropriate members. Keep class definition in a different file.
6) Implement input validation for all input fields.
7) Display the information from Stocks table as shown in Stock Portfolio table when the user clicks on a Display Stocks Button.
8) Add another stock at the end of the table when the user clicks on an Add Stock button. The data for the new stock should be read from appropriately labeled text boxes.
9) Update the current Price/Share of a stock in the Stocks table when the user clicks on an Update Stock button. The name of the stock to be updated and the new price should be read from the appropriate text boxes.
10) Process the data in Stocks table and produce the display with current stock information when “Show Profit/Loss” button is clicked. Use the following formulas:
Cost is the product of Number of Shares and Purchase Price/Share;
Current Value is a product of Number of Shares and Current Price/Share;
Profit (or Loss) is a difference between Cost and Current Value. If negative (or Loss), include result in parenthesis.

Create A Shell Program

Hi,

I need to know in real time some stats of some server all in one external server.

I have 10 server and i want to know how many packets and mebabits are sending and receive in realtime for each server.

I use vnstat to live stats.

This work can be done also with a bash script that login in the servers and give the info each x time with refresh. But it need to show all in one table.

Html E-mail Signature Design

I need a nice design for html email signature whith some links to my facebook, linkedin, twiter, youtube,links with my 2 websites.. I would like to choose from at least 3 design. Attached is a sample with an idea of what I like every time I sent an email. I have 4 emails account and I use outlook express, I would also need help how to put it. At this time when I send an email, my picture comes like an attachement… I have a Real Estate company and a real estate school located in Miami, Florida. I was looking into the www.wrapmail.com and saw interesting things. I have plenty of work to accomplish for my 2 websites, but a friend reffer me to this website and told me to try first the small things.

Seo For A Wow Related Site

Hi, I am looking to get some SEO done for my website. I have an established website with established traffic but 0 SEO. I am looking to get up to page 1 on some very competitive keywords. I am not going to pay without results, meaning I am not paying you if you are not able to get me any results. Results = $$$

Please contact me for details, and I will probably ignore most copy/paste replies.

Guide to Simple Animations in jQuery

We have talked about jQuery a lot over the past months, and even more since the humble beginnings of Switch On The Code. There are many reasons for this, and I am sure we all can agree that jQuery is just awesome. From its simple way of grabbing DOM elements down to its powerful extensions that make the possibilities effectively endless. But there is one thing we have covered yet… jQuery Animations.

Speed:

None
Slow
Fast
10ms
100ms
200ms
400ms
800ms

Animation:

Show
Hide
Slide Up
Slide Down
Fade In
Fade Out
Move Left
Move Right

In past tutorials, we have looked at a few of the simple animations that you can do with jQuery, and more specifically the show and hide. We have also seen the slideUp and the slideDown a few times. However, in this tutorial we will go over all four, plus some more, just in case you missed those or forgot about them. So without further blabber, let’s get started.

Animations can be any number of fancy things, and most often we think of a complex string of frames that are played in rapid succession to give up the illusion of motion. Now, film school definitions aside, in jQuery a good portion of your animations will deal with showing and hiding your elements in some neat way. This could be throwing it from off screen onto the screen, or sliding it down from nowhere, or even making it appear out of thin-air. The fact remains, though, that most of the time you will be merely showing or hiding the elements in question.

Show/Hide

On the most basic level you have two functions that are technically not animations, but do “show” and “hide” your elements, and yep, you guessed it, they are called show and hide. All you have to do is call either on an element to perform the subsequent action:

$(‘#element’).show();
$(‘#element’).hide();

Pretty easy, right? I would get very use to seeing those two, because they are the foundation for advanced jQuery development. Showing and hiding are used in just about every rich application on the web.

The neat thing is that these two, normally not-so-animated functions, can become animation functions when a “duration” is passed into them. This duration can be a string (“slow” or “fast”) or a number representing the length of the animation (in milliseconds), and all animation functions can take a duration. When a duration is passed in, show and hide actually animate the width, height, and opacity of an element at the same time.

$(‘#element’).show(‘fast’);
$(‘#element’).hide(‘slow’);
$(‘#element’).show(200);
$(‘#element’).hide(10);

Take a close look here. This is what most of your animating will look like. Calling a function on an element and passing in a duration. All standard jQuery animation functions work in the same way, allowing you to use “fast”, “slow”, or a millisecond duration. However, unlike show and hide, all the other animation functions will default their duration and still animate without anything being passed in.

Sliding and Fading

Moving on to our first real animation, we have the “slide”. A slide animates the height to give the illusion that an element is “sliding” away or into existence. A very interesting animation indeed. Just like the example above, there are two functions for sliding, one to show and one to hide. slideUp hides an element by reducing its height until it reaches 0. slideDown increases its height until it reaches its calculated or given height. If the element is already shown, slideDown does nothing, and vise-versa for slideUp.

$(‘#element’).slideUp(‘fast’);
$(‘#element’).slideDown(‘slow’);
$(‘#element’).slideUp(200);
$(‘#element’).slideDown(10);

Simple enough. But sliding isn’t for everyone, and thankfully jQuery has another pair of functions to handle fading. Fading works by scaling the opacity to and from 0. The two functions for fading are, you probably guess them, fadeIn and fadeOut. It is probably also a lot more obvious which one hides the element (fadeOut) and which one shows it (fadeIn). Just like sliding, the syntax is extremely simple.

$(‘#element’).fadeOut(‘fast’);
$(‘#element’).fadeIn(‘slow’);
$(‘#element’).fadeOut(200);
$(‘#element’).fadeIn(10);

And that are the two quick-style animations that jQuery currently offers. However there is another function we can use…one that is all powerful…one that will allow us to become…..Masters of the Universe!

The Animate Function

Ok, so honestly there is a very slim chance that this jQuery function will fill you with all the power of Grayskull, but it sure does a lot of cool stuff when it comes to animation. If fact, it can do just about anything you want. To keep the scope of this tutorial less than a law briefing, we are going to go over just one way to animate with it.

The animate function takes in a lot of different combinations of things. However, the most important is the first argument, which never changes. The first argument that you pass into it is what you are animating. This could be its position, its color, its opacity, or even its size, the possibilities are endless. You actually pass in a map of css properties to animate, so if it’s in css, you can animate it. For this example we are going to nudge our element back and forth, i.e. its position.

The first thing to remember is that anytime you are modifying the position of an element, you have to change the css position property of the element in question. Even if you just change it to use the position of “relative”, it needs to be something you can apply a left and top property to. As long as you can position the element with css, you are good to go.

So the plan is to move our element left and right, by 50 pixels or so. In order to do this, we have to animation the left property by +/- 50 pixels. This is what our animation call would look like for a basic position shift:

elm.animate({"left": "+=50"});
elm.animate({"left": "-=50"});

As you can see, it is just as simple as our slide and fade calls, except we are missing our speeds. Of course jQuery is not going to leave us without a way to set that, and in fact it is the optional second argument for this function.

elm.animate({"left": "+=50"}, "fast");
elm.animate({"left": "-=50"}, 1000);

Thats right, you can specify speed just like the other functions we looked at. You can use “fast”, “slow”, or a number. Anywhere from 10 milliseconds to 100 seconds, it’s up to you.

So this is how you move an element left or right with the animate function. Remember, you can animate any css property, so the possibilities are truly endless.

Well, these are the basics to animating things in jQuery. If the built-in animations don’t do it for you, you can always use the versatile animate function. They are all fun to watch in action and they always add that needed flair. Just remember, we you need coding help, all you have to do is Switch On The Code.

Top 3 iPhone apps: Chris Foresman

We ran into “Karaoke Wizard” and writer for Ars Technica Chris Foresman at Macworld Expo, and asked his favorite 3 iPhone apps. He told us the ones he uses the most:

Enjoy Sudoku

Twitter

Plants vs. Zombies

Each weekend we bring you the top 3 iPhone apps of people from around the world. Stay tuned next week to find out what people are using on their iPhones.

Top 3 iPhone apps: Chris Foresman originally appeared on TUAW on Sat, 02 Apr 2011 20:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Rumor: Seventh-generation iPod nano to add rear-facing camera

Apple.pro has posted an image which it claims is the rear casing for the next iPod nano. The purported casing shows a hole which would house a rear facing camera. Apple.pro has a history with iPod nano rumors, as they were the first to post an image of a small touchscreen which later made its way into the sixth-generation iPod nano that debuted last fall.

As noted by MacRumors, when the sixth-generation iPod nano was unveiled, many loved its new form factor, but some lamented over the loss of the camera which was found in the fifth-generation iPod nano. If Apple.pro’s image is legitimate, it looks like Apple is trying to combine the best features of the two previous nanos into one. MacRumors does note that the camera hole would be obscured by the current clip on the iPod nano, but it’s likely that Apple will just narrow the clip to make way for an unobstructed camera view.

Rumor: Seventh-generation iPod nano to add rear-facing camera originally appeared on TUAW on Sat, 02 Apr 2011 19:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Cablevision releases iPad app for cable subscribers

Not to be outdone by Time Warner, Cablevision has released Optimum for iPad, which allows its cable subscribers to use their iPad “as an additional TV in the home.” In addition to watching live TV, the app also allows Cablevision subscribers to record from the iO TV Listings Channel Guide, manage iO DVRs, browse and view Free On Demand content, and view other On Demand content from iO Active Rentals.

The free Optimum for iPad app requires a digital cable box on the iO TV account and an Optimum-provided modem. Last month Time Warner cable released a similar app that lets subscribers view live TV on their iPads (but that does not include the DVR/guide and on demand features of the Optimum app). Shortly after that, Discovery, Fox, and Viacom demanded Time Warner remove their channels from the app. Time Warner responded by removing the channels, but also adding new ones to replace them. The new channels included A&E, Disney, Bravo, SyFy, Travel Channel, and USA. While the Optimum for iPad app allows Cablevision customers to “watch all of your subscribed-to channels live” it’s yet to be seen if Discovery, Fox, and Viacom will demand their channels to be removed from that app as well.

Cablevision releases iPad app for cable subscribers originally appeared on TUAW on Sat, 02 Apr 2011 18:35:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

iPhone 5 to sport an 8MP Sony camera?

As reported by 9to5 Mac, last night Sony’s CEO Sir Howard Stringer told Walt Mossberg that a Sony camera image sensor factory in Japan was damaged in the Sendai earthquake. As a result of that damage, Stringer said that getting those image sensors to Apple for the iPhone will be delayed. The interesting thing about this statement is, of course, that Sony doesn’t supply any camera sensors to Apple for use in previous or existing iPhones.

Stringer’s comments align with a report from The Street back in April 2010 that the iPhone 5 would sport an 8 megapixel camera from Sony. Sony currently makes an 8 megapixel back-lit camera sensor for the Sony Ericsson Xperia arc.

In the image to the right you can see some of the features of the camera sensor found in that phone. The current back-lit 5 mega-pixel camera and 3.2 mega-pixel camera found in the iPhone 4 and iPhone 3GS respectively are manufactured by OmniVision, which The Street also reported Apple would be parting ways with after the iPhone 4.

[hat tip to The Loop]

iPhone 5 to sport an 8MP Sony camera? originally appeared on TUAW on Sat, 02 Apr 2011 18:10:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

In search of the perfect remote access app: TeamViewer

If you have multiple computers or have to provide support to a remote Mac or PC used by a family member or friend, or if you travel and need to contact your computer at home, you’re a customer for some sort of remote access. There are lots of choices, both free and paid. I’ve tried many, like some of the varieties of VNC, and solutions like LogMeIn Ignition and RDM+. They have all worked, but I was looking for more.

After reading a review of TeamViewer by our Erica Sadun last fall, i decided to give it a try. For home/personal use, it’s absolutely free. I was only using personally, so free sounded good. I installed it on my Mac, on a Windows laptop, and grabbed the iPhone and iPad clients. Each computer you want to contact needs to run a version of the TeamViewer app appropriate for the computer it’s installed on. There are versions for Windows, Macs and Linux. With that done, you run the program and your shared machine is assigned an ID. A password will also be assigned, but you can choose your own.

Connecting to a remote computer is as easy as typing in the ID of that computer, and logging in with your password. In a couple of seconds you’ll see the remote screen and some extra buttons that allow you to do file transfers, remote reboot a computer, and tune the connection by adjusting the quality and scaling of the remote display. You can also bring up a chat window if you are working with someone on the remote computer. The is no reason to have to fool with firewalls or chase changing IP addresses. TeamViewer just works. Sound is not supported on the Mac side. PC to PC, there is a VoIP chat and video option. These features are coming to the Mac version, but no dates.

Continue reading In search of the perfect remote access app: TeamViewer

In search of the perfect remote access app: TeamViewer originally appeared on TUAW on Sat, 02 Apr 2011 16:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments