Slashdot is powered by your submissions, so send in your scoop


Forgot your password?

Comment: JavaScript (Score 1) 399

by tepples (#49753451) Attached to: The Reason For Java's Staying Power: It's Easy To Read

#2. Scheme is a Lisp, so if Java were a heavy weight one, we would have a widely adopted Lisp.

We do have a widely adopted Lisp. But it's not Java; it's JavaScript. JavaScript implements Lisp-like semantics, and its syntax is a C-colored fulfillment of the "M-expression" syntax concept originally envisioned for Lisp.

Comment: Java is dysfunctional (Score 1) 399

by tepples (#49753419) Attached to: The Reason For Java's Staying Power: It's Easy To Read

Java is not functional

Only because Oracle keeps breaking it. The Java virtual machine's security has proven to be Swiss-cheese enough that Oracle is falling back on the traditional video game console security paradigm (reliance on commercial code signing certificate authorities) rather than actually restricting what a program module can do.

Comment: Variable type, name, and constructor should differ (Score 1) 399

by tepples (#49753391) Attached to: The Reason For Java's Staying Power: It's Easy To Read

Foo foo = new Foo()

Which isn't necessarily good style.

First, the type name in a declaration can and often should be more generic than the constructor. It could be an interface that the constructed class implements or an abstract class that the constructed class extends. For example, you can do Map map = new TreeMap() if you're not going to call any tree-specific methods later on.

Second, why name the variable similarly to the class? Map enemies = new TreeMap() makes the variable's purpose easier to understand.

Comment: New mediums hereinafter created (Score 1) 219

Personally, it seems extremely unlikely to me that any person or organization would think it worthwhile to do something based on any reward requiring a monopoly more than thirty years down the road.

The amicus brief by Dr. Seuss Enterprises in Eldred v. Ashcroft implied that one key objective of a long copyright term is to cover adaptations into new mediums created decades after first publication of a work.

Comment: Re:It's not that great (Score 1) 399

by tepples (#49753269) Attached to: The Reason For Java's Staying Power: It's Easy To Read

typing them on many keyboard layouts that are not en-US is quite uncomfortable.

Doctor, when I do this with my arm, it hurts.

Rapidly switching back and forth between en-US and the keyboard layout for your native language can be uncomfortable as well. "Doctor, the contortions that I have to make between doing this with my arm and doing that with my arm hurt. I am required to do both for my job."

Comment: Re:Why no high motion LD/ED? (Score 1) 53

by tepples (#49751063) Attached to: YouTube Live Streams Now Support HTML5 Playback and 60fps Video

NES for example is 256x224

I have programmed games for the NES, and I can assure you that the NTSC NES picture is 256x240. The Super NES is most commonly 256x224 with the black borders you mentioned, and the Sega Genesis is 256x224 or 320x224. On these systems, the size in pixels of the part of the signal that fills the 4:3 frame is 280x240 (or 350x240 in the case of 320px mode on the Genesis), including some borders at the sides that most TVs cut off. The borders would be included in the video uploaded to YouTube, and these borders would still be smaller than the top and bottom borders on letterboxed videos that I see so often on the service.

480p is so-so, at least you have a full video pixel for each original, but the edges doesn't align so it's a bit jittery/blurry.

The nominal bandwidth of a composite signal is 4.2 MHz. The Nyquist rate for a 640-pixel-wide sampling of a 480i component signal is 135/22 = 6.136 MHz. So ideally, one would sample the NTSC signal at 640x240, line-double it to 480p, and let the encoder sort it out. But YouTube punted on this and allowed 60 fps only for high definition, causing flicker transparency effects in these classic games to be rendered incorrectly: either fully opaque or fully invisible.

+ - NSA Planned to Hijack Google App Store to Hack Smartphones->

Submitted by Advocatus Diaboli
Advocatus Diaboli writes: "The National Security Agency and its closest allies planned to hijack data links to Google and Samsung app stores to infect smartphones with spyware, a top-secret document reveals. The surveillance project was launched by a joint electronic eavesdropping unit called the Network Tradecraft Advancement Team, which includes spies from each of the countries in the “Five Eyes” alliance — the United States, Canada, the United Kingdom, New Zealand and Australia."

"The newly published document shows how the agencies wanted to “exploit” app store servers – using them to launch so-called “man-in-the-middle” attacks to infect phones with the implants. A man-in-the-middle attack is a technique in which hackers place themselves between computers as they are communicating with each other; it is a tactic sometimes used by criminal hackers to defraud people. In this instance, the method would have allowed the surveillance agencies to modify the content of data packets passing between targeted smartphones and the app servers while an app was being downloaded or updated, inserting spyware that would be covertly sent to the phones."

Link to Original Source

"An ounce of prevention is worth a ton of code." -- an anonymous programmer