Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

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

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) 218

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) 380

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) 50

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.

Comment: Re:Or just boycott the major movie studios (Score 1) 371

by tepples (#49748047) Attached to: Firefox 38 Arrives With DRM Required To Watch Netflix

There are actually three options: use DRM, infringe copyright, or voluntarily do without.

Or fourth option: movie/tv show owners can wake up to the fact the digital file is worthless

I was referring to things that an end user can do. Most lack the billions of dollars needed to dictate terms to the incumbent movie studios. Most lack even the millions of dollars to start an indie movie studio that can produce a desirable feature-length motion picture to sell on GOG.

Comment: Drop Comic Sans in favor of what? (Score 1) 386

by tepples (#49745465) Attached to: Microsoft To Teachers: Using Pens and Paper Not Fair To Students

I've always hated cursive. It's always sloppy, impossible to read, and for the last 30 years has done nothing but piss me off. I'm glad to see it dead.

Unless you speak Arabic, in which case you even have to type in cursive.

Next up, comic sans.

If not Comic Sans, then which font to simulate neat manuscript writing would you recommend? Is Comic Neue fine?

Comment: Updates (Score 1) 118

Barring a standard port like a cablecard slot that lets me plug an embedded computer into my TV

There is a standard port. It's called MHL.

You can build a SFF PC for under $100 that will play 1080p video just fine. Why would you ever buy a smart TV?

If you build a PC, you have the maintenance headache of keeping the PC's operating system and applications up to date. And in case you figure that out, which parts do you use for a $100 SFF PC so that I can recommend them to others?

Comment: Re:Shifted to PVR or just not watching (Score 1) 218

The change was I switched from downloading TV shows after they have aired to PVR'ing every series I might want to watch.

PVR works so long as what you want to watch is shown on TV. But there are a lot of movies and TV series that aren't shown on TV, DVD, or streaming. How is one supposed to lawfully watch the film Song of the South, the film Pinocchio and the Emperor of the Night, or the TV series Spartakus and the Sun Beneath the Sea?

Some of my readers ask me what a "Serial Port" is. The answer is: I don't know. Is it some kind of wine you have with breakfast?

Working...