Scrierea programelor in Java
Un program Java poate fi scris folosind orice fel de editor de text.
Pentru a ne facem viata putin mai usoara vom folosi editori de text (IDE) ce ne permit o compilare mai rapida a codului
Eclipse IDE for Java EE Developers
Text editor Bluej - Aplicatie freeware
NetBeans IDE
Instalarea Java
Avem nevoie de trei componente importante pentru a putea programa si executa aplicatii Java. In primul rand Java are nevoie de o masina virtuala JVM instalata pe calculator. Masina virtuala se instaleaza descarcand si instaland pachetul JRE (Java Runtime Environment) de pe siteul http://java.sun.com
Pentru a crea si rula aplicatii Java puteti descarca si instala pachetul JDK (Java Developer Kit).
http://www.oracle.com/technetwork/java/javase/downloads/index.html
JavaTM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development environment for building applications, applets, and components using the Java programming language.
The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the JavaTM platform.
Java – limbaj de programare
Java este considerat unul dintre cele mai importante limbaje de programare si totodata unul dintre cele mai “la moda” limbaje folosite in ziua de azi.
Java este un limbaj de programare high-level orientat pe obiecte.(OOP sau POO)
Java ca limbaj de programare open source:
Mai mult decat atat programele scrise cu Java reprezinta proprietate intelectala a programatorului si nu este nevoie de o licenta platita la Oracle pentru ca acestea sa poata fi comercializate.
How to install LAMP and PhpMyadmin on Linux
LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
In this Simple tutorial we will explain you how to install LAMP server on your Linux
The installation will be done in 3 steps:
Apache, PHP and MySQL, after that we will install phpmyadmin the administration software tool for MySql.
1- Apache2 installation
sudo apt-get install apache2
to check that Apache has been installed without problems, go to your browser and type
http://localhost
if everything is correct you will see the message :
It works
Now we will go and try to install PHP5
2- PHP5 and dependencies installation:
sudo apt-get install php5 libapache2-mod-php5
A restart of apache2 is needed to make this one see PHP5, to restart apache2 use the command:
sudo /etc/init.d/apache2 restart
3- MySql Installation :
To install MySql type the command
sudo apt-get install mysql-server
During the installation you will got screen (package configuration) to set root password for MySql, enter your password and retype it
if you diden`t got the screen to setup root password for mysql then you have to do it manually, to setup root password for mysql :
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');
Don`t forget to change YOURPASSWORD with the password you want to use The basic installation of LAMP is ready. Now we will install phpmyadmin,
phpMyAdmin is a free graphical software tool to handle the administration of MySQL, this will make it easy for you to create, import/export and delete
databases. Install phpmyadmin using the command:
sudo apt-get install phpmyadmin
During the installation a blue screen will appear asking you which server you want to use apache, apache2 …. choose then apache2 and click ok
Then you will be asked to set a password for your phpmyadmin
Type the password and retype it
Now is done, Point your browser to: http://domain/phpmyadmin
if you diden`t receive any screen of psckage configuration during the installation of phpmyadmin then you will have
To set up phpmyadmin under Apache manually, all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:
sudo gedit /etc/apache2/apache2.conf
Add the following line of code inside apache2.conf:
Include /etc/phpmyadmin/apache.conf
Now restart Apache:
sudo /etc/init.d/apache2 restart
and is done, now Point your browser to: http://localhost/phpmyadmin
How to save and copy Yahoo Messenger Archive in Windows 7
How to Copy Your Message Archive?
Your “Profiles” folder contains your complete message history archive on your computer. You can copy it to the same location on another computer if you want to view it there.
To locate your complete message history archive on Windows XP:
1.Open the “Run” command: press Windows Logo+R on your keyboard.
2.Copy and paste the text below into the Run command | then click OK:
%ProgramFiles%\Yahoo!\Messenger\
To locate your complete message history archive on Windows Vista or Windows 7 (32-bit):
1.Open the “Run” command: press Windows Logo+R on your keyboard.
2.Copy and paste the text below into the Run command | then click OK:
%LocalAppData%\VirtualStore\Program Files\Yahoo!\Messenger\
To locate your complete message history archive on Windows Vista or Windows 7 (64-bit):
1.Open the “Run” command: press Windows Logo+R on your keyboard.
2.Copy and paste the text below into the Run command | then click OK:
%LocalAppData%\VirtualStore\Program Files (x86)\Yahoo!\Messenger\
Slow Microsoft Office in Windows 7
Replacing “normal.dot” to Fix Microsoft Word Problems
Normal.dot Overview: What is Normal.dot?
The Normal.dot is the main default template file in Microsoft Word. Because it contains a lot of customization settings, it is prone to corruption. Ergo, many problems experienced while working in Microsoft Word can be attributed to this file.
The most common fix is to force generate a new, clean version of this troublesome file. This can resolve a lot of problems such as, but not limited to:
- Word not opening or closing properly
- Hidden module errors
- Clearing virus issues
- Fixing text or formatting problems
- Seeing the same document every time you open a new Word document
(In Word 2007 and Word 2010 this file is called normal.dotm.)
Solutions:
- find and delete/rename Normal.dot file
- restart office or computer
CodeIgniter Reactor
CodeIgniter 2.0.0 Released
Some of the big changes to happen in CodeIgniter 2.0 since CodeIgniter 1.7.3 are:
- Support for PHP 4 is gone, PHP 5.1 is now a requirement.
- CSRF Protection built into the form helper
- Drivers
- Application Packages
- Scaffolding, having been deprecated for a number of versions, has been removed.
- Removed the deprecated Validation Class.
- Plugins have been removed, in favor of Helpers.
- Added routing overrides to the main index.php file, enabling the normal routing to be overridden on a per “index” file basis.
- Added $route[‘404_override’] to allow 404 pages to be handled by controllers.
- 50+ bugs fixed
Reactor contains all of these above and some nice changes of its own:
- Full query-string support
- Automatic base_url detecion if left blank
- New Cache driver with file system, APC and memcache support
- Command line compatibility for easy cron jobs
- 20+ tweaks and improvements
CodeIgniter 1.7.3 Released
Version 1.7.3 is a security maintenance release, including a previously patched file Upload class, and a new security fix to prevent possible directory traversal in certain circumstances (back ported from a fix made to CodeIgniter 2.0 at BitBucket). There are no other significant changes.
CodeIgniter – PHP framework
CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you’re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you’re tired of ponderously large and thoroughly undocumented frameworks