Apr 24, 2015

The long, strange life, death, and rebirth of Java

Java at 20: Where do we go from here?


 May 23, 1995 saw the fruits of a four-year project at Sun Microsystems called Java. The new language with a C-like syntax promised the ability to write once and run anywhere through the use of virtual machines that compiled the code on the native platform at runtime.

The project began in 1991 when a small group of Sun engineers called the "Green Team," led by James Gosling, began working on a language and networking system for the next generation of digital consumer devices and computers.

In the 20 years since its launch, Java has exploded in use, been the subject of lengthy litigation with Microsoft, grew and died on the desktop, moved to the server, then jumped to feature phones, only to have its lunch eaten by smartphones, fallen into such disarray that the Department of Homeland Security said not to use it, and is now enjoying a renaissance under the stewardship of Oracle.
What other programming language can claim such drama?

When the project began, Sun saw a collision of the computer industry and non-computer industry technologies like cell phones to stereo systems to railroads to whatever. Sun noticed that they were all, in some form or another, reinventing computer science.

"The unifying theme was networking," said Gosling, now chief software architect for Liquid Robotics. "When we looked at these companies, they were designing their own networking and doing a really bad job of it. A lot of it was predictable. They were repeating a number of experiments we'd had in computer science 30 years ago."

The problem was the consumer electronics people didn't take networking into account, like common APIs across multiple platforms, or code reuse. "There was essentially no software reuse. Everybody was reinventing everything over and over again. We were trying to get to a place where we had models to help them get out of that," said Gosling.

"I really think Java's future is in IoT. I'd like to see Oracle and partners focused on a complete end-to-end storage solution for Java, from devices through gateways to enterprise back-ends. Building that story and making a success of it will help cement the next 20 years for Java. Not only is that a massive opportunity for the industry, but also one I think Java can do quite well." - Mike Milinkovich, executive director of the Eclipse Foundation

Read more here: http://www.javaworld.com/article/2912380/java-platform/the-long-strange-life-death-and-rebirth-of-java.html

No more Security fixes for Java 7

Oracle to end publicly available security fixes for Java 7 this month

Users are advised to migrate to Java 8

Public updates for Java 7 -- including bug and security fixes -- will end this month, a situation that one security advocate says could impact millions of applications.

"As outlined in the Oracle JDK [Java Development Kit] Support Roadmap, after April 2015, Oracle will not post further updates of Java SE [Standard Edition] 7 to its public download sites," Oracle's Java SE Support Roadmapstates. "Customers who need continued access to critical bug fixes and security fixes as well as general maintenance for Java SE 7 or older versions can get long-term support through Oracle Java SE Support. The process of migrating users from Java 7 to Java 8 through the auto update feature is expected to take place after the January 2015 CPU release."

Oracle released Java SE 7 in July 2011; Java SE 8 was released in March 2014. Java, particularly on the client side, has been beset by security issues in recent years. But Oracle has taken many steps to address the issues and stressed that most of the problems dated back several years, before Oracle took over Java from Sun in 2010.

Still, the impact of Oracle's cessation of public updates could be severe, an official at security firm Waratek, believes. Oracle's "rapid" end-of-life schedule for Java versions is great for innovation and language evolution, Waratek CTO John Matthew Holt said in an emailed statement. "However, there is a dangerous tradeoff; now millions of Java 7 applications will have to defend themselves against code-level vulnerabilities without the benefit of future fixes." Holt advocates either upgrades to Java 8 or use of Java Run-time Application Self Protection (RASP) technologies (Waratek is a RASP vendor).

This week's security update from Oracle, meanwhile, marks the "proverbial 'end of the road' for Java 7 application security, Holt said. "After today, the only version of the Java Platform which will receive public security updates is Java 8.  This is huge news, and it is going to cause enormous headache and disruption to millions of application owners around the world."
Contacted Tuesday afternoon for a comment on the end of public updates for Java SE 7, by late evening Oracle had not yet responded.

The April 2015 Critical Patch Update released Tuesday by Oracle provides 98 new fixes for security issues across a wide range of product families, said Eric Maurice in an Oracle blog post. These range from Oracle Database to Oracle Fusion Middleware, Java SE, and MySQL. Fourteen of the security fixes are for Java SE.

This story, "Oracle to end publicly available security fixes for Java 7 this month" was originally published by InfoWorld.



Apr 21, 2015

Java - check if file exists

When you try to see if a file exists then you can use
File.exists()
as here:

  public int existsFile(){
            /**
             *  @author     Me
             *  @descr      This function check if the file exists
             */
            
            int x = 0;      //      0 - file doesn't exist
                            //      1 - file do exists 
            String name_path_file = "C:/temp/myFile.tmp";
            File fisier = new File(name_path_file);
            if(fisier.exists()){
                x = 1;
            }            
            return x;   

        }

Mar 31, 2015

MySQL Conference at Oslo

A couple of weeks ago I went to a MySQL Conference which has been kept in Lysaker, Oslo at ORACLE Office.

17 March 2015, Lysaker, Oslo

It was a database conference at Oracle building about MySQL and MySQL News and the rest.

They develop more InnoDB for a better transactional operations.

Replication for a better scalability.

Swedish Police uses MySQL; also, Facebook, Booking.com, Linkedin, CISCO and others.


They, I mean these two guys, brought infos about MEM (MySQL Enterprise Monitor). I have to admit that I didn't know about that.

And, also, they said something about MySQL Query Analiser.

MySQL has a developers team at Trondheim.


MEM (MySQL Enterprise Monitor)

MEM (MySQL Enterprise Monitor) works on Apache. It is a Java Application. To monitorize a
MySQL Server you need to put an agent on your Database Server.



HADOOP

I have to see what they did about this. (80% big data platform).


MAX 2 TB for MySQL

SQL and NoSQL access to data.


SSD optimization




DUMP and RESTORE

mysql> SET innodb_buffer_pool_dump_at_shutdown=ON;


Transportable TABLES

FLUSH date for EXPORT;

Optimizer
EXPLAIN (this is used at the beginning and is not so precise)
….
OPTIMISER ( this is used at the end of a query and it has a better presentation as a result)
EXPLAIN [FORMAT=____] FOR CONNECTION ;
SERVER-SIDE STATEMENT TIMEOUT;
SELECT M;

MySQL Fabric

This is for using more databases, using mirrors. This is helping us not to do manual work when one of the servers is down. :(
There is a farm of MySQL Servers and they work like a team.

I'll be back with documentation. Here I've put only a short sketch of mine made into Conference.

Feb 25, 2014

Math library in Java ME

Math.round() is not available in J2ME.
So, it's hard to round a double.