Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Sunday, June 21, 2015

Open and close CD / DVD Drive using this trick

0 comments

Open and close (CD / DVD Drive) using this trick

Linux terminal (or Shell language generally) can do many beautiful things such as tricks, whether in terms of benefit of programming, or in terms of tricks and entertainment, and in this lesson we will learn about small code that executes an infinite loop which make the drive (CD / DVD Drive) closes and opens itself repeatedly, and of course will not stop unless you stop your own script, and you will learn about it.

1. First, Create a new text file under any name you want (for example, I I would call it script), at the end of your file name, add .sh 
now the name will be like this : script.sh

Create Document


Script.sh


2. Now, copy the following codes, and paste then in the text file script.sh :

#! / Bin / sh
while [1 = 1]
do
#eject CDROM
eject
#pull CDROM tray back in
eject -t
done

3. Save the file and close it.

4. Go to the File Properties and Permissions tab, check the option appeared in the picture :

allow executing file as program

5. Now run the file, and if this message appears, press Run in Terminal, and now you will see how the drive will still opens and closes on its own, until you stop it.

run in terminal


How do I stop it ? Simply close the terminal window.

     
Read more...

Saturday, August 16, 2014

Top 10 Programming Code Editors for Linux

0 comments

Top 10 Programming Text Editors for Linux

Programmers have common and known term called IDE ( Integrated Development Environment ), or the so-called script editor that helps you write the code, built, operated, organized and assist ; Here are the top 10 Programming Text Editor for Linux

1 . Komodo


Komodo


Komodo is the Excellent IDE built on the Mozilla project the famous Komodo supports many programming languages ​​famous such as Perl, Python , PHP , C \ C + +, Ruby , JavaScript , TCL, CSS, HTML, XML, RHTM; Komodo has all features that you need and he has a very good interface and easy to use , but it is not free , but you can always get a free copy of the open source project through openkomodo.

2 . Eclipse


Eclipse


Eclipse is Celebrity editor for Java programmers with advanced features , also supports Python C \ C + +, it uses plugins, it is desirable for beginners , but it is an excellent option for advanced .

3 . CodeBlocks


CodeBlocks


Codeboks is a very good Editor, special for C \ C + + languages (you can use the Python by adding certain plugin) ; it includes everything you need for C and C + + , such as gtk and qt It supports more than an interpreter, it is the best option for C \ C + + programmers .

4 . NetBeans


NetBeans


Netbeans is a production of Sun, free and open source written using Java, It is known to be an excellent option for programmers of Java and graphical interfaces for Java , but also supports C \ C + +, Python , Ruby , Javascript , PHP , the only problem it is that it is not intended well .

5 . Geany


Geany


Geany editor is very lightweight and it supports C and Python and Perl and Pascal and Java ruby PHP and HTML , it's a small editor in size and very simple .

6 . Codelite


Codelite


Codelite is a strong editor and open source dedicated to C \ C + + programmers, it resembles Codebloks in many ways, but with fewer features and supports syntax for other languages ​​.

7 . MonoDevelop


MonoDevelop


MonoDevelop editor is primarily designed for C # language and the NET languages ; Mono enables developers to quickly create software desktop and asp.net, Mono enables developers to easily port NET applications that you have created using Visual Studio to Linux and to maintain the abstract code.

8 . Anjuta


Anjuta


Anjuta editor is flexible software dedicated C \ C + + on GNU \ Linux , it is designed specifically for the GNOME \ GTK and includes a number of advanced programming facilities , it also has the glade / gnome GUI designer / code generator, it is dedicated to the Linux system .

9 . KDevelop


KDevelop


KDevelop fully supports the following languages ​​: C \ C + +, Ruby , PHP , and is often used on the front of KDE and QT environment and many of its users has turned to QTCreator without forgetting that there are a number of KDevelop lovers .

10 . Gedit


Gedit


Gedit is not originally IDE but it is originally a text editor , but a few additions to it becomes able to be an IDE and supports many languages.

What is your comment about this list ? What is the best IDE for you ?

     
Read more...

Tuesday, July 29, 2014

Canopy : text editor for Python

0 comments

Canopy : text editor for Python

Canopy is a text editor or IDE is designed for the Python programming language, an open source, easy to use and more effective, the production company is Enthought.

 - To download the Canopy Click on this here, then select the appropriate package 64 or 32-bit.

# Installation method : 


1. Drag the file and drop it into the terminal Terminal window and then press Enter.

2. Press Enter again.

3. Press the letter q.

4. Type the word yes.

5. Press Enter to begin the installation process.

6. Type yes again.

7. The installation has successfully been completed, you will find the application in the list of applications you have.

     
Read more...

Friday, February 14, 2014

PyCharm : New open-source Editor application for Python

0 comments

PyCharm : New open-source Editor application for Python

PyCharm Editor software is a new IDE from JetBrains , open-source , built specifically for Python programmers language.

It has a lot of wonderful features that improve productivity so much, watch the video above.


PyCharm is available in two versions : the first free open source ( a community ) , and the second is the professional which comes with some additional features for developers Web and supports : (Google App Engine, Flask, Django, web2py, CoffeeScript and other templating languages, Remote development, SQL and more)

For installation on Ubuntu ; download this package, and then unzip ( extract ) and then run the file pycharm.sh.

Note : that you 'll need to install the Java Oracle JRE (1.6 +).

Run the following commands , so the program will work.

sudo apt-get purge openjdk * && sudo add-apt-repository ppa: webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java7-installer

     
Read more...