![]() |
#321 | |
Rudolf the Red.
(Forum King) Join Date: Nov 2000
Posts: 9,314
|
Quote:
Having no GUI means there is no choice on what to use and is a close minded, isolationist and elitist position to take. "We think science is interesting and if you disagree, you can fuck off." |
|
![]() |
![]() |
![]() |
#322 |
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Phily, while I agree that it is possible to make a powerful and simple GUI interface, you simply can't match the power of a bash shell (without some fundamental changes to how GUIs operate).
For example, can you explain how to do something like: 1) With case sensitivity, find all files with the word "mouse" in them. 2) In those files, if they have at least 1 instance of the word "elite" in them, change "elite" to "1337", and "owned" to "pwned". All one really needs to remember here is the name of appropriate commands to do something like this. First, to find the appropriate files, "find". I do "find --help", and get: code: Ok, so our command will be something like: code: Now, I need to make sure there is an instance of "elite" in the files. "grep" should fit the bill: code: So: code: Now for the replace. I'll use sed (this one you just have to know, though it's easily found with a Google search): (broken into two lines for the forum's sake)code: Yes, this is more cryptic than using a GUI, but you'd just be opening the second file in Windows when I hit "enter", assuming I didn't know the syntax offhand anyway (which, for this simple of a command, I do). The point is that while a GUI becomes slightly more powerful over use via familiarity, a command line becomes vastly, vastly more powerful. Can you envision a GUI producing this kind of flexibility and power? I can't. Not without some sort of major shift in GUI style. What's really missing is stdin and stdout. Different GUI pieces don't fit together. I don't, however, particularly disagree with you on any point you made Phily, as when considering the average user, this would be totally unworkable, and you're right, linux GUIs have a long way to go (I'm pretty familiar with GUI design myself - I've read GUI design books for fun ![]() Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
![]() |
![]() |
![]() |
#323 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
GUI interfaces can be made modular and powerful, but yes, text-based ones are very good for combining. The reason for this is simple - streaming. They're text interfaces, they take in and give out text. It's simple to make them parse things because of this. It's just completely pointless for the average user.
Incidentally, although I know a few GUI-based tools that it's possible to do your task in, it would require the use of text-based tools, which kinda defies the point. For the sake of finding a quick GUI-based solution, though, using the tool jEdit you could make a GUI-based solution, the only part of which where text-based stuff is needed is a BeanShell macro to close all buffers not containing "elite". It wouldn't be any more complex than using the text tools. The point is, though, for 99% of uses of computers, this sort of nonsense is completely unnecessary. And it's not like bash and these tools aren't available for every modern computer platform (I used to code on Linux exclusively, but since I started using Cygwin there's no actual difference). |
![]() |
![]() |
![]() |
#324 |
Rudolf the Red.
(Forum King) Join Date: Nov 2000
Posts: 9,314
|
Depending on how many files you're expecting to change I would use the "find in files" option in something like EmEdit to get a list of files and then click on the file in the list to open it and then use the replace command. Simple.
Although I see your point, I don't think people in general spend their days editing pure text files. Heck, I do and I extremely rarely come up against anything I can't do in a GUI or with a recorded macro in VS6. And more often than not it is quicker to do it all manually instead of read the help file for one command, try and find out a crypticly named utility that does what you want. Learn to use it, pipe it into something else and, yadda yadda yadda. I can see GUIs doing just that kind of thing very well. You just have to create a workflow program that groups all programs into categories such as text editing, graphics etc. You drag and drop programs onto the workbench, connect up flow lines, add some filters and conditional logic and you're done. "We think science is interesting and if you disagree, you can fuck off." |
![]() |
![]() |
![]() |
#325 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
See, that's an interesting concept, Phily, I was wondering if that would work. The main problem is that all the different programs have non-homogeneous modes of dispatch, so it'd be hard (without command-line switches for said GUI tools
![]() |
![]() |
![]() |
![]() |
#326 | ||
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
![]() Still, while my example may be artificial, it is an example that could be far more easily accomplished with a text interface. Regexes are my best friends. Recently, I had to handle a mail server that was misconfigured and acting as an open relay - I decided that I'd get rid of the email that was in the outgoing queue that had come from the relatively few other servers on the net that had discovered this one. It was easily done with a find command: code: I'm sure there are GUI-based tools available that would perform something like this, but I doubt there are any that would easily allow me to tweak my command. For example: code: etc... While I understand your point about cryptic commands, Phily, you should see a competent Unix administrator who's been using those commands for a while. It's fucking magic. Plus, it looks really good to your boss who has no idea what those strange things on your screen are, and is amazed at your fingers flying over the keyboard and your comprehension speed as you use auto-complete and are only reading the one relevant piece of data from a list of 50 ![]() Efficiency brings on a whole new meaning. Want the PID/image name for the program that's listening on port 80? code: How many lines of code are in my project's .txt files, anyway? code: Hmm, that seems high. What if I don't count blank lines? code: That's better. By the way, if the file names didn't include spaces or wierd symbols (like a file named "bl*ah.txt"), the commands would be more like: code: and if you didn't have too many .txt files to overwhelm your shell (253?), you could do: code: As for: Quote:
I used to view unix commands as I believe you do, that they're cryptic commands with limited use, and that it takes huge investments of time before you get any use at all out of them. It's not true, though - learning just a few commands, you have amazing power at your fingertips. It's not a mistake, these commands have been around for a very very long time in the Unix world. Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
||
![]() |
![]() |
![]() |
#327 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
The thing about UNIX commands is that they fit in with the UNIX paradigm - everything's a file, files are usually text. It works so well by design. The reason they're useful is because people decided to design things so that tools like that would be useful, if that makes sense.
The commands tend to be less useful on Windows because configuration and so on simply isn't stored as plaintext, and the "everything's a file" paradigm isn't used (since it has less meaning in a GUI setting). It's just design choices. |
![]() |
![]() |
![]() |
#328 | |
Post Master General
(Forum King) Join Date: Jun 2000
Location: Seattle, Now Las Vegas
Posts: 6,028
|
Quote:
I'm Back? |
|
![]() |
![]() |
![]() |
#329 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
What's wrong with the registry? It's as organised as .ini files are... The only real problem is cross-platform compatibility.
I used to be convinced by the "single point of failure" angle, but then I realised that ~/.* is basically the same as the single-user registry. I believe GNOME has its own registry-like construct now? |
![]() |
![]() |
![]() |
#330 |
Rudolf the Red.
(Forum King) Join Date: Nov 2000
Posts: 9,314
|
There's no reason that the registry can't be distributed and simply backed up to a remote domain server or something. I like the registry as an idea, it's much more preferable to flat files imho. I do LOVE the idea of a SQL based OS though. Now with that you get power, simplicity and security. I so hope MS get it to work mmmmmmm.
"We think science is interesting and if you disagree, you can fuck off." |
![]() |
![]() |
![]() |
#331 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
WinFS isn't going into Longhorn (well, not relationally-based, anyway) any more, apparently. Bit of a bummer, really.
I'm not sure if SQL would really be sufficient for a filesystem, it's quite limited (with the exception of the theoretical, unsupported flavours). RDF seems more relevant (although I think it might be slower). |
![]() |
![]() |
![]() |
#332 | ||||
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
It's also easier to tar /etc/apache/ and email it than to find the relevant registry entr(ies) and then export them. On top of all that, registry entries are often not the only place an application stores data - it's far more common to have a pointer in the registry to a configuration file when there is any complexity at all in the configuration. The only advantage to the registry is that it's easier to change on-the-fly (in memory), so applications can often be reconfigured immediately (no restart), though since you're rarely actually changing the registry through anything but a software-specific GUI anyway, it's more of a software design issue than anything to do with the registry. Flat files are significantly closer to writing a script (and many of them actually are scripts) to configure something, so you get useful things like the ability to include other files, to comment out sections in a standard and easily understood way (try that in the registry), to note WHY a particular setting is a certain way, to do useful things like take a setting from a remote machine, automagically. And I'm not making this up. From Microsoft's website regaurding the registry: Quote:
Quote:
Quote:
![]() Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
||||
![]() |
![]() |
![]() |
#333 | |
Forum Domo
Join Date: Jan 2004
Location: Everyone, get over here for the picture!
Posts: 4,313
|
Quote:
![]() elevatorladyelevatorladyelevatorladyelevatorladyelevatorladylevitateme |
|
![]() |
![]() |
![]() |
#334 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
xzxzzx - for my exact feelings on the subject of registries and so on, please see here* and the subposts thereof. I know that's a copout, but I can imagine it will save a lot of time in the long term.
Secondly, the pro-registry arguments you cite are all from Microsoft (which obviously makes sense, but do you have a good reason for a single, easily-recognised repository of setting data? I'm aware that it's more "efficient", but it's not a significant loss in 99.999% of cases, particularly in context. My argument isn't for The Windows Registry, it's for a registry-like data store which would standardise settings information to a degree. Please argue against that and not the Windows registry. I'd be very interested to hear your views in particular, and anyone's views in general, of this sort of stuff. * The resolution of which was '...it will be interesting to see if you dev types can make us bitchy admin types happy with what just might be a not bad idea. Till then "worse is better".' from the remarkably nice-to-deal-with opponent to my ideas |
![]() |
![]() |
![]() |
#335 | |
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Sorry for my absence. To quote one of my favorite design quotes:
Quote:
A file named after the system process it configures in /etc/ is pretty damn standardized, though it does somewhat break down - it's not always a file named after such in /etc/. I suppose my objection to a registry is more of a instinctual sort of thing - it seems a zen crime. It seems this in two ways: For one, it forces program designers into a specific format (forcing designers to consider things: good. forcing designers to do things: bad). For the other, having something like an XML store seems like unnecessary complexity, without adding the power that simply standardizing on bash (or whatever) as a configuration interpreter would entail. XML lends itself to complicated settings, but then, I don't think that's exactly a good idea. If your configuration file is expected to look like: code: That means that your configuration file is going to need to be that simple, or you're going to have to design a more complicated system. Every complexity that you make easy on a designer is going to be used, probably far more often than it should be. Anyway, I'm tired, I'll say some more later. Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
|
![]() |
![]() |
![]() |
#336 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
Some systems necessitate complex settings, though, and any generalised system should allow them in simple ways. It is trivially easy to automatically parse a file like the one you mention into XML, but I agree that it adds an extra layer of complication. And I don't agree with using scripts for representation -- it's not really standard in any way, and if nothing else nobody will agree on a language to use.
What I'd favour would replace /etc/, and I feel I have my reasons. This comes into why it seems like a "zen crime", though -- it breaks the UNIX file metaphor. "Everything's a file, files you can edit are text" is basically the system upon which UNIX is based, and it works well with the systems that were available at its inception. I do feel, however, that we have better technologies available now, and it would be very nice if we could build a more modern system design from them. Breaking compatibility, or moving to a different system, will always have vehement complaints from users of the current systems, though. And sysadmins are perhaps the most zealous users of all. You could just move everyone to a compatible configuration and merge the XML file structures to configure (GConf does something similar, but with non-standard formats too). It is something I'm genuinely interested in, though, and I do like to hear well thought-out criticism of ideas. As for your design quote, though, my argument is that what we'd be taking away is a myriad of incompatible configuration formats and so on. |
![]() |
![]() |
![]() |
#337 |
Forum Sot
(Major Dude) Join Date: Mar 2004
Location: Marietta, Ga. U.S.A.
Posts: 3,915
|
I migrated from using INI files to using the Registry. Now I'm going back to using INI files. Too many issues with customers trying tricks with the Registry - I don't need that kind of support hassles!
|
![]() |
![]() |
![]() |
#338 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
What sort of tricks can they do with the registry that they can't do with INI files?
|
![]() |
![]() |
![]() |
#339 | |
Forum Sot
(Major Dude) Join Date: Mar 2004
Location: Marietta, Ga. U.S.A.
Posts: 3,915
|
Quote:
It is just as easy and just as efficient to use an INI file - and a hell of a lot less dangerous when your dealing with computer illiterates. |
|
![]() |
![]() |
![]() |
#340 |
Forum King
Join Date: Jan 2002
Location: the nether reaches of bonnie scotland
Posts: 13,375
|
I take it you're referring to isolating the data from that of other applications?
My "plan" (i.e. weird solution thing in my head) isn't identical to the registry, and has its own ways of getting around this. I'd still err towards the registry and then just tell them not to touch the entries in it, though. |
![]() |
![]() |
![]() |
#341 | |
Forum King
Join Date: Aug 2002
Posts: 7,254
|
Quote:
First, everything-is-a-file is a perfectly valid design philosophy (even today), because it's so damn close to nothing that it's near perfect. Second, and I don't know exactly what you're proposing, but let's say you're going to have a big XML file which stores configuration data. How can you reasonably keep that thing secure and fast and reliable and recoverable? Third, while it's admirable to want to have one configuration format, is that going to be able to be simple enough that it's going to be able to be edited by hand? Or is it going to be 12 levels deep before you can even find application data? Fourth, while it's nice to have a GUI for these things, and that would mitigate some administration-added-complexity rantings I've been tempted to throw in here, how well are you going to be able to edit it The problem I see is that a registry is basically a duplication of a file system. With a file system, you've already got security, reliability, and speed. The only thing you're missing is complexity, and I don't think that's a particularly bad thing. If you make complex configurations hard to implement, that means it's easier to simplify configuration options than to build your own configuration system. Finally, when you're trading complexity for simplicity, you have to consider when the complexity/simplicity is going to show up. If you're complicating common operations (99.9%), and simplifying rare operations, then you'd better well be eliminating a HUGE complexity in your rare cases. From what I can tell, "vi /etc/sshd" is far, far, FAR more common than anything you'd ever need a database/XML thing to do with more simply. And now I must go. Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
|
![]() |
![]() |
![]() |
#342 | |
Forum Sot
(Major Dude) Join Date: Mar 2004
Location: Marietta, Ga. U.S.A.
Posts: 3,915
|
Quote:
On the next release of each of my packages, I'm taking it back to INI files. |
|
![]() |
![]() |
![]() |
#343 | |
Major Dude
Join Date: Aug 2002
Location: Binghamton, NY
Posts: 791
|
Happy anniversary to me!
Quote:
Of course, Mandrake is now Mandriva, and I've moved on to Debian and openSUSE. Oh what fun it has been. |
|
![]() |
![]() |
![]() |
#344 |
Banned
Join Date: Jun 2004
Location: Oregon
Posts: 11,002
|
HD-DVD and Blue Ray discs have phone home DRM capacity, but they are not using it. The FCC nixed the broadcast flag.
While we are finding DRM invading, the DRM happy have had to back off quite a bit. Next-Generation Secure Computing Base (formerly called Palladium) has positive possibilities. Consumer pressure should keep George Orwell from happening. I expect that your VCR, Tivo and unencrypted MP3 collection will play for some time to come. Even if this was a product, it would first be adopted for secure business environments. You won't see anything like it for consumer desktops for years. |
![]() |
![]() |
![]() |
#345 | |
Major Dude
Join Date: Aug 2002
Location: Binghamton, NY
Posts: 791
|
This is pretty much the exact moment when I decided to migrate to Linux, almost 20 years ago. And I did it! The last Windows that I've used was XP. Last night I got the idea to see if this forum, and this post, still exist.
Quote:
|
|
![]() |
![]() |
![]() |
#347 |
Junior Member
Join Date: May 2008
Posts: 3
|
While there won't be a 32-bit version of the OS, the 64-bit version will still support 32-bit applications, much like today's x64 architecture does.
|
![]() |
![]() |
![]() |
#348 |
Senior Member
Join Date: Oct 2018
Posts: 133
|
Until a days comes that it does not anymore...
You know- for your safety and convenience with a mandatory upgrade performed at some very inappropriate time |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|