Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:I like Python (Score 1) 997

I can't copy his code into mine without manually replacing his spaces with tabs, and vice versa.

In that case, your editor is doing something hideously wrong. Python's parser follows the traditional rule that a tab forwards to the next column divisible by 8, which is how all reasonable programs interpret Tab characters.

Many programs that have functionality for writing Python code avoid the use of tabs completely, though. Emacs being one of them.

Comment Re:macros are cool (Score 1) 412

Yes, and don't forget C-x z for repeating a command such as C-x e. The convenient thing about it is that you can keep pressing just the z key afterwards to keep repeating.

I find it especially useful when re-indenting code blocks that are a bit to irregular to use C-c C-q: Just do C-x ( TAB C-n C-x ) C-x e C-x z z z z...

Programming

Submission + - GCC Compiler will finally gets replace by BSD PCC. (undeadly.org)

Sunnz writes: "A leaner, lighter, faster, and most importantly, BSD Licensed Compiler PCC has been imported into OpenBSD's CVS and NetBSD's pkgsrc.

The compiler is based on the original Portable C Compiler by S. C. Johnson, written in the late 70's. Even though much of the compiler has been rewritten, some of the basics still remain.

It is currently not bug-free, but it compiles on x86 platform, and works being done on it to take on GCC's job."

PlayStation (Games)

Submission + - The Dark Side of HDCP, or, Why Is My PS3 Blinking?

FloatsomNJetsom writes: High Definition Content Protection is supposed to make sure you're not playing pirated content, but sometimes your devices screw up the HDCP "handshake" (over an HDMI cable) and nothing works. This happens with some regularity with the PS3, and Popular Mechanics investigated and found a quick and dirty workaround. From the article:
We then checked with Leslie Chard, president of HDMI Licensing, which owns the rights to the standard, who told us that HDCP is one component of HDMI that has been plagued with interoperability issues. HDCP (high-bandwidth digital content protection) is designed to prevent the interception of data — specifically copyrighted Hollywood movies — between an output component and a display. As Steve Balough, the president of Digital Content Protection, the licensing company for HDCP explains, the two pieces of hardware must exchange a "key," a sort of certificate of authenticity unique to each individual device, to verify a secure connection.
The problem isn't limited to the PS3 — many HDTV cable boxes and have the same problem. The fix there? Unplugging the power cable.

Slashdot Top Deals

Garbage In -- Gospel Out.

Working...