Hi, I am Rakesh. Welcome to my blog

This tutorial is divided into the following parts.


1)Creating the layout (Starts below)
2) Creating the Main Movieclip
3) Adding Some Content
4) Optimizing the Images
5) Adding More Content
6) Making the Buttons
7) Preloading the Website


Part 1) Creating the Basic Layout
For the first part, we're going to create the basic layout for the website.
Step 1.

First of all create a new Flash document with the settings shown below. For the background color I've used #55666D


Step 2.
We're going to create a rectangle for the background of the site. Set the stroke color (circled in blue), using the icon circled in red. This will prevent there from being a border around the rectangle.

Step 3.
Set the fill color (circled in blue) to white (circled in red).

Step 4.
Choose the rectangle tool (circled in red) and create a rectangle with the settings shown below in the properties panel. The stage has been zoomed out to 50%.

art 2) Creating the Main Movieclip
Step 5.
Next we'll be creating the main MC (movieclip) where all the parts of the website will go. The main MC will be on the root timeline of the flash movie. So, click on the white rectangle and convert it into an MC called 'main'. You can do this by either pressing f8 or by going to Modify > Convert to symbol.

Step 6.
So, now that we've created the main MC, double click on it.

Step 7.
Click on the white rectangle again and convert into another MC, this time named 'background'

Step 8.
Double click on the background MC and choose the Selection Tool (V). Drag your mouse over the white rectangle, selection around 3/4 of it.
Step 9.
Set the fill color (circled in blue) to a dark grey color (#484848)
Enlarge Image
Step 10.
So that's the background MC created, go back to the Main MC. Name the layer with the background MC "background" and create 2 other layers called "content" and "buttons"

Part 3) Adding Some Content
Step 11.
In part 3 we're going to be adding some content. Using the Text Tool (T), add a title for the site's homepage, using the settings below.

Step 12.
Convert the text into an MC called 'content'

Step 13.
Go into the content MC and name the layer "sections"

Step 14.
Add a subheading, if you like, using the settings shown below.
Step 15.
And some body text.
Step 16.
You can use the Align Panel (Window > Align) to align all the text to the right, by click on the icon circled in red.
Step 17.
I've copied (edit > copy) the title and subtitle and pasted (edit > paste in place) it to the right for a 'featured' section.


Part 4) Optimizing an Image & Making it a Button
Step 18.
Now we're going to add an image and optimize it. When importing images (File > Import > Import to Stage) into flash you have the ability to optimize them, but a balance must be struck between quality and low file size, to allow for quick loading of the flash file (SWF). It's good to optimize your images from within flash, becuase you can tweak their quality whenever you want, without having to open them up again in an image editing program. So the file extension i usually use for images is PNG, which provides a high quality image. So below you can see a image, that I've imported, as the featured item of the Flash site.


Step 19.
The image is called "best.png". You can optimize it by right clicking on 'best', from the layers panel, and by choosing properties. You'll then be shown the panel shown below.
Step 20.
Un-check the 'Use document default quality' settings, and the default quality (50) will be revealed. You can see a preview of th quality in the image to the left which, as you can see, is quite poor. You can also see the size of the image at the bottom.
Step 20.
Un-check the 'Use document default quality' settings, and the default quality (50) will be revealed. You can see a preview of th quality in the image to the left which, as you can see, is quite poor. You can also see the size of the image at the bottom.
Step 21.
Now that the image has been optimized, we're going to create turn it into a button, that opens up a browser window. Convert the image into an MC (F8) called 'bestMC'
Step 22.
Give the MC an instance name, from the properties panel, called 'best'.
Step 23.
The image can now be given some functionality by refering to the instance name. In the content MC, create a new layer called script and click on the 1st frame of the layer. Open up the actions panel and enter the code shown below. This code refers to the image, using the instance name 'best', giving it an onRelease function. So when ever the image is pressed and release, it can be told to do something. In this case, it's told to open up a browser window (getURL), using the address of this website. We also have to add a stop action, because we're about to create more frames in the content MC.



Part 5) Adding More Content
Step 24.
Next we're going to add the rest of the content. Later on we'll be creating some buttons which. when pressed, will display it's corresponding section. In the content MC we''re going to create each section at a different frame. When one of the buttons is pressed, the content MC will go to the frame with the right content on. To do this, we're going to give each section a label that we can tell the content MC to go to. So, create a new layer called 'labels', inbetween the script and section layer. Click on the first frame of the labels layer and, at the properties panel, enter 'about' under 'frame' (cirlced in red).


Step 25.
Select frame 10 of all the layers and then insert key frames for each layer (F6)
Step 26.
On frame 10, of the labels layer, add another label called "portfolio". You can add more frames, extending them fto frame 20, by using f5 while layer 10 of all frames are selected.
Step 27.
Change all the text to suit this section and add the first thumbnail for your portfolio
Step 28.
Convert the image to an MC called 'thumb0'
Step 29.
Add more thumbnails, also converting them to MC's called thumb1, thumb2, thumb3 etc. Then give the thumb0 mC the same instance name, which we'll use to give some functionality. Do the same with each of the other thumbs, giving thumb1 MC the instance name 'thumb1' etc.
Step 30.
Click on frame 10 of the script layer and open up the Actions panel. As we did with the featured image, add the code show below, this time swapping the URL address for what ever you want the thumbnails to open up.
Step 31.
Add an onRelease function for each of the other thumbnails.
Step 32.
For the 3rd section, create another key frame (F6) at frame 20 of all the layers
Step 33.
Create the a label for the 3rd section. As you can see i've made it 'resume'
Step 34.
So that's all the sections completed in the content MC, go back to the main MC and give the content MC and instance name. We can then use the instance name to control the content MC.


Part 6) Creating the Buttons
Step 35.
Now we're going to create some buttons to tell the content MC to go to the corresponding label. First of all, double click on the rectangle tool and set the corner radius to 10 points.


Step 36.
On the buttons layer, create a rounded rectangle, using the same grey that was used for the background.
Step 37.
Conver the rectangle into an MC called "button_background"
Step 38.
We can now use and instance of button_background MC for each button. So copy and paste the 1st one, placing it to the right.
Step 39.
Create a 3rd instance, and then convert the 1st one into another button symbol called 'about'. This button will be used to tell the content MC to go to the 'about' label.
Step 40.
Convert the button_background instance into a button symbol called 'portfolio' and the 3rd into a button symbol called 'resume'.
Step 41.
Double click on the about button symbol and you'll be displayed with what's shown in the image below.
Step 42.
Create a new layer and add the text 'about'
Step 43.
Then do the same with the portfolio button symbol, but this time placing the text 'portoflio' in the 2nd layer.
Step 44.
Go back to the main MC. Do the same for the resume button, and then give the about button symbol the instance name 'about'. Give the portoflio button the instance name 'portolfio' and the resume button the instance name 'resume'
Step 45.
Create a layer called "script", above the buttons layer in the main MC. Open up the Actionc spanel and add the actionscript shown below. This script give each button functionality, so that when they're pressed, the content MC goes to the corresponding sections.


Preloading the Website
Step 46.
For this final part, of the tutorial to create a basic Flash website, we're going to create a preloader for the website. Go back to root of the time, where the 'Main' MC is, and move the frame, that it's on, to frame 2.

Step 47.
Now make a text field on the 1st frame, with the text "loading", using the settings shown below

Step 48.
Convert the text field (F8) to an MC called 'loader'

Step 49.
Double click on the 'loader' MC and create a 2nd text field on the right, with the text "99%". From the properties panel the text has been made "dynamic", and a Var (variable) has been given to it called "percent". When the website is preloading, this variable will hold the percent value that's loaded so far, and it'll be displayed in the dynamic text field.

Step 50.
Go back to the root timeline. Instead of placing the code on a frame on the timeline, put it on the loader MC, by clicking on it, opening up the Actions Panel, and then entering the code, shown in the image below. This block of Actionscript will check to see how much of the website has loaded and display the percentage in the text, using the 'p' variable. Once all of it is loaded, the timeline will go to frame 2, and the site will be displayed

Step 51.
Last of all, on the 1st frame of the root timeline, place a stop() action on a layer called, 'script'.
And that brings us to the end of this Flash tutorial to create a Basic Website
Download FLA


Integrating Fedora Linux into a Windows network is reasonable and easy as long as you use the SAMBA utilities. I share the main steps necessary to implement such a SAMBA server within most Windows environments.



Once integrated a Linux server looks and acts exactly like any other server on a Windows intranet. You will have the ability to drag and drop files, view server contents and directories using Windows File Manager, and even edit files on a Linux server from any Windows desktop.

This article is a guide to setting up a full fledged FEDORA LINUX/SAMBA server. If you need basic steps for connecting Linux with Windows please read my article Windows to Linux: Basic Networking. If you're a system administrator and are planning to integrate the Linux server into your AD server environment, I'm sorry I do not go into details how to configure smb.conf for ADS usernames, although it can be done. I will walk you through the main steps for installing a SAMBA Server. This, in my opinion, is the first part to any future more advanced integration.

First, you must allow the Linux server full rights and access to the Windows workgroup and local domain. That means that either in your Active Server environment you need to reserve an IP address for the Linux server, or you simply need to ensure a hard coded IP address is given to the Linux server. The server must have a reserved IP address whether you deliver it via DHCP or statically assign it in the DNS. This also means that you need to ALLOW SMB DAEMON to operate. You can ensure your system security does this by editing your Firewall setup or using system-config-securitylevel .

Second, you must ensure that SAMBA (SAMBA tools and the SMB protocol) is installed and running on the Linux server. Most versions of Fedora come with the necessary packages. You should also be sure to update your SAMBA security levels properly if you are having trouble accessing a shared directory. This is found under Samba Server Configuration tool, main menu Properties, option Server Settings, and then the tab: Security.

Now you are ready to configure your Fedora Linux/SAMBA machine... aka. SAMBA Server.


STEP 1: Enable Network Connectivity to the SAMBA Server

Using the Fedora Network Configuration tool you will need to ensure that the ethernet card is enabled and properly functioning. Get quick access to the tool through this command: system-config-network

Once in the Network Configuration tool, you should ensure that your ethernet device is enabled. If it is not, select the eth device and then click on the Edit button. This will allow you to input the vital network adapter settings including: statically set IP address, subnet mask, and gateway. You should also select the top checkbox labeled Activate device when computer starts. Read this article for more details regarding configuring a network card in Fedora, Mandrake, or SuSE.

Close and save any changes you've made. The main goal is to ensure you have an ACTIVE and functioning network card on the SAMBA server.

Restart the network services or simply reboot your SAMBA server. Now try a ping to the server from another PC on the same subnet. At a command prompt, for example, type: ping 10.2.2.3

The ping should come back good validating your network connection. If you need more Linux system administration help read my Admin Commands List.


STEP 2: Update Firewall Settings

In most cases the default Firewall setting on the SAMBA server locks out any inbound network requests. I've had a great many people come running to me about this issue. If you're setting up a basic SAMBA server within your business intranet, allow your ethernet connection to be a trusted device so others can get to your SAMBA server and not be bounced by the server's Firewall.

NOTICE: if you plan to use the SAMBA server outside of your business firewall/intranet you should NOT follow the next step. Instead you allow your local server to receive packets by making changes to your IPTABLES, such as:
iptables -A INPUT -s 192.168.0.0/255.255.255.0 -j ACCEPT
The following step is for those using an intranet business server configuration.

Okay, now to allow your intranet based SAMBA server to properly accept incoming requests, from your Main menu choose System Settings, then Security Level. You can access this also by typing the command:
system-config-securitylevel

Please select the box next to the ethernet card you are using for intranet connectivity so that it becomes a TRUSTED DEVICE. Otherwise you have a super secure server that bounces inbound requests. Notice, this selection effects all the items in the Services listing above it, so please be careful in what context you allow a trusted device!

Press OK when finished.


STEP 3: Enable SMB Services

Ironically, the SMB daemon and other core services are usually NOT started by default. You will need to change this so that your SMB daemon is now started.

Using the GUI from the main menu, go to System Settings, then Server Settings, then choose Services. You can also get to this using the command: system-config-services


While you're looking over this long list of services, please DISABLE things you know for sure you do not need to run on this SAMBA server. For instance apmd, isdn, etc. But also ensure that key services such as SMB are selected and RUNNING. Select SMB and press the Start button. If it is supposedly already running you can press the Restart button to be sure it is indeed running correctly now.

Now press the Save button to make sure the configuration changes have been saved for future restarts.

Sometimes using the GUI just does not properly restart the SMB daemon. In such odd cases, I want to suggest you force a manual restart from the command line with this command: /etc/rc.d/init.d/smb restart

If you keep having startup failures, where for every reboot you need to perform Step 3, you may need to manually configure your start up processes so that SMB will always be in the init.d bootup. Okay, if that sounded ridiculously confusing then how about just going to my article on manually starting services and configurations.


STEP 4: Create Server Users & Directories

You will need to ensure that people also have a login to the SAMBA server to do their work. Logins should be provided on an as needed basis. Obviously, in most cases the users accessing the SAMBA server will be a subset of the total users on the Windows business network.

Create user logins with the Gnome User Manager tool in Fedora. You can find this from the main menu by choosing System Settings, then Users & Groups. The command for this is: system-config-users

Notice this is the first step in creating SAMBA users, which comes later.

Add as many users as you need and then move on to the next part, which is creating directories (aka. folders) for use.

This is such an obvious step most people usually forget to think about it before hand. However, it is very helpful to think ahead what directories you will allow access to on the SAMBA Server for business use. In my case the people needing SAMBA server access will be updating webpages. Therefore, I do not need to add any other folders for file sharing or group interaction. Be sure you add any folders in a reasonable and ordered fashion.

A big TIP for those who are not aware, the permissions settings for your folders are very important. If you have no idea how to change permissions, then you may want to review this article on Linux filemanagement and permissions.


STEP 5: Configure the SAMBA Server

It's time to configure your SAMBA server to allow others on the intranet to login and use the server from Windows or Linux PCs.

From the main Fedora menu, choose System Settings, then Server Settings, then Samba. You can also get to this tool by typing the command: system-config-samba

You are about to make changes to the SAMBA Configuration file called smb.conf. This file is found under /etc/samba. If you encounter issues you may want to first start by using my example smb.conf file and then make the changes below. I also want you to be aware that you can edit configuration files with the web interface tool called Samba Web Administration Tool(SWAT) and several others. Now lets move ahead using the Configuration tool using the preloaded Fedora tools. NOTICE that many people begin by tinkering with their .conf file... this is NOT a good idea. First ensure that the basic samba connectivity works and THEN you can tinker with the smb.conf! (see troubleshooting below)

A. Begin by Making Changes to the Server Settings

Under the Preference menu item choose Server Settings...


Be sure to include the Windows workgroup name. In the example above the workgroup has been changed to net. Your situation may be different. In many cases naming the workgroup simply workgroup is fine, so long as your Windows PCs connect to this same name.

Under this same window, click on the Security tab. It comes by default with the appropriate settings for a basic SAMBA Server. The Authentication mode should be User. You would need to change this only if you plan to allow logins based on the Microsoft ADS.

Press OK to finish making basic changes to the server.

B. Select SAMBA Users

Under the Preference menu item choose Samba Users

In this window you must Add at least one user who will have access to the SAMBA Server. Notice that only user accounts you created in step 4 should be added to this listing.


Press the Add User button, then from the pull down select a user. Fill out the additional information needed for this SAMBA user. Press OK when finished.

C. Adding A Shared Folder

Under the SAMBA Server Configuration window, you must create at least one SAMBA share directory.

Press the Add button and then the Browse button. Now choose a folder you wish to make available to SAMBA users. Be careful, some folders have permissions settings that do not allow sharing. Now be sure to select the Read/Write option to allow people full access. Don't press OK yet!


You should see your shared folder appear under the listing as shown in the example above.

D. Adding Users

In the same window, select the second tab labeled Access. From here choose the first option labeled Only allow access to specific users and select the users you wish to give access to this specific SAMBA shared folder. Press OK when finished.

You can repeat steps C and D for each new shared folder.

Once completed, please choose File from the menu then choose Quit.

Hopefully this saved all of your settings properly. If you encounter issues with the graphic SAMBA configuration tool, such as it failing to accept your changes, then please read the Troubleshooting Tip 4 located below.


STEP 6: Restart the SAMBA Services

Now you need to restart all SAMBA services. You can use the process found in Step 3, except press the Restart button or use the word restart instead of the word start.

I mentioned earlier that sometimes your changes do not get properly picked up. I've installed so many different Fedora SAMBA configurations that I can't recall every reason. This may be a very good time to simply reboot the LINUX/SAMBA Server. Rebooting will ensure everything gets properly started up and all of the configuration changes are included. More importantly, this is likely the last time you will ever restart your SAMBA server again. Some of my FEDORA servers haven't been restarted in years.


STEP 7: Access the SAMBA Server from Windows

You're now ready to fully utilize your new intranet SAMBA Server for work. On any Windows PC you can access the server by simply going to the main Start menu, choosing Run and typing in the hostname of your SAMBA server. For example: \\linuxserver

Please notice that in the Windows environment you use different slashes and you need to ensure this syntax.


If this does not work, perhaps if the server is not yet included in your DNS, try accessing the SAMBA Server through its IP address: \\10.2.2.3

Obviously you need to use an actual hostname or IP address and not my example.

If all works well you should instantly see a SERVER LOGIN window. Now login using a SAMBA created username.


You should then instantly see the shared folder as well as the individual user's personal folder that exist on the SAMBA Server.


Congratulations, you're done.


TROUBLESHOOTING TIPS
NOTICE: I've had a number of people who encountered issues because they seriously screwed with their smb.conf file or forgot to update their Samba Server Security settings found under the Server Setup, Security tab. Please, please, before you start tinkering with your smb.conf file try to use the BASIC samba settings to ensure you ACTUALLY CAN CONNECT properly. Then when you make changes you can far better identify what goes wrong. Following the steps above should work in almost every situation IF you first start with the basic configuration.

1. SAMBA Server is not accessible

First and foremost try a reboot to the server itself! It is vital you do this before someone talks you into changing configs, playing with your network card settings etc. Just reboot and try again to see if it clears up the issue.

2. Network Unreachable or Host Unreachable From Linux PCs

Trying to connect from another Linux PC and nothing happens or "network unreachable" may be as ridiculous as an incorrect SAMBA connection. Make absolutely certain that the connection is typed in exactly as follows (obviously changing the workgroup name to your windows workgroup): smb://WORKGROUP

On some KDE desktops, attempts failed because the syntax incorrectly tries: smb:/workgroup Those // are quite important!

3. Failure to Connect from Windows PCs

Not connecting to the server from Windows PCs may be a result of bad network configuration. Are you absolutely certain you entered the correct network details? Please double check to make sure that you have a proper hostname for the Samba server, that you have a working IP address, and the correct Subnet and Gateway included. In most cases these last two should simply match what your windows PCs have designated.

4. Changes to the configuration are not being picked up

The Gnome SAMBA Configuration GUI often encounters errors when trying to update new SAMBA settings. I've seen the GUI tool write a whole lot of garbage into the SAMBA configuration file (smb.conf). For this reason, as I mentioned earlier, you may need to start with a fresh clean smb.conf file (copy my example into a text editor) and try again, or you may need to manually adjust settings without the GUI.


5. Can't Share Folder in Home Directory

First, it's always a good idea NOT to make a Samba share out of directories inside your Home folder for security reasons. Making unique share folders is often the best bet. However, there are times when you need to share a folder and the way to do so is to update your Samba Share's security settings. Under the Samba Configuration, highlight your shared directory and press Properties. Here you can see the "Basic Permissions" list and usually the default is "Read Only." Select the "Read/Write" option and be sure to save your changes by quitting and then restarting the smb daemon. If this doesn't resolve the issue of directory shares, you may have a more fundamental security issue. You need to ensure that the over all Samba security settings under "Preferences", then "System Settings" and then the Security tab are correct.


For further troubleshooting these two webpages may be helpful as well:

Samba Tech Doc

Samba Troubleshooting: Unknown User


EDITING THE SMB.CONF FILE

If you must edit the smb.conf file here are a few pointers:

1. Find your smb.conf file

The smb.conf file contains the key elements for configuring your SAMBA server. It is almost always located in the directory /etc/samba and so you get to it with the command: cd /etc/samba

2. Edit the smb.conf file

First use this command to make a backup of your file: cp smb.conf smb.conf.backup

3. Now edit the smb.conf file using your favorite text editor.

One of the most important lines is this:

# workgroup = NT-Domain-Name or Workgroup-Name

workgroup = workgroup

Be sure that the workgroup matches the Windows workgroup you want this server in. In the example it is set to “workgroup”.

If you're editing this file to allow for WindowsNT or ADS usernames, be sure next to wins server you specify the correct LINUX server IP address:

wins server = 10.1.2.20

The Share Definitions section is MOST VITAL. Under this section you must at least ensure that the username file is mapped correctly. In the basic example I am writing about you will map to the standard SAMBA username file.

username map = /etc/samba/smbusers

Notice that I've removed the ; so this parameter is actually used.

Now test that every change you've made at least passes the parameter test. At the command prompt type:

testparm

You should see zero errors.

4. Don't forget once you edit the smb.conf file you either need to run the command:

/etc/rc.d/init.d/smb restart

or you can simply reboot the server. But please do one of these or your changes will not get picked up!

If you run into problems or this part fails, download this example smb.conf file or restore your .backup file and try again.


INTEGRATING WITH MICROSOFT ADS OR NT LOGINS

Maybe at this point you're in dire need to figure out how to use the SAME exact logins/password for users on the LINUX/SAMBA server as in the rest of your ADS environment. I promised I would avoid the details of this but here are some helpful tips. In the smb.conf file you will need to add the obvious configuration lines for ADS, but also be sure to change this line:
unix password sync = yes
This is vital!

You may benefit from reviewing these two articles regarding username logins:
Samba Guide on ADS
Samba HOW-TO ADS Membership




Google Docs

Feb 10, 2007 0 comments

Dont carry your confidencial or personal document with you. Just upload it in your Google DOCs account and use anytime anywhere.


Google Docs is a free, Web-based word processor, spreadsheet, presentation, form, and data storage service offered by Google. It allows users to create and edit documents online while collaborating in real-time with other users. Google Docs combines the features of two services, Writely and Spreadsheets, which were merged into a single product on October 10, 2006. A third product for presentations, incorporating technology designed by Tonic Systems, was released on September 17, 2007. Data storage of any files up to 1GB each in size was introduced on January 13, 2010.


Features

Google Docs is Google's "software as a service" version of an office suite. Documents, spreadsheets, forms and presentations can be created within the application itself, imported through the web interface, or sent via email. They can also be saved to the user's computer in a variety of formats (ODF, HTML, PDF, RTF, Text, Word). By default, they are saved to the Google servers. Open documents are automatically saved to prevent data loss, and a revision history is automatically kept. Documents can be tagged and archived for organizational purposes. The service is officially supported on recent versions of the Firefox, Internet Explorer, Safari and Chrome browsers running on Microsoft Windows, Apple OS X, and Linux operating systems.

There is a limit on how much a user can store on their account. Individual documents may not exceed 1GB as of January 13, 2010, embedded images must not exceed 2MB each, and spreadsheets are limited to 256 columns, 200,000 cells, and 99 sheets. A user can have a total of 5,000 documents and presentations, 5,000 images, 1,000 spreadsheets, and 100 PDFs at one time. In September 2009, an equation editor was added which allows rendering in LaTeX format.

Google Docs serves as a collaborative tool for editing amongst users and non-users in real time. Documents can be shared, opened, and edited by multiple users at the same time. In the case of spreadsheets, users can be notified of changes to any specified regions via e-mail. The application supports the ISO standard OpenDocument format. It also includes support for proprietary formats such as .doc and .xls[18] as well as support for .docx and .xlsx

Data safety and privacy

On March 10, 2009, Google reported that a bug in Google Docs had allowed unintended access to some private documents. It was believed that 0.05% of documents stored via the service were affected by the bug, which Google claimed had been fixed.

Mobile access

Mobile Google Docs allows mobile phone users to browse their Google Docs documents in a mobile browser. Users can view documents and view and edit spreadsheets, but not presentations or view PDF files, but alternative websites to Google can be used for this goal. Versions of Google Docs for the iPhone and Android include functionality for editing spreadsheets and viewing presentations, along with an interface designed specifically for the device. On the other hand, one cannot view or edit open format database files.