Showing posts with label Software instruction. Show all posts
Showing posts with label Software instruction. Show all posts

18/12/2012

This tutorial will show you how to create a simple effect for natural images using some special flash tricks. This tutorial made ​​in Flash CS5, there may be a few differences if you are using Flash version
step 1
Save the image below to start using for this tutorial, it will be used as the flash.



step 2

Create a new flash document. Press Ctrl + J key on the keyboard (Document Properties) and set the width of the file is 440px, height is 275px. Choose any background color and set the frame rate of Flash 62 and then click OK.
step 3
Name the current layer photo. Double click on it and change the default name (Layer 1) photo. Press Enter after you have typed in the new name.

step 4
Choose File> Import> Import to stage (Ctrl + R) and import the image you just save as in step 1 of the Flash workspace.



Select the image you just imported, go to the Align Panel (Ctrl + K) and do turn the following options:
- Make sure the Align to Stage box is selected.
- Click on the Align horizontal center button
- Click Align vertical centerh button.


step 5
While still photos, press F8 key (Convert to Symbol) to convert it to a Movie Clip.

step 6
Click on Frame 70 and press F6.
step 7
Back to the first frame, use the Selection Tool (V) and click once on the image to select it. In the Properties Panel (Ctrl + F3) in the right part of the Flash workspace, select Filters in the bottom of the area. Click the Add Filter icon in the bottom left corner of the panel and choose Blur, then make the following adjustments:

step 8
Click again on the Add icon and select Adjust Color filter. Continue to make the following adjustments:

step 9
Click on any location in the gray area between frame 1 and 70 on the timeline and choose Create Classic Tween from the menu that appears. 

step 10
To file has stopped running, you create a new layer and name it action by clicking on the New Layer icon at the bottom left corner of the Timeline panel. Rename the layer to action similar to renaming the photo layer.
step 11

In Frame 70 of the layer action, press F6 to create a keyframe. Continue to press F9 to open the ActionScript window. Enter the following code into the Script window:
stop ();
Close the ActionScript window. Press Ctrl + Enter to enjoy achievements.

Talking about DDos problem, perhaps it would be difficult to make sure that how we can secure 100% before this problem. Because there are so many possible ways to attack dos, ddos, flood, Slowloris ... as well as it comes with a different intensity. So TechBlog solutions presented below will help you in some certain cases only. However, it also will help you strengthen the security of your webserver.
1.DDos restrictions: Dos Deflate
Install Firewall Dos Deflate:

#cd download
#wget <a href="http://www.inetbase.com/scripts/ddos/install.sh" target="_blank">http://www.inetbase.com/scripts/ddos/install.sh</a>
#chmod 0700 install.sh
#./install.sh
After successful installation, you can configure the firewall using the command:
#nano /user/local/ddos/ddos.conf
This is the configuration file of the firewall, the basic content will be as follows:
 FREQ=1 // off/ on Firewall (0=off, 1=on)
NO_OF_CONNECTIONS=50 // max connect from 1 IP to server
APF_BAN=1
KILL=1 // tắt/bật (0=off, 1= on)
EMAIL_TO="info@thuvientructuyen.vn"
BAN_PERIOD=600 // time ban IP  600s

2.Apache Mod Antiddos: mod_dosevasive

Install mod_dosevasive:

#up2date -i httpd-devel
#cd /usr/src
#wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
#tar xfz mod_evasive_1.10.1.tar.gz
#cd mod_evasive
#$APACHE_ROOT/bin/apxs -cia mod_evasive20.c

Find the httpd.conf file and add the following text:

<IfModule mod_dosevasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 300
</IfModule>

Then save and restart apache with the following command:
#service httpd restart

or

#/etc/init.d/httpd restart

3.Install and configure iptables:

Referral information, installing, using TechBlog was presented in detail in the article Configuring Firewall iptables on CentOS / Redhat. In the case of anti ddos, we are only interested in some of the basic rules are as follows:

#Limit the number of incoming tcp connections
#Interface 0 incoming syn-flood protection
#iptables -N syn_flood
#iptables -A INPUT -p tcp --syn -j syn_flood
#iptables -A syn_flood -m limit --limit 1/s --limit-burst 3 -j RETURN
#iptables -A syn_flood -j DROP

4.Install mod_antiloris for Apache: mod_antiloris effect limited connection of every IP requests to the webserver.

#wget ftp://ftp.monshouwer.eu/pub/linux/mod_antiloris/mod_antiloris-0.3.tar.bz2
#tar -jxvf mod_antiloris-0.3.tar.bz2
#cd mod_antiloris-0.3
#sudo /wwwroot/apache2/bin/apxs -a -i -c mod_antiloris.c
#sudo /etc/inid.d/http restart

So basically we have equipped a number of configurations, firewall against DDos. But try to monitor your system regularly to be able to offer appropriate solutions from time to time.

1.Web Server?

Web Server (Web server): computer on which to install the software for the Web, sometimes also called the Web Server software.
All Web Server understand and run the *. Htm and *. Html, but each Web Server to serve some specific file types such as Microsoft's IIS *. Asp, *. Aspx. ..; Apache for *. php ...; Sun Java System Web Server of SUN for *. jsp ...

2.To select your webserver?

Depending on the web programming language that we will select the appropriate webserver. To install the webserver running PHP, we use Apache.

A webserver that can run PHP applications must exist the following basic components: Apache - PHP - MySQL. A few years ago we would have to install separate parts to run PHP applications but now the webserver package just installed once all the basic components such as: AppServ - WAMP - XAMPP ... you can choose one of the packages to install webserver that can run PHP applications

I would like to send XAMPP webserver package for the following reasons:
- In addition to supporting the basic components such as: Apache - PHP - MySQL - phpMyAdmin. Xamp also supports other components which some other webserver does not have as Webmail - FTP - SSL - Perl
- Usage of XAMPP easily
- Full support for PHP extension libraries and integrate PEAR library (See more at http://pear.php.net/)


3.Install XAMPP

When I made this post XAMPP v1.7.3 version but this version use PHP 5.3 and PHP 5.3 has some bugs, in addition to a host does not support PHP 5.3, so I will guide you install version 1.7.1 is a version that runs pretty stable on the source Joomla! Zend Framework, Drupal ...

You can download XAMPP v1.7.1 here

After downloading you run xampp-win32-1.7.1-Installer.exe


Nhấn nút ok để tiếp tục

select  Next

Select the drive and folder where you installed XAMPP and then click Next

We should just check the red zone while the rest should not be marked as if marking services such as Apache - MySQL - Filezilla will be run when you start Windows. In my experience you should only run XAMPP when we want to run the PHP script only.

The installation of XAMPP

The installation of XAMPP

After our installation is complete, click Finish to complete the installation process.
When you click the Finish button will pop up a window asking us to run XAMPP now. We select Yes to start the XAMPP control panel
To run webserver and PHP script we click the Start button next to Apache and MySQL. We will be as shown below


Normally the first click on the Start button we usually get a message window.

Select Unblock.
Click the Admin button next to the main page of the Apache webserver and click on the MySQL Admin button next to the phpMyAdmin (MySQL management through the web interface)
When you click on the Admin button next to our Apache web interface as follows


To view information about your PHP click phpinfo () and phpMyAdmin to manage MySQL over the web interface.
Note:
- To get to the XAMPP we can type on the browser http://localhost/
- To close the panel of XAMPP, click on the Close button. Xampp will temporarily hide Window to Tray (lower right corner of the Window)
- When you need to open the control panel we just need to click the icon in the System Tray of Windows
- To exit XAMPP we first hit the Stop button next to Apache and MySQL then click the Exit button


4.Configured to run. Htaccess on Webserver
Click on the XAMPP icon in Window's Tray

- Click the Explore button to the XAMPP installation folder
- Open the httpd.conf file in any text editor (eg: Notepad) in apacheconf folder (Eg: if you install the guidance it will be D: xampapacheconf)
- Press Ctrl + F to show the table into the word "rewrite" to find the htaccess configuration
- Remove the hash sign (#) before the line "LoadModule rewrite_module modules / mod_rewrite.so".

Then save the file httpd.conf
Restart the webserver. Open the control panel press the Stop button next to Apache and MySQL then click the Exit button.
Then restart xampp