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

 



Forgot your password?
typodupeerror

Comment Re:I only write trivial shell scripts (Score 3, Interesting) 411

I agree python is lots of fun... but I do not call following script to be nontrivial.

> In Python, you can do things like
> junk_extension = (".temp", ".tmp", ".junk")
> if filename.endswith(junk_extension):
> os.remove(filename)

Your problem is: thinking ten lines of "if" statements to look at a filename.

This kind of things are done in 1 liner single shell command. This is too simple to bother python.

Please read about the "find" command. especially with --exec rm '{}' \;

Osamu

Comment Zenity , dialog, ... (Score 1) 411

There is zenity for GTK from shell.

There are other dialog tools out-there too.

It adds spice to a dish (program).

If you want different dishes, you are free to chose any toolkit (tcl/tk, C with GTK, ...).

If you look at Debian installer, it is based on many shell scripts. You can chose its frontend to be GUI. So limitation of shell script is only within people's mind. Just use right tools in smart way.

That's all.

Osamu

Comment The Real Issue (Score 4, Insightful) 330

I don't think anyone begrudges Ubuntu taking advantage of a perfectly acceptable revenue model. That's not the problem here.

The problem is that Ubuntu is shipping a modified version of Firefox instead of the default Firefox shipped by Mozilla. Sure, both Ubuntu and Debian ship patched versions of just about every package they include in the repository. But the overwhelming majority of those patches don't noticeably effect the user experience.

Firefox, on the other hand, is pretty much the #1 most important part of the user experience in Ubuntu. It's the application most people are going to use more than anything else. In fact, after Ubuntu is installed, the user will probably spend more time interacting with Firefox than with all the rest of Ubuntu combined. It's not inaccurate to say it's a Firefox machine, as opposed to an Ubuntu or Linux machine.

Since Firefox is the most important part of the user experience, the users don't want Firefox changed in any way. They want the default Firefox as shipped by Mozilla. They don't want the named changed to Shiretoko or IceWeasel. They don't want the icons changed. They don't want weird extensions that change behaviour. They also don't want updates to come from Ubuntu repositories, as they do for every other package. They want the newest version of Firefox from Mozilla at the exact moment that Mozilla ships it.

I understand the reasoning behind Ubuntu and Debians policies, but I think it is obvious that Firefox trumps Ubuntu. They should make a special exception for it. Just ship the raw Firefox as released by Mozilla. Don't modify it in any way whatsoever. The world is just getting more browser centric. The operating system is just the code that talks between the browser and the hardware. You can do anything you want to the OS, but don't touch the browser or you'll lose all the users you worked so hard to gain.

Comment It's all about the algorithm (Score 1) 463

Think about Sudoku for a second. Let's say you never played it before. Someone gives you a board and the rules. The first step you have is to figure out how to solve it. Eventually you develop an algorithm that can solve any sudoku. Once you have developed this algorithm, sudoku is no longer an intellectual exercise. It is no longer a matter of solving a problem, but merely executing an algorithm. It becomes manual labor. Likewise, if someone gives you the algorithm, you can bypass the first part entirely.

An MMO is very similar. In the beginning you don't know what to do. You have to learn the game and solve problems. Many of the rules of the game are hidden or secret. Thus, it can take awhile. However, eventually, you learn it. You know exactly what to press in order to do the maximum damage per unit time in any given situation with any given character. You don't even need to learn this, either. Someone can just tell you.

At some point you switch from developing an algorithm to executing an algorithm. You switch from developing a solution to executing a known solution. You switch from skill to knowledge.

This is why there is such an attraction tïo eurogames like Puerto Rico, Agricola, Caylus, Power Grid, Tigris and Euphrates, etc. These games tend to have little to no randomness, so they aren't games of chance. They are complex enough that it is very difficult to solve them, though perhaps not as complex as Go. They also have a significant theme and other elements that make them more "fun" than a game like Go or Chess.

Even so, many eurogames are solvable. We have a shelf full of games, but we only actually play about half of them. For the other half, everyone already knows the algorithm for optimal play. When we play with each other, it becomes a perfect Nash equilibrium. When we play with anyone else who hasn't solved the game, they are completely crushed.

The answer is to never play a game you have solved, and never play games that are easily solvable.

Comment obvious (Score 1) 742

Many open source projects fail to succeed because everyone working on them is a developer. They design the software to meet their own personal needs. Thus we get projects like the Gimp which does not meet the needs of any artist I have ever known.

However, when it comes to making development tools, who better to know the needs of the end user than other developers? When it comes to software that is used by developers, open source will always be king. Look where the real successes in open source are right now. Most of it is in libraries and frameworks like django, rails, and jquery. These are things made by developers to make developing easier.

Open source will always own that market.

Comment Re:Don't mess with IBM's IP Lawyers (Score 1, Interesting) 330

I can see the IBM lawyers now..."Hmmm, interesting. Yes it may be possible that you have something there on this one patent. Let's see..." ruffles through a huge stack of papers in front of him. "However, we've discovered that you're also in violation of these 127 patents of ours. Now, shall we deal?"

This only works if this company suing Sony has any business activities in this field. Even if they did, the company can stop it and Sony's claim for damage is small one.

Then if this small company win, it is huge financial damage to Sony. So the company are hoping Sony may negotiate terms. This company is like trrorist taking hostage.

The only way is to crash the company's IP position using all available legal means including method to induce huge drain of money for this small company. If expense gets too big, this small company will be broke before finishing the case. That is modern big company strategy dealing with these IP terrorists. Nasty, yes. But these IP terrorists are nasty too.

User Journal

Journal Journal: GeekNights Podcast

My roommate and I have started a podcast called "GeekNights with Rym + Scott". He's Rym and I'm Scott. It's sort of a late night talk show for geeks. We cover all sorts of topics including, but not exclusively: anime, video games, technology, gaming, science and just about anything else geeks like us are interested in.

User Journal

Journal Journal: Gamers in Dutchess County, NY

Do you like to play board games like Puerto Rico, Settlers, Tigris+Euphrates, etc.? Are you located anywhere in the vicinity of Dutchess County, NY USA? If so, me and my roommate are looking for you!

User Journal

Journal Journal: Help find USB Switch 2

I think the title of this says it all. I'm having trouble finding a USB switch that satisfies my needs. I basically need to switch two USB2.0 devices (keyboard and mouse) between 3 or more computers. The solution has to be os independent, none of that windows software for the switching. Normally I would need a KVM, but my monitors handle the V quite nicely on their own. However, I wouldn't be opposed to a reasonably priced KVM solution if it did the USB switching properly and the price was ri

User Journal

Journal Journal: Super blogging!

I realize I haven't put anything here in a long time. I've pretty much completed my transition from /journal to real blog long ago. However, since I've been keeping track of referrers I've realized that a lot of hits to my site come from people clicking on my /. signature and such. So I figured that since I just made a large blog update, 3 posts!, that I'd make a few pointers over there.

User Journal

Journal Journal: Software Patent Idiot 2

An article sayign software patents are good.

Everyone e-mail this idiot to shut him up. He's got the same old economist arguments that ignore the fundamental differences of software. He actually seems like a reasonable intelligent person, so enough intelligent e-mail might actually turn him over.

User Journal

Journal Journal: Hire Me! 4

As I am graduating and receiving my BS in Computer Science very soon, I need to find a job before I have to make student loan payments. I wrote more about it in my blog.

Slashdot Top Deals

APL is a write-only language. I can write programs in APL, but I can't read any of them. -- Roy Keir

Working...