coding posts on CNET

coding

How to set up Knock Code on the LG G Pro 2

In an effort to compete with Samsung and its powerful Galaxy S brand, LG announced the G2 in the fall of 2013. The flagship smartphone was the company's first device to be released on every major US carrier. In addition to high-end specs, the G2 stood out from the crowd with rear facing buttons and numerous unique software features. One of those features was KnockOn, which allowed users to turn the phone's display on or off by simply double-tapping the screen.

The KnockOn feature has since made its way to a number of other LG phones, such as … Read more

The one real problem with Republic Wireless

Republic Wireless has attracted a lot of attention in recent months by offering one of the most attractive smartphone deals ever: a $299 Motorola Moto X and no-contract service for as little as $5 monthly.

I've been using the phone and service for over a month now, and just a couple weeks ago I professed that despite a few little quirks, I had no qualms about recommending both.

I now have a qualm.

Republic doesn't currently support short codes, which is something you've probably never heard of and therefore don't consider a big deal. That was … Read more

Klocwork: Our source code analyzer caught Apple's 'gotofail' bug

It was a single repeated line of code -- "goto fail" -- that left millions of Apple users vulnerable to Internet attacks until the company finally fixed it Tuesday.

That OS X security vulnerability, which also affected iOS users, arose out of Apple's custom implementation of a security standard known as SSL/TLS. By including the "goto fail" line twice in a row, the normal error check for some types of encryption signatures fails.

Now Klocwork, a company that makes source code analysis tools, is demonstrating that its product would have caught the errant second &… Read more

CodeCombat: Learn to code through dungeon crawling

Looking at a bunch of code for the first time can be something of a daunting affair. All those strings and symbols can simply look like a mess to the untrained eye, and can be a bit off-putting to anyone who's toying with the idea of learning how to code. It's not nearly as difficult as it looks, however -- if only one can find the right delivery method.

Codecademy does a pretty good job, but one group of programmers wanted to make it a little more accessible. Enter CodeCombat, a browser-based game where your in-game actions are dictated by the Javascript code commands you type. … Read more

PayPal simplifies online checkouts -- no more redirects

Paying for stuff with PayPal can sometimes be a pain. When users click to buy an item on third-party Web sites, they are usually redirected to PayPal's site, have to sign in there and then carry out the process. This is something the online payments company is now changing.

Paypal announced on Monday that it is redesigning its online checkout system so that those annoying redirects are no longer part of the payment process. Now, customers should be able to do the whole checkout within a merchant's Web site and in fewer steps.

PayPal's vice president of … Read more

Computer code gets literary with code poetry slam

When one thinks of poetry, perhaps Neruda or Eliot or Shane Koyczan come to mind. One doesn't usually think of Boolean strings or close tags, but Stanford University is looking to change that. It recently hosted its first annual Code Poetry Slam, a competition to turn computer code into poetry.

Leslie Wu, a doctoral student in computer science and one of eight finalists, won with her poem "Say 23." Wearing Google Glass, she wrote her code -- projected onto a screen -- while speaking each word out loud. When she was finished, she ran the script she … Read more

Alan Turing gets royal pardon on homosexuality 'crime'

What does it say about your life when you get a Google doodle before you get a royal pardon?

In the case of Alan Turing, many will believe that a small sliver of honor was expressed when on Monday, the British government announced that the brilliant codebreaker and pioneer of computing had been pardoned. Or, as it's officially -- and quaintly -- described: "a pardon under the Royal Prerogative of Mercy by the Queen."

Some mercy.

He was convicted in 1952 of the crime of homosexuality. Actually, in those days it was called gross indecency. Despite his … Read more

Best free sites for learning how to write code

Not so long ago, typing was for secretaries, journalists, and would-be authors. Now we're all tapping away at keyboards and screens from morning until night.

The number of people who spend their workday coding continues to soar. In the not-too-distant future, writing code may be as commonplace as typing and other forms of text-keying are today.

Learning how to code has never been easier. Whether you're a programming newbie or an old hand looking to learn a new skill or two, these four free services have you covered. (Note that all but W3Schools.com requires that you register … Read more

NSA spy games targeted World of Warcraft

CNET Update doesn't trust the night elves:

In this episode of CNET Update:

- Learn about the Guardian's latest report on NSA's surveillance, which states government agencies tapped into online games to hunt for terrorists. In the wake of new reports of NSA's far-reaching online spying, several tech giants are calling for the U.S. to limit surveillance.

- Teach yourself how to code with free tutorials on csedweek.org, or sign up for Apple's coding class for kids.

- Speculate if Google TV will be renamed to Nexus TV during a reboot announced at … Read more

Hour of Code campaign urges students to learn to code (podcast)

It's pretty unusual to see an issue supported by President Obama and House Republican Majority Leader Eric Cantor -- as well as Apple and Microsoft -- but they're all backing Hour of Code, which aims to get 5 million students in 33,000 classrooms around the world to learn at least one hour of computer science this week.

Sponsored by Code.org, the effort features entertainers Shakira, Ashton Kutcher, and Angela Bassett and athletes Chris Bosh, Warren Sapp, and Dwight Howard in videos supporting this cause. Tech luminaries including Bill Gates, Mark Zuckerberg, Google's Susan Wojcicki, and … Read more