Home Tags Apache

Tag: apache

The rules for REST: How to be RESTful in HTTP/JSON APIs

Recently, I was trying to write a little client script for Apache Solr.
It was just supposed to add some data, retrieve it, and delete it.
I thought Irsquo;d just do obvious things.

But as it turns out I actually had to read carefully.You see, if I post to http://localhost:8983/solr/my_collection/update/json/docs a JSON document {"id": "1","title": "Doc 1"}, it shows up somewhere other than http://localhost:8983/solr/my_collection/update/json/docs/1.[ Get your websites up to speed with HTML5 today using the techniques in InfoWorld's HTML5 Deep Dive PDF how-to report. | Learn where HTML5 is headed next. ]Solr is essentially a search engine.
Solr has a HTTP/JSON-based API. However, it isnrsquo;t exactly a REST API because it doesnrsquo;t really follow any of the rules for a well-defined REST interface.
I whine about this sometimes. Maybe one day if I have time Irsquo;ll even fix it. (I work for Lucidworks, which does most of the development of Solr.)To read this article in full or to leave a comment, please click here

The best MVC frameworks for Node.js

Node.js is a JavaScript runtime, built on Chromersquo;s V8 JavaScript engine, thatrsquo;s suitable for implementing both desktop and server apps. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient compared to threaded servers, such as Apache, IIS, and your typical Java server.To read this article in full or to leave a comment, please click here(Insider Story)

The 10 tools every modern developer should use

Years ago, all you needed to be a developer was an editor, a compiler, and hopefully some kind of revision control system. (Sadly, many developers still donrsquo;t use revision control systems properly.)These days, you need to know more even for basic software development. Herersquo;s the top 10 list of tools every modern developer should know and use:[ The art of programming moves rapidly.
InfoWorld helps you navigate whatrsquo;s running hot and what's going cold. | Keep up with hot topics in programming with InfoWorld's App Dev Report newsletter. ]
Git and GitHub: Although there are companies that still use Subversion or CVS even, let alone the awful Clearcase, you probably shouldnrsquo;t work at one of them.

Git is now a basic skill like tying your shoes or spell checking. SSH: Yeah, I know: Yoursquo;re a Windows developer and you donrsquo;t know no stinking shell.

But yoursquo;re going to run into having to create an SSH key or do other SSH stuff.
So you may as well learn now. Terminal Services or remote login: Even if yoursquo;re a Linux or Mac person, sooner or later yoursquo;ll have to deal with Windows.

These tools are how you will connect in. Amazon Web Services: AWS isnrsquo;t just cloud, it is the reason you donrsquo;t have to wait on IT.

There are other cloud providers, but yoursquo;ll have to deal with AWS sooner or later.

AWS has gotten so big that you canrsquo;t know all of AWS any more, but you do need to know at least the EC2 stuff. JavaScript: You donrsquo;t need to know it cold, but this is the scripting language of the now.
If a product or tool is going to add a scripting API, it will probably be for JavaScript. Bash and PowerShell: Sure, more modern devops tools are handy, but sooner or later something isnrsquo;t going to work and it wonrsquo;t have quite what you need.
So, expect to need to know how to write a basic restart script, grab an error code from an exiting command, or do a few things in a loop.

Thatrsquo;s what Bash (in Linux, many Unixes, MacOS, and Windows 10) and Microsoftrsquo;s PowerShell let you do.

Bonus: Add a tool like Grep (PowerShellrsquo;s equivalent Select-String is more wordy) and yoursquo;ll be an even more powerful deity. MongoDB: You need to know how to work with at least one document database. MongoDB is the easiest to learn. Whether yoursquo;re ultimately going to use MongoDB isnrsquo;t relevant; what matters is learning how to deal with a new-generation database.
If yoursquo;re going to use an index like Apache Solr, which is document-shaped, or yoursquo;re going to work with a more columnar structured database, the MongoDB skills will transfer. Curl and Invoke-RestMethod: Most software now has a REST API. On Mac and Linux, Curl is the command-line tool that lets you test and tweak and even script against a REST API.
In PowerShell, it is Invoke-RestMethod (although like everything on PowerShell, it requires more typing).

There are GUI tools like Postman that accomplish the same work, but a serious developer needs to be able to move past a point-and-click interface for efficiencyrsquo;s sake. Markdown: This is the format of the README.md file in GitHub. You should be able to read and write a simple Markdown document.

And thatrsquo;s easy because it has just seven symbols: (# is a header, ## is a subheader, * is a bullet, __ and ** are bold, _ and * are italics, ` is monospace, and --- is a break or rule). Markdown editors often have extensions but those are the basics.

From that basic markup language, you can get slides, PDFs, and HTML. Often these output formats can be consistently formatted with CSS or some other way.

Best of all, you donrsquo;t end up with smart quotes in your code samples. Basic HTML: I canrsquo;t make a decent-looking web page to save my life; Irsquo;m a back-end developer.

But whether yoursquo;re going to stub something out or have to parse HTML, you will need to know basics of the web markup language. To read this article in full or to leave a comment, please click here

Oracle’s Java chief debunks ‘misconceptionsrsquo; about Java 9

Looking to stave off criticism of the now-jeopardized Java 9 release, Oraclersquo;s top Java official defended the platform against what he termed falsehoods around its accommodations for Apache Maven, third-party frameworks, and existing code.“There seem to be many misconceptions out in the world about what Java 9 is, what the Jigsaw module system is, how itrsquo;s going to impact people,” said Mark Reinhold, chief architect of the Java platform group at Oracle, at the Devoxx UK conference in London last week.

Today in an online post, he addressed what he sees as the three biggest misconceptions around Java 9.To read this article in full or to leave a comment, please click here

MapD’s GPU-powered database is now open source

MapD, creator of a GPU-accelerated database that scales both up and out, has open-sourced its core technology.As announced in a press release and blog post, the core database and its "associated visualization libraries" are available under the Apache 2.0 license.

But enterprise-level features like the high availability, LDAP, ODBC, and horizontal scaling functionality—many of which debuted in the 3.0 version released earlier this month—will be kept close to the chest.To read this article in full or to leave a comment, please click here

Last Friday—the board game in which you play a machete-wielding maniac

80s slasher films (finally?) get their own hidden movement game.

Light a fire under Cassandra with Apache Ignite

Nikita Ivanov is co-founder and CTO of GridGain Systems. Apache Cassandra is a popular database for several reasons.

The open source, distributed, NoSQL database has no single point of failure, so it’s well suited for high-availability applications.
It supports multi-datacenter replication, allowing organizations to achieve greater resiliency by, for example, storing data across multiple Amazon Web Services availability zones.
It also offers massive and linear scalability, so any number of nodes can easily be added to any Cassandra cluster in any datacenter.

For these reasons, companies such as Netflix, eBay, Expedia, and several others have been using Cassandra for key parts of their businesses for many years.To read this article in full or to leave a comment, please click here

Oracle fixes Struts and Shadow Brokers exploits in huge patch release

Oracle has released a record 299 security fixes for vulnerabilities in its products, including patches for a widely exploited vulnerability in the Apache Struts framework and a Solaris exploit supposedly used by the U.S. National Security Agency.The Struts vulnerability allows for remote code execution on Java web servers and was patched on March 6.

Attackers have quickly adopted it and have used it in widespread attacks since then.[ MySQL face-off: Amazon vs.

Google. | Learn how to get started, step by step, with MySQL. | Also on InfoWorld: 10 essential performance tips for MySQL | Track the latest trends in open source with InfoWorld's Linux Report newsletter. ]
Oracle uses Apache Struts 2 in several of its products, which is why Tuesday’s critical patch update (CPU) fixed 25 instances of the vulnerability in Oracle Communications, Retail and Financial Services applications, as well as in the MySQL Enterprise Monitor, Oracle WebCenter Sites, Oracle WebLogic Server and the Siebel E-Billing app.To read this article in full or to leave a comment, please click here

Oracle Patches 299 Vulnerabilities in April Critical Patch Update

Among the many patches this month are multiple products being updated to fix an Apache Struts vulnerability that was publicly disclosed in March 2017.

Record Oracle Patch Update Addresses ShadowBrokers, Struts 2 Vulnerabilities

Oracle released a record 299 patches, including a fix for a Solaris vulnerability disclosed by the ShadowBrokers, and another for the recently disclosed Apache Struts 2 flaw.

IDG Contributor Network: Did Ubuntu dump Unity for cash?

Did Ubuntu dump Unity for money? Canonical dumped GNOME for its own Unity desktop years ago, but now the company has reversed itself and will release Ubuntu 18.04 with GNOME instead of Unity.So why did Canonical give up on Unity?[ Intel, Apache, Amazon, and more: See the 2017 open source rookies of the year. | Cut to the key news in technology trends and IT breakthroughs with the InfoWorld Daily newsletter, our summary of the top tech happenings. ]Christine Hall speculates that it all came down to money for Canonical, and she lists the reasons for the company’s shocking switch from Unity to GNOME in Ubuntu 18.04.To read this article in full or to leave a comment, please click here

Apache Struts 2 Exploits Installing Cerber Ransomware

Attackers are attempting to exploit the recent Apache Struts vulnerability on Windows servers and the payload is a variant of the Cerber ransomware.