Java 101: Deciding and iterating with Java statements

See the original posting on JavaWorld

Java applications evaluate expressions in the context of
statements, which are standalone islands of code that accomplish
various tasks such as declaring a variable, making a decision, or iterating
over statements. A statement can be expressed as a simple statement or as a
compound statement:

  • A simple statement is a single standalone instruction
    for performing a task; it must be terminated with a semicolon character
    (;).
  • A compound statement is a sequence of simple and other
    compound statements located between open- and close-brace characters
    ({ and }), which delimit the compound statement’s
    boundaries. Compound statements can be empty, will appear wherever simple
    statements appear, and are alternatively known as blocks. A
    compound statement is not terminated with a semicolon.

In this article I introduce you to using statements in your Java
programs. You can use statements to to declare variables and specify
expressions, make decisions, iterate over statements (yes, you can use
statements to iterate over statements), break and continue iteration, and do
nothing. I’ll leave some of the more exotic statements (such as statements
for returning values from called methods and for throwing exceptions) for
a future Java 101 article.

To read this article in full or to leave a comment, please click here

Why R? The pros and cons of the R language

See the original posting on JavaWorld

The R programming language is an important tool for development in the numeric analysis and machine learning spaces. With machines becoming more important as data generators, the popularity of the language can only be expected to grow. But R has both pros and cons that developers should know.

With interest in the language growing, as shown on language popularity indexes such as TIobe, PyPL, and Redmonk, R first appeared in the 1990s and has served as an implementation of the S statistical programming language. Notes Roger Peng, an 18-year R programming veteran who teaches R both at the university and on the Coursera online platform, “R is the most popular language used in the field of statistics.”

To read this article in full or to leave a comment, please click here

This wireless camera lets you take better pictures with your phone or tablet

See the original posting on The Verge

If you like taking pictures with your phone or tablet but wish it had a better camera, there are a few products that can help you. Things like Sony’s Cyber-shot QX series or the DxO One give you better lenses and bigger sensors, and still let you shoot with your phone so you can quickly share the results. Earlier this year, Olympus announced its own solution — the Air — but it was only available in Japan.

Today, Olympus has announced that the Air is being released in the United States and Canada. The Air will hit US store shelves in July with $299 (body only) and $499 (with a 14-42mm f/3.5-5.6 kit lens) options. It will be available in Canada in August.

Continue reading…

Sling TV’s Web-Based Streaming Service Experienced Third Major Outage On Monday

See the original posting on TechCrunch

sling-tv The transition from traditional cable and satellite TV service to online streaming is not without its issues, as Dish’s Sling TV subscribers can attest to. The web-based streaming platform experienced a significant outage last night – its third sizable outage to date – which brought the service down for hours. The issue affected users across platforms, including web,… Read More

Pinterest Has Started Rolling Out Buyable Pins On The iPhone And iPad

See the original posting on TechCrunch

blog-buyit-hero_5 pinterest buyable pins Pinterest is starting to roll out a buy button on its pins today in the iPhone and iPad apps, the company said. Buyable Pins let some retailers who are partners with Pinterest and retailers using Shopify and Demandware. The company unveiled Buyable Pins earlier this month, and said at the time that they would be rolling out later in June. The tool lets retailers add a buy button to pins that… Read More

Trucker Path Raises $20M To Claim The Uber For Truckers Moniker

See the original posting on TechCrunch

app_intro_path_@2 Earlier this year Los Angeles-based Cargomatic, announced it had raised $8 million to expand its platform. Why was this interesting? Well, Cargomatic hopes to become an ‘Uber for truckers’, by connecting shippers and truckers who are available to help move their cargo. Truckers would get to make more money, but, in addition, the shipping would be routed more efficiently towards… Read More

Arduino-Controlled Butterfly Wings and More at Kansas City Maker Faire 2015

See the original posting on Makezine

MakerFaireKC-1The handsome and stately Union Station yet again provided a fantastic venue for Kansas City’s Maker Faire this past weekend for its fifth annual event. Continuing its growth year after year, the 2015 Faire brought together an incredible number of Makers and attendees for a really fantastic and interactive two days […]

Read more on MAKE

The post Arduino-Controlled Butterfly Wings and More at Kansas City Maker Faire 2015 appeared first on Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers.

The first song on Beats 1 was Spring King’s ‘City’

See the original posting on The Verge

Zane Lowe just kicked off Beats 1 radio on Apple Music with a short and sweet introduction and a little bit of hype for the first song, which was… “City,” by Spring King. Haven’t heard of them? That’s right in line with the whole vibe of the station, which is all about human curators and tastemakers. It is not clear if those tastemakers will be screaming “worldwide!” and “here we go!” over the rest of the tracks, but here we are.

Here is a YouTube embed of “City,” for the sake of reader edification and also irony.

Continue reading…

Is this the future of Marvel Comics? More than 40 new covers reportedly leak

See the original posting on The Verge

Marvel is tearing down its entire comic book universe with the current Secret Wars event. A purported leak of some 45 comic book covers might show us what remains after Secret Wars runs its course.

A good one-fourth of the 45 covers here are Spider-related — including a visibly pregnant Spider-Woman and Venom as a member of the Guardians of the Galaxy. Notably absent? Any solo work for Marvel’s Cinematic Tentpole Iron Man (although you do see him on the cover of Contest of Champions and the New Avengers). Warren Ellis is name checked as writer of Karnak #1, a new series based around the Inhumans character.

The new 45?

We can’t confirm the authenticity of these covers; a lot of the information here lines up with what we already knew…

Continue reading…

Apple Music first impressions: something borrowed, something new

See the original posting on The Verge

iOS 8.4 with Apple Music is here, so of course we didn’t waste any time taking it for another spin after our original hands-on back at WWDC. As Walt Mossberg wrote at Recode, it’s an impressive if slightly confusing first cut at a full-featured music streaming service. After you get through the usual Terms of Service agreements that you won’t read, you’re dropped into the classic Beats Music interface that lets you choose your favorite genres and artists. I did my level best to get my late ’90s and early aughts bands to show up there, but only a handful did. Perhaps Apple has better taste in music than I do (Apple probably has better taste in music than I do).

After that, you get your five tabs. It starts with “For You,” which presents…

Continue reading…

Uber’s API Affiliate Program Pays Devs $5 For Each User They Refer

See the original posting on TechCrunch

Screen Shot 2015-06-30 at 9.17.52 AM Uber wants its “Request A Ride” button in any many apps as possible, and it’s willing to pay to get there. Now developers will get $5 for every U.S.-based user they sign up for Uber through API integrations in their own apps. Map, restaurant, travel, and nightlife app developers might jump at the chance to add an extra revenue stream. Developers can sign up for the Uber… Read More

Tune In To The TechCrunch Radio Pitch-Off On Sirius XM Tonight!

See the original posting on TechCrunch

techcrunch-radio1 TechCrunch Radio is going down tonight (just like it does every Tuesday) and… well, we need you. If you’re a startup looking to get publicity or build awareness, the TC Radio Pitch-Off is just the ticket. We offer entrepreneurs the opportunity to apply to be in the pitch-off and those selected are given 60 seconds exactly to pitch their product to the world (and a panel of… Read More

1 2 3 4 5 135