Rabu, 14 November 2012

Home » Web Apps & Internet » 3 Interactive, Fun, Free Ways To Start Learning The Ruby Programming Language



ruby languageRuby is an expressive, very high-level, scripting language. It is used on the Web mainly as part of the Ruby on Rails web development framework, but also standalone. If you’re curious about what Ruby (not Ruby on Rails) feels like, you don’t necessarily need to pick up a book or go watch a screencast (although those are good ways to learn, too).
Below are three fun, simple ways in which you can try Ruby in your browser, right now, for free, without installing a single file.

Rubymonk

ruby language
Hailing all the way from India, Rubymonk offers a series of over 50 short, interactive Ruby exercises and it saves your progress. Above is what I saw when I went back to Rubymonk after leaving the website (I solved the first couple of exercises).
Let’s look at what a single exercise looks like:
ruby programming language
The exercise starts with a simple explanation, followed by a snippet of code. If you hit the Run button, the code is immediately evaluated and you get to see its output. Next, you get a simple assignment. Write the code you think is the right answer, and hit Ctrl+Enter to run it (or click the Run button). The Rubymonk now spits out an answer:
ruby programming language
Once you finish working through some of the exercises, you will be presented with a problem to solve on your own:
PowerBasic vs VisualBasic Faster. No Run-Times. No Bloat! CGI, Macros, ASM, Reg Expressions
www.powerbasic.com

Test Data for Agile teams Provision high quality agile data with Datamaker
www.grid-tools.com/datamaker

Learn Chinese Easily Visual and practical Lessons make learning Chinese more easily.
www.ninhao.com

Free e-Learning Modules Intuitive Agilent VEE Programming Basics Modules. Get them Now!
www.agilent.com/find/learnvee
ruby programming language
You get an explanation of what you need to solve, some template code to get you started, and you’re on your own. This is great, because it’s much closer to actually coding than filling in one-liners in response to narrow questions.  If you get stuck, you can always click “See the Solution” and the solution will instantly appear in the text box.
Once you’re done with the first problem, you are transported to the table of contents, where you can pick and choose what you want to learn (and whether you want a lesson or a problem). Lessons look like this:
ruby programming examples
And a problem looks like this:
ruby programming examples
The tags are lessons which you should work through, in order to acquire the skills you need to solve the problem. The whole thing is very polished, and just generally fun to work with. Highly recommended.

Ruby Koans

The Ruby Koans are hosted over at Heroku, and are even more steeped in mysticism that Rubymonk. Check it out:
ruby programming examples
Say what you will, but this is definitely not boring. Fill in what you think is the right answer (trivial, in this case), and hit Enter. The snippet will be evaluated, and colored accordingly:
ruby[19]
The Ruby Koans are a lot of fun, and they seem much more advanced than Rubymonk. They start off with asserts and testing, rather than arrays or other basic concepts. One small niggle is that your progress is not saved between koans, so you’d better bookmark where you stopped for the day. It’s not as AJAXy as Rubymonk, but I think it’s still great, and it’s a project that inspired many imitations, such as the JavaScript Koans.

Try Ruby

ruby[21]
Try Ruby was created as a tribute to why’s (poignant) guide to ruby (link to PDF), one of the craziest programming textbooks I have ever laid eyes on. It’s a great book for the Ruby language, and although the author no longer takes an active role in the Ruby community, I have a feeling he would have approved of the project. The website is built as a large ruby prompt, with instructions on the side:
ruby language
The text is simple and playful (no mystical references here). You type real Ruby code in the prompt, and work through the simple exercises one by one. The whole thing doesn’t take very long.

Final Thoughts

Personally, I feel that learning by doing is one of the best ways to absorb new material. These may not make you into a code ninja, but they will definitely give you a feel for Ruby. If you’re curious about the language, pick the one you like best and take it for a spin! Let us know how it went in the comments.

sumber :  http://www.makeuseof.com/tag/3-interactive-fun-free-ways-start-learning-ruby-programming-language/

Security (Hacking) Tools di Ubuntu

hack Security (Hacking) Tools di Ubuntu
Wireshark – Network Traffic Analyzer
Wireshark adalah tools untuk menganalisis lalu lintas paket data di jaringan. Lazim dipanggil sebagi SNIFFER (pengintai). Sniffer adalah tools yang berkemampuan menangkap paket data dalam jaringan Wireshark mampu mendecode paket data dalam banyak jenis protokol. Tersedia pada operasi sistem linux dan windows.
Install wireshark:
Buka terminal (seperti command prompt di windows), lalu ketikkan
#sudo aptitude install wireshark
Nessus – Remote Network Security Auditor
Nessus adalah scanner untuk mengetahui celah keamanan komputer, baik komputer anda atau komputer siapapun. Kemampuannya yang lengkap sebagai Vulnerability Scanner adalah nyata karena didukung dengan fitur high speed discovery, configuration auditing, asset profiling, sensitive data discovery, dan vulnerability analysis of our security posture.
Install NESSUS:
#sudo apt-get install nessus
NMAP – The Network Mapper
Adalah tools pemetaan jaringan (network) terbaik yang pernah ada sejauh ini. Panggunaannya yang praktis, konfigurasi yang mudah, dan kehandalannya dalam memetakan jaringan komputer di manapun. Dengan Nmap, anda dapat mengetahui komputer-komputer (hosts) apa saja yang sedang terhubung dalam sebuah jaringan, apa service (aplikasi) yang sedang dijalankan komputer itu (host), apa sistem operasi komputer yang dipakai, apa tipe firewall yang digunakan, dan karakteristik lainnya dari komputer.
Install NMAP:
#sudo apt-get install nmap
Etherape – Graphical Network Monitor Modeled after Etherman
Etherape adalah tools untuk memonitor jaringan dengan tampilan grafis. Tools ini dilengkapi dengan kemampuan menghasilkan grafik dari lapisan jaringan, mode IP dan TCP, serta menampilkan kegiatan network (jaringan) secara grafis. Kita dapat memfilter traffic apa saja yang mau ditampilkan secara grafis.
Install Etherape:
#sudo apt-get install etherape
Kismet
Siapa yang tak kenal tools ini? Sebuah tools terbaik dan satu-satunya di dunia yang mampu mendeteksi setiap jaringan (network) wireless dengan sempurna tanpa cacat sekalipun jaringan tersebut telah berusaha disembunyikan. Dengan tools standar, kita kadang terkecoh bahwa ternyata ada jaringan yang tetap ada namun tak terpantau oleh komputer kita. Kismet adalah detektor jaringan wireless, sniffer, dan sistem pendeteksi penyusup pada komputer. Kismet dapat bekerja pada beragam tipe wireless card, dengan syarat wireless card kita memiliki fitur MODE MONITOR. Kismet dapat melakukan sniffing pada traffic-traffic 802.11b, 802.11a, dan 802.11g.
Install Kismet:
#sudo apt-get install kismet
Chkrootkit – Checks for signs of rootkits on the local system
Tools ini berfungsi melakukan identifikasi apakah sebuah komputer diinfeksi dengan rootkit. Apa itu tootkit? Ini dia jenis-jenis rootkit:
1. lrk3, lrk4, lrk5, lrk6 (and some variants);
2. Solaris rootkit;
3. FreeBSD rootkit;
4. t0rn (including latest variant);
5. Ambient’s Rootkit for Linux (ARK);
6. Ramen Worm;
7. rh[67]-shaper;
8. RSHA;
9. Romanian rootkit;
10. RK17;
11. Lion Worm;
12. Adore Worm.
Install Chkrootkit:
#sudo apt-get install chkrootkit
Rkhunter – Rootkit, backdoor, sniffer and exploit scanner
Tools ini sangat berguna dalam melakukan scanning system komputer kita terhadap keberadaan rootkit yang teridentifikasi berbahaya atau sangat mencurigakan, backdoors, sniffers, dan exploits.
Tools ini akan melakukan pemeriksaan berikut ini di komputer kita:
- MD5 hash changes;
- files commonly created by rootkits;
- executables with anomalous file permissions;
- suspicious strings in kernel modules;
- hidden files in system directories;
Dalam upaya scanning sistem yang optimal, anda harus mengecek sistem menggunakan RKHUNTER dan CHKROOTKIT.
Install Rkhunter:
#sudo apt-get install rkhunter
TCPDump – A powerful tool for network monitoring and data acquisition
Tools ini mengizinkan anda untuk melakukan dumping terhadap lalu lintas jaringan kompute. TCPDump juga dapat digunakan untuk menguji IPv4, ICMPv4, IPv6, ICMPv6, UDP, TCP, SNMP, AFS BGP, RIP, PIM, DVMRP, IGMP, SMB, OSPF, NFS, dan banyak tipe paket data di jaringan. Selain itu, anda juga dapat menggunakan tools ini untuk melakukan track down masalah network, mendeteksi “Ping Attacks”, dan memonitor kegiatan network.
Instal TCPDump:
#sudo apt-get install tcpdump
SNORT – Flexible Network Intrusion Detection System
Ini adalah salah satu tools favorit saya dalam mendeteksi penyusup di jaringan. Kemampuan tools ini adalah yang tercanggih dalam mendeteksi attacks dan probes dalam network, seperti buffer overflows, stealth port scans, CGI attacks, SMB probes, dan lain-lain.
Instal Snort:
#sudo apt-get install snort
Firestarter – program for managing and observing your firewall
Firestarter adalah tools lengkap mesin Linux yang berfungsi sebagai firewall. Memiliki kemampuan real-time dalam menunjukkan probing penyerang pada mesin komputer.
Instal firestarter:
#sudo apt-get install firestarter
CLAMAV – anti-virus utility for Unix
Clam antivirus adalah antivirus yang didesain untuk mesin Linux. Antivirus ini berkemampuan melakukan scanning pada:
- format Zip, RAR, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS, dan sebagainya
- seluruh format file mail
- seluruh format file dokument, termasuk file Microsoft Office dan file Mac Office seperti HTML, RTF dan PDF.
Instal Clamav:
#sudo apt-get install clamav
Netcat – TCP/IP swiss army knife
Netcat adalah sebuah tools simpel dari mesin linux yang berkemampuan membaca dan menuliskan paket-paket data di jaringan, baik yang berprotokol TCP maupun UDP.
Instal Netcat:
#sudo apt-get install netcat
John
Lebih terkenal dengan sebutan John the Ripper (JTR), adalah tools yang didesain untuk membantu administrator sistem dalam menemukan kelemahan password. Tools ini mampu digunakan dalam berbagai bentuk chipertext, termasuk Unix’s DES and MD5, Kerberos AFS passwords, Windows’ LM hashes, BSDI’s extended DES, dan OpenBSD’s Blowfish.
Bagi yang ingin melakukan cracking terhadap sebuah password, John the Ripper adalah jawaban terbaik.
Instal John the Ripper:
#sudo apt-get install john
Dnsniff – Various tools to sniff network traffic for cleartext insecurities
Dsniff adalah sebuah paket tools yang mengandung beberapa sub-tools di dalamnya untuk menyadap dan mengkreasikan jaringan.
Sub-sub tools itu adalah berikuti ini:
* arpspoof – Send out unrequested (and possibly forged) arp replies.
* dnsspoof – forge replies to arbitrary DNS address / pointer queries on the Local Area Network.
* dsniff – password sniffer for several protocols.
* filesnarf – saves selected files sniffed from NFS traffic.
* macof – flood the local network with random MAC addresses.
* mailsnarf – sniffs mail on the LAN and stores it in mbox format.
* msgsnarf – record selected messages from different Instant Messengers.
* sshmitm – SSH monkey-in-the-middle. proxies and sniffs SSH traffic.
* sshow – SSH traffic analyser.
* tcpkill – kills specified in-progress TCP connections.
* tcpnice – slow down specified TCP connections via “active” traffic shaping.
* urlsnarf – output selected URLs sniffed from HTTP traffic in CLF.
* webmitm – HTTP / HTTPS monkey-in-the-middle. transparently proxies.
* webspy – sends URLs sniffed from a client to your local browser (requires libx11-6 installed).
Install dsniff:
#sudo apt-get install dsniff


sumber : http://adhit.web.id/security-hacking-tools-di-ubuntu/

Senin, 05 November 2012

Ping: senjata di saat koneksi sedang “galau”

Yang sudah terbiasa dengan jaringan komputer pasti sangat mengenal “ping” ini. Sebenarnya sebuah perintah untuk menguji konektivitas antarkomputer di dalam jaringan. Bagi pengguna internet, sebenarnya ping juga bukan lagi sebuah senjata rahasia, sudah banyak yang tahu.
Perintah ping ini digunakan dengan tujuan utama memberikan kestabilan koneksi dengan internet. Beda lho dengan kecepatan koneksi. Karena beberapa hari ini koneksi smartfren yang saya pakai sepertinya sedang galau — katanya sih sedang ada peningkatan jaringan gitu — naik turun tidak stabil, akhirnya senjata “ping” ini dikeluarkan.
Kalau di Ubuntu sangat mudah menggunakan perintah ping ini. Tinggal masuk ke Terminal, lalu ketikkan perintah “ping <alamat tujuan>”. Alamat tujuan ini bisa terserah kita, tetapi biasanya disarankan melakukan ping ke google yang relatif stabil servernya. Bisa juga melakukan ping ke situs yang sedang kita buka. Contohnya kalau ping ke google, ya tinggal ketikkan
“ping google.co.id”

Jangan mengharapkan peningkatan kecepatan, tetapi kestabilan koneksi jelas terjaga, sehingga tidak mudah terputus di tengah jalan. Selamat mencoba.
=============
sumbernya http://sinaulinux.martianuswb.com/

Internal error di Ubuntu 12.04

Jika Anda pengguna Ubuntu 12.04, pernahkah mengalami yang seperti ini?

Sebenarnya ini salah satu sistem yang dikembangkan Ubuntu, supaya pengguna juga bisa terlibat dalam pengembangan sistem operasi ini. Dengan mengirimkan laporan internal error macam di atas, kita memberitahu pengembang Ubuntu, bahwa ada gangguan yang perlu diperbaiki.
Nah, jika kita terganggu dengan sistem pelaporan ini, kita bisa mematikannya. Caranya, masuk dulu ke Terminal, dan ketikkan perintah berikut.
gksu gedit /etc/default/apport
Setelah itu, tinggal edit file apport ini.

Lihat baris terakhir, ubah enabled=1 menjadi enabled=0. Maka, kita tidak lagi akan melihat sistem pelaporan seperti di atas.
Silakan dipraktekkan.

sumber :  http://sinaulinux.martianuswb.com/?p=1802

Jumat, 02 November 2012

Solusi Pesan System Problem Program Detected Pada Ubuntu 12.04 LTS

Pada posting kali ini saya kembali share mengenai ubuntu. Setelah pada posting sebelumnya saya share Cara Mengambil Screenshot Di Ubuntu. Ketika saya menggunakan ubuntu 12.04 LTS, sering muncul report System Problem Program Detected.


Solusi untuk mengatasi pesan tersebut sangat mudah. Kita cukup mengedit file apport yang berada di directory /etc/defult/apport. Untuk lebih jelasnya silahkan ikuti lankah-langkah berikut :
Buka terminal!! kemudian jalankan perintah berikut :

$ sudo gedit /etc/default/apport
Perintah gedit bisa anda ganti dengan text editor kesukaan anda. Bisa pakek nano, pico dan yang lainnya. Dan pada file apport di baris terakhir, ubah kata “enabled=1” menjadi “enabled=0”. Angka “1” ganti dengan angko “0” setelah itu di save.

sumber : http://rhosy18.blogspot.com/2012/06/solusi-pesan-system-problem-program.html