Java Programming Notes - Java Bible

Background

Java Tools

Deployment

Principles and practices

  • Names
  • -->
  • Cohesion
  • Design By Contract
  • Process - Iterative
  • Errors and debugging
  • OO Design
  • Complexity
  • Function Point Analysis
  • Summaries

    --> I/O -->
  • Summary - Scanner
  • Summary - Math class
  • Summary - Random numbers
  • DOS Commands
  • Introductory Example Programs

    Example GUI Programs

      Basic_windows
    -->
  • Components
  • Graphics
  • Animation
  • Mouse
  • Games
  • Collections
  • Language

    Control Flow

    Classes

    IO

    Algorithms

    Other

    Data

  • StringTokenizer
  • String Examples
  • Arrays
  • Collections - Generic
  • -->
  • Iterators
  • Other
  • Exercises
  • GUI

  • MVC with less coupling
  • -->
  • Misc
  • GUI - Appearance

    GUI - Low level

    Acknowledgements.

    Posted
     

    Free Academic Video Lectures

    Media_httpacademicear_stzgf

    I didn't know this website. It stores a lot of academic video lessons recorded in top universities around the world such as Berkley, MIT, Stanford, etc ..

    If you miss studying, let's have a look into it !

    Posted
     

    Using MacPorts To Install Ruby 1.9.x

    (Received via mailing list)
    Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
    
    WARNING:  If you want to live on the edge, please continue with the 
    steps
    below.  Also, please be aware that all gems are not fully compatible 
    with
              Ruby 1.9.1 stable release (i.e. 1.9.1p0).  Furthermore, this
    installation requires you to remove ALL Ruby related gems and ports 
    because
              we are performing a clean install.  Lastly, I am using an
    experimental machine (i.e. Apple PowerMac G5) to complete this task and 
    I
    would
              NOT advise the below actions within a production environment.
    
    0)  Remove Previous Ruby Ports (i.e. ruby, ruby19, rb-*, and so on) and 
    Gems
    
        a) Ports
    
           sudo port uninstall <port-name>
           sudo port clean <port-name>
    
           Note:  Execute the above for all ruby related ports.
    
        b) Gems
    
           rm -rf /opt/local/lib/ruby
           rm -rf /opt/local/lib/ruby19
    
           Note:  You may not need to execute both commands and this really
    depends on what you have installed and how.
    
    1)  Remove Rake ( Optional If It Does Not Exist )
    
         sudo rm -rf /opt/local/bin/rake
    
    2)  Install Ruby 1.9.1, SQLite3, and Mysql 5 Ports
    
         sudo port install ruby19 +nosuffix
         sudo port mysql5 +server
         sudo port sqlite3
    
         Note:  The above ruby19 install generates the required executables
    without the extension.
    
    3)  Install Rack, Rake, and Rails 2.3.0 Ruby Gems
    
         sudo gem install rack
         sudo gem install rake
         sudo gem install rails --source=http://gems.rubyonrails.org
    
    4)  Install SQLite 3 Ruby Gem
    
         sudo gem install sqlite3-ruby
    
    5)  Install MySQL 2.8.1 Ruby Gem
    
         sudo gem install kwatch-mysql-ruby --
    --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
    
    6)  Install Thin
    
         sudo gem install thin
    
    7)  Generate Rails Test Application
    
         rails test
    
    8)  Change To The Root Of Rails Application
    
         cd test
    
    9)  Start Thin
    
         script/server thin
    
         Note:  The above command produces the above warning message:
    
                   warning: encoding option is ignored - N
    
    10) Navigate To The Site Using Your Browser:
    
          URL:  http://localhost:3000
    
          Result:  You should see the "Rails Welcome aboard" page.
    
    11) Now, Let Us Generate A Simple Blog
    
          script/generate scaffold blog title:string text:text
    
          Note:  The above command produces the above warning message:
    
                    warning: encoding option is ignored - N
    
    12) Migrate The Database
    
          rake db:migrate
    
    13) Navigate To The Site Using Your Browser:
    
         URL:  http://localhost:3000/blogs
    
         and interact with the Rails application to verify that things are
    working.
    
    14) If you made it this far,
    
         you are running Rails 2.3.0 RC1 and Ruby 1.9.1.
    
    Good luck,
    
    -Conrad

    Actually when you launch the command to install ruby19 it will install the latest version of Ruby linked to the MacPort repository (today the 1.9.2).

    Posted
     

    Gmail Motion BETA - <*)))-{

    As usually. It took some seconds to me to realize what it really was :) But you make it as soon as the man showing the "gmail gestures" starts moving ... And don't forget to click on the try button, on the right side :P

    Posted
     

    Creepy

    creepy is an application that allows you to gather geolocation related information about users from social networking platforms and image hosting services. The information is presented in a map inside the application where all the retrieved data is shown accompanied with relevant information (i.e. what was posted from that specific location) to provide context to the presentation.

    F.A.Q.

    Please read through the FAQ :)

    Screenshots

    Posted
     

    Java founder James Gosling joins Google

    James Gosling, the notable programmer who founded Java at Sun Microsystems, has joined Google, a company locked in a lawsuit over how the technology is used in Android.

    Gosling announced his new Google employment today on his blog. "I don't know what I'll be working on. I expect it'll be a bit of everything, seasoned with a large dose of grumpy curmudgeon," he said.

    Posted
     

    Japan crisis update [by Eurotechnology.com]

    Drinking water (tap water) in Tokyo
    radioactive contamination of tokyo's drinking water
    Contamination of tap water (until March 27)
    Radioactive contamination of drinking water in Tokyo (Iodine)

    Analysis of tap water in Tokyo can be found here for each day starting with March 18. This analysis shows that Tokyo tap water currently contains some radioactive Iodine (I-131), and some Cesium (CS-134 and Cs-137) radioactive isotopes.

    Interesting in this context is that according to a  WHO report on Japan of March 22 (pdf-file), Japanese health limits for radioactive Iodine are about 10 times lower than global standards, ie if Japanese health limits are exceeded, the levels are still at 10% of global limits (we don't intend to underestimate this problem however).

    We conclude that currently radioactive Iodine (I-131) concentrations are about 7% of Japan's limits set by Japan's Nuclear Safety Commission, and about 0.7% of international health limits, and are currently on a downward trend.

    According to US Ambassador Roos, US Government experts are currently analyzing the Tokyo tap water situation and will report on their findings shortly.


    radioactive contamination of tokyo's drinking water
    Contamination of tap water with Cesium (until March 27)
    Radioactive contamination of drinking water (Cesium): 

    Cesium contamination with radioactive Cs-134 (1/2-life = 2.1 years) and Cs-137 (1/2-life = 30 years) isotopes is currently on the order of 0.2% and 0.4% of the limits set by Japan's Nuclear Safety Commission and are on a downward trend.

    The relatively long 1/2-life of Cesium-134 and Cesium-137 means that these radioactive isotopes will stay with us for many years. To understand this situation it is necessary to compare these levels with natural levels, and with other sources of radioactivity, and how Cesium interacts with our bodies.

    Where to find radiation measurement results (updated March 28, 2011):

    Japan's Government AIST laboratory:

    Japan's Science and Education Ministry MEXT publishes regional radiation data:
    http://www.mext.go.jp/a_menu/saigaijohou/index.htm
    http://www.mext.go.jp/english/radioactivity_level/
    These data are graphically shown here:
    Radiation: http://atmc.jp/
    Drinking water: http://atmc.jp/water/
    Rain water: http://atmc.jp/ame/

    Radiation data for Tokyo/Shinjuku are published here:

    I strongly suggest you to subscribe to the newsletter.

    Posted
     

    Steal This E-Book

    Jon Bruner: On all your titles you've dropped digital-rights management (DRM), which limits file sharing and copying. Aren't you worried about piracy?

    Tim O'Reilly: No. And so what? Let's say my goal is to sell 10,000 copies of something. And let's say that if by putting DRM in it I sell 10,000 copies and I make my money, and if by having no DRM 100,000 copies go into circulation and I still sell 10,000 copies. Which of those is the better outcome? I think having 100,000 in circulation and selling 10,000 is way better than having just the 10,000 that are paid for and nobody else benefits.

    People who don't pay you generally wouldn't have paid you anyway. We're delighted when people who can't afford our books don't pay us for them, if they go out and do something useful with that information.

    I think having faith in that basic logic of the market is important. Besides, DRM interferes with the user experience. It makes it much harder to have people adopt your product.

    Posted
     

    GoogleTechTalks's Channel

    Media_httpi1ytimgcomu_irhuh

    I have to admit I've never heard of it before .. shame on me !!

    Posted
     

    Supermoon: Flickr amazing pics.

    Media_httpfarm6static_pkvag

    AMAZING photos from the last saturday night: http://tinyurl.com/5wf25zv.

    in Como, Italy, was cloudy and I couldn't see anything. A spacial event happening every 20 years, and in Como was cloudy ..

    Posted