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

How To Install Sublime Text in Ubuntu

10:05 AM | , , , , , , , ,

What is Sublime Text?

Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance. You can check out a lot of  information about sublime text in http://www.sublimetext.com

How To Install In Ubuntu?

Before installing sublime text editor we should add sublime to repository with this command.

sudo add-apt-repository ppa:webupd8team/sublime-text-2

and then update the repository with this command

 sudo apt-get update

after that we can install sublime with this command

sudo apt-get install sublime-text

Here is the screenshoot of sublime text editor

Read More

Bikin Diagram di Komputer Pake Pencil

9:49 AM | , ,

Skripsi...skripsi..skripsi...
Susahnya jadi anak TI, kalo skripsi mesti harus bikin desain ERD lah, DFD, Diagram Kelas, dan diagram-diagram lain. Belum lagi harus bikin desain aplikasinya gimana.

Nah sekarang ane mau share info buat temen" yang lagi skripsi [termasuk ane juga].
Hemmm judul postingnya kok kayak orang galau gitu ya bikin diagram di komputer pake pensil? Sabar dulu gan, entar ane jelasin pencil yg kayak gimana yg bisa bikin diagram di komputer. Dengan pensil itu kita bisa bikin diagram pake Mozilla Firefox tanpa harus online.

Masa sih??? Ngarang dehhh. Firefox kan nama browser internet, gimana caranya? Yang ada juga paling harus online n' butuh koneksi dewa.


Yupz.. Firefox emang browser, tapi gak sekedar browser. Sekarang ini firefox bisa nggantiin fungsinya microsoft visio cukup kita instal add-on aja. Nah nama addon-nya itu teteret..teret...

apa???apa???
kasih tau gak ya??
ya udah gak usah share gak mutu...

Yupz... sabar... namanya "Pencil" ohhh jadi pencil itu nama plugin.


Oke sekarang kita instal deh itu pencil ke firefoxnya. Gimana caranya ikuti ane ya...
1. Syaratnya firefoxnya harus versi 4+ ( versi 4 ke atas )
2. Download add-on nya di sini

3. Lalu buka folder tempat download file tadi Pencil-1.3-4-fx.xpi , klik kanan 
    lalu pilih pilih open with firefox.
4. Instal add-on ikuti langkah" sesuai petunjuk si firefox

5. Restart firefox
6. Klik tombol bergambar pencil di pojok kanan bawah


7. Kalo belum muncul coba buka menu View > Toolbars > Add-on Bars
8. Tampilannya kurang lebih kayak gini gan

   
9. Nah kalo templatenya kurang bisa dicari di sini gan http://pencil.evolus.vn/en-US/Downloads/Stencils.aspx
10. Hasilnya kayak gini gan...



lumayan kan daripada lumanyun :)
Read More

Make a Graphic with Java

9:18 PM | , , , , , , ,

Hey.. long time no see you ... Coz  I'm so very busy. Now I want to share about how to make a graphic in the Java. This is a screenshot picture of the program that we want to make.


How to make it in java ? This is the code ..


package tugas_1;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.geom.Area;
import java.awt.geom.Ellipse2D;
import java.awt.geom.RoundRectangle2D;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author alircute
 * Game Programming Task
 * 21th March 2012
 */

public class Gambar extends JPanel {

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2= (Graphics2D) g;
     
        //Make the window
        g2.setColor(Color.BLACK);
        g2.fillRect(400, 0, 400, 400);
        g2.setColor(Color.CYAN);
        g2.fillRect(400, 0, 400, 10);      
        g2.fillRect(400, 195, 400, 10);
        g2.fillRect(400, 390, 400, 10);
        g2.fillRect(400, 0, 10, 400);
        g2.fillRect(600, 0, 10, 400);
     
        //Make the moon
        g2.setColor(Color.yellow);
        Shape b1 = new Ellipse2D.Double(680, 60, 60, 70);      
        Shape b2 = new Ellipse2D.Double(670,70,45,45);
        Shape m1 = new Ellipse2D.Double(705, 80, 10, 20);
        Shape m3 = new Ellipse2D.Double(705, 85, 8, 15);
        Shape m2 = new Ellipse2D.Double(715, 80, 10, 20);
        Shape m4 = new Ellipse2D.Double(715, 85, 8, 15);      
        Area r11 = new Area(b2);
        Area a11 = new Area(b1);
        a11.subtract(r11);
        g2.fill(a11);
        g2.setColor(Color.BLACK);
        g2.draw(m1);
        g2.draw(m2);
        g2.setColor(Color.WHITE);
        g2.fill(m1);
        g2.fill(m2);
        g2.setColor(Color.BLUE);
        g2.fill(m3);
        g2.fill(m4);
        g2.setColor(Color.BLACK);
        g2.fillRect(700, 108, 20, 5);
     
        //Question mark
        g2.setFont(new Font("Times New Roman", 1, 24));
        g2.setColor(Color.WHITE);
        g2.drawString("?", 700, 50);
        g2.drawString("?", 670, 80);
        g2.drawString("?", 740, 80);
     
        //Make a people
        g2.setColor(Color.BLUE);
        g2.fillRoundRect(120, 250, 200, 300, 35, 35);
        g2.setColor(Color.yellow);
        g2.fillRoundRect(200, 220, 30, 50,35,35);
        g2.setColor(Color.GREEN);
        Shape kepala = new Ellipse2D.Double(155, 100, 120, 150);
        g2.fill(kepala);
        g2.setColor(Color.WHITE);
        g2.fillOval(185, 130, 20, 40);
        g2.fillOval(225, 130, 20, 40);
        g2.setColor(Color.BLACK);
        g2.fillOval(190, 150, 15, 20);
        g2.fillOval(225, 150, 15, 20);
        Shape mulut = new Ellipse2D.Double(190, 195, 50, 30);  
        Shape lidah = new Ellipse2D.Double(190, 205, 50, 30);
        g2.setColor(Color.RED);
        g2.fill(mulut);
        Area lidahnya = new Area(lidah);
        Area m = new Area(mulut);
        m.subtract(lidahnya);
        g2.setColor(Color.BLACK);
        g2.fill(m);
       
     
     
        //Make a notebook
        g2.setColor(Color.DARK_GRAY);
        g2.fillRoundRect(45, 295, 350, 250, 15, 15);
        g2.setColor(Color.DARK_GRAY);
        RoundRectangle2D rd=new RoundRectangle2D.Double(45, 545, 350, 20, 15, 15);
        g2.fill(rd);
             
        //Make an Apple Logo but I deliberate reserve it
        Shape e1 = new Ellipse2D.Double(200,320,40,40);
        Shape e2 = new Ellipse2D.Double(220,330,40,40);
        Shape e3 = new Ellipse2D.Double(160,370,45,45);
        Shape s1 = new Ellipse2D.Double(180, 360, 60, 70);
        Shape s2 = new Ellipse2D.Double(210, 360, 50, 70);
        Area d1 = new Area(e1);
        Area d2 = new Area(e2);
        Area r1 = new Area(e3);
        Area a2 = new Area(s2);
        Area a1 = new Area(s1);
        a1.subtract(r1);
        a1.add(a2);      
        d2.intersect(d1);
        a1.add(d2);      
        g2.setColor(Color.LIGHT_GRAY);
        g2.draw(a1);
        g2.fill(a1);
     
        g2.setFont(new Font("Arial", 1, 32));
        g2.setColor(Color.MAGENTA);
        g2.drawString("http://www.mabok-coding.com", 10, 650);
    }

 
   //The main method
    public static void main(String[] args) {
        Gambar gambarQ=new Gambar();
        gambarQ.setVisible(true);
        JFrame f=new JFrame("Alir Emang Oke");
        f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        f.getContentPane().add(gambarQ);
        f.setSize(800,800);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }
}

You can download the source at http://www.4shared.com/rar/CqIe7nal/Java_Graphic2D.html

Read More

Tweaking On Ubuntu

2:21 PM | , ,

May be you know a lot of  tweaking applications in the Windows operating system such as Tune Up Utility, Cclenaer to speed up and clean up temporary files that are not used.
On this occasion I will share any information about some tweaking applications on Linux operating system, especially for Ubuntu and its derivatives. Here are some tweaking applications :

  1. BleachbitThis application is used to clean up temporary files, browsing history and clear debris from the package that is rarely used. Some broken softlink also dealt with this application. This application is very light in operation. To install it you just type apt-get install bleachbit  in the terminal or konsole . Or we can also look at the synaptic and ubuntu software center.Here are the screen Bleachbit  
  2. .GconfCleanerThis application is useful to clean up the configuration files that are not used. Gconf is only available for Gnome only and is specifically used for the Gnome Desktop Environment configuration only.Display GConfCleaner


3. Kleansweep
This application is similar to but Bleachbit maunpun Gconf Cleaner Qt-based  applications are often used for applications in KDE. If you install some application that uses the Qt library on your Gnome there is no harm if you try this application.Display of Kleansweep


     4.Ubuntu Tweak
Ubuntu Tweak is an application that is complete and reliable to provide some sort of functions as follows.a. Application Center: similar to the Ubuntu Software Centerb. Cleaner Package: serves to remove the packages that are not usedc. Source Center: the same as the default application Software Source on Ubuntud. Source Editor: displays the configuration file / etc / sources.list which is used to store application data repository. So we can be easier to update the software source.e. Update Manager: same just as update manager on default apps ubuntuf. Session Contro: application startup settings.f. and many more features that are provided just as replacing the login screen, splash screen, icon, desktop to configure compiz.
Read More