Re: How to look for balanced parenthesis?
As of Ultraedit version 12, it's not quite transparent, but it's pretty close. If you Open a file from FTP (File menu option), and hit save, it will automatically upload the file to the server. It's a little slow on the save (as in hit save and count to 10), but it does the job well. Ultraedit seems to do a good job of keeping this functionality far enough away from you to be easily accessible. It's on an FTP submenu of the File menu, and there are no toolbar buttons for Open From and Save As to FTP by default. You have to add them manually. The server setup is a bit clunky, but once you've added your account info, you never have to do it again. I have to say the cleanest implementation of this I've seen is in KDevelop (KDE Application, Linux based but open source). You just type in a URL in the file open dialog, and it attempts to log into the server. If anonymous authentication fails, it prompts you for a username and password, which you can optionally save in another app called KWallet. All of it happens inline, and it's very intuitive. Unfortunately, I haven't had the heart to try to compile it under Cygwin. :) On 7/11/06, Miles Thompson <[EMAIL PROTECTED]> wrote: At 12:36 AM 7/11/2006, you wrote: UE still lives on my machine, but it's no longer my "daily editor" but it is invaluable if I have to look at a binary file. Ian Meade has a fine editor there. Maybe I should download the latest version and give it a try. When I last checked, its FTPdown/Edit/FTPup cycle was not transparent, but that may have been v. 9 or v.10 - my copy is a pretty old v.7. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
At 12:36 AM 7/11/2006, you wrote: I used to use UltraEdit, but then switched to EditPlus because it can edit remote files almost transparently. (Opening a file FTP's it down, you edit local copy, Saving FTP's it back.) FYI - UltraEdit can do this - It uses SFTP over SSH to edit remote files. Works like a charm. -Hank mysql, query It's funny how an editor-switch comes about. My old version of UE, could not do this, and I really didn't care, except that the "editor question" reared its head again on the PHP list. Keep in mind this was probably close to four years ago. The capability of EditPlus to edit remote files was promoted as one of the things it could do - at the time I was working on a project for a client for which there was no SSH access - so I downloaded it and began using it occasionally ... and the use became more and more frequent. UE still lives on my machine, but it's no longer my "daily editor" but it is invaluable if I have to look at a binary file. Ian Meade has a fine editor there. Maybe I should download the latest version and give it a try. When I last checked, its FTPdown/Edit/FTPup cycle was not transparent, but that may have been v. 9 or v.10 - my copy is a pretty old v.7. What I would really like would be EditPlus / UltraEdit simplicity and speed, with the capability to interactively provide function names and their parameters. Similar to VB or Zend Studio, BUT while working on the server. Yeah, an oxyMORONIC request. Cheers - Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/384 - Release Date: 7/10/2006 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
2006/7/10, Joerg Bruehe <[EMAIL PROTECTED]>: Hi Mike, all! mos wrote: > I have a complicated SQL statement with around a dozen > "if(this,val1,val2)" embedded in it and there are even nested If > clauses. I'm getting syntax errors because I'm not balancing the "( )" > properly. Is there any free software out there for Windows that I can > copy and paste the SQL statement into that will show me where the > parenthesis are unbalanced? It doesn't have to know about SQL, I just to > either highlight the parenthesis range or find out when the parenthesis > become out of sync. I cannot give a list of editors that will do it, but I know that "vim" ("vi improved") does it. It will also do syntax highlighting, but I do not know whether it knows about SQL already or would need an additional SQL syntax description. In vim, you can find matching parenthesis, with the "%" shorcut. Put the cursor on one parenthesis, hit %, hop you jump to the corresponding opening/closing parenthesis. (definitely a must-have for certain language). -- http://www.w-fenec.org/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
I used to use UltraEdit, but then switched to EditPlus because it can edit remote files almost transparently. (Opening a file FTP's it down, you edit local copy, Saving FTP's it back.) FYI - UltraEdit can do this - It uses SFTP over SSH to edit remote files. Works like a charm. -Hank mysql, query
Re: How to look for balanced parenthesis?
- Original Message - From: "Miles Thompson" <[EMAIL PROTECTED]> To: Sent: Sunday, July 09, 2006 8:10 PM Subject: Re: How to look for balanced parenthesis? At 03:48 PM 7/9/2006, Rhino wrote: - Original Message - From: "mos" <[EMAIL PROTECTED]> To: Sent: Sunday, July 09, 2006 1:35 PM Subject: How to look for balanced parenthesis? I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. I'm going to give you one answer that you almost certainly won't like: Eclipse. Eclipse is an IDE for developing programs, especially Java, and it has a parenthesis matcher which also handles braces and square brackets. Installing Eclipse solely for the bracket matcher is a bit like using atomic weapons to kill mosquitos but if you were going to develop applications anyway and wanted a great IDE, it might be the answer to your problem. It's free by the way. You can get it at http://eclipse.org. Another editor that can also match brackets is PFE, Programmer's File Editor. It's also free and is a good editor. You can find it many places, including http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/pfefiles.htm. It only runs on Windows though. Another decent little editor that has the feature is TextPad. It's also free and can be found at http://www.textpad.com/. There are probably more basic editors out there that have bracket matchers but I can't name any for you. I'm not even sure what the feature you want is supposed to be called: "bracket matcher", "parenthesis balancer", or whatever. It's getting to be a pretty standard feature in editors in recent years, although it doesn't seem to be in NotePad or WordPad. -- Rhino Rhino, Eclipse can't edit files on the server, can it? I used to use UltraEdit, but then switched to EditPlus because it can edit remote files almost transparently. (Opening a file FTP's it down, you edit local copy, Saving FTP's it back.) I really don't know if Eclipse can edit files on a server. My workspace is on my local PC so I've never tried editing a file on a server. I can certainly see that it would be convenient to be able to edit a file on a server without having to manually transfer the file back and forth! But Eclipse is pretty smart so I'd be a little surprised if they forced you to transfer the file manually. -- Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 2006-07-04 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
Hi Mike, all! mos wrote: I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. I cannot give a list of editors that will do it, but I know that "vim" ("vi improved") does it. It will also do syntax highlighting, but I do not know whether it knows about SQL already or would need an additional SQL syntax description. "vim" is available freely (both "free of charge" and "free open source") for Unix + Windows from here: http://www.vim.org/ It has several other nice features which will need some time to really use them, like "folding" (hiding inner structure elements from display), and it includes "vimdiff" (a tool to compare two file versions side by side). Whether you like vim (like I do) or not is a different issue, flame wars about editors are famous. I admit that the way you use vim is different from many Windows tools, it is definitely not "point-and-click". There is also a "gvim", more GUI-style, which I cannot comment on. So you have to make your own choice. HTH, Jörg -- Joerg Bruehe, Senior Production Engineer MySQL AB, www.mysql.com Office: (+49 30) 417 01 487 VoIP: [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
At 01:48 PM 7/9/2006, you wrote: - Original Message - From: "mos" <[EMAIL PROTECTED]> To: Sent: Sunday, July 09, 2006 1:35 PM Subject: How to look for balanced parenthesis? I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. I'm going to give you one answer that you almost certainly won't like: Eclipse. Eclipse is an IDE for developing programs, especially Java, and it has a parenthesis matcher which also handles braces and square brackets. Installing Eclipse solely for the bracket matcher is a bit like using atomic weapons to kill mosquitos but if you were going to develop applications anyway and wanted a great IDE, it might be the answer to your problem. It's free by the way. You can get it at http://eclipse.org. That's ok, our provincial bird is the mosquito and we need all the weapons we can get. I was going to try eclipse anyways for another project I'm going to start. Some people like eclipse, others hate it because it crashes a lot. Another editor that can also match brackets is PFE, Programmer's File Editor. It's also free and is a good editor. You can find it many places, including http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/pfefiles.htm. It only runs on Windows though. Another decent little editor that has the feature is TextPad. It's also free and can be found at http://www.textpad.com/. There are probably more basic editors out there that have bracket matchers but I can't name any for you. I'm not even sure what the feature you want is supposed to be called: "bracket matcher", "parenthesis balancer", or whatever. It's getting to be a pretty standard feature in editors in recent years, although it doesn't seem to be in NotePad or WordPad. Thanks for the list of editors. I'm surprised my version of Notetab pro doesn't have bracket matching. I may need to upgrade. Mike -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
At 03:48 PM 7/9/2006, Rhino wrote: - Original Message - From: "mos" <[EMAIL PROTECTED]> To: Sent: Sunday, July 09, 2006 1:35 PM Subject: How to look for balanced parenthesis? I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. I'm going to give you one answer that you almost certainly won't like: Eclipse. Eclipse is an IDE for developing programs, especially Java, and it has a parenthesis matcher which also handles braces and square brackets. Installing Eclipse solely for the bracket matcher is a bit like using atomic weapons to kill mosquitos but if you were going to develop applications anyway and wanted a great IDE, it might be the answer to your problem. It's free by the way. You can get it at http://eclipse.org. Another editor that can also match brackets is PFE, Programmer's File Editor. It's also free and is a good editor. You can find it many places, including http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/pfefiles.htm. It only runs on Windows though. Another decent little editor that has the feature is TextPad. It's also free and can be found at http://www.textpad.com/. There are probably more basic editors out there that have bracket matchers but I can't name any for you. I'm not even sure what the feature you want is supposed to be called: "bracket matcher", "parenthesis balancer", or whatever. It's getting to be a pretty standard feature in editors in recent years, although it doesn't seem to be in NotePad or WordPad. -- Rhino Rhino, Eclipse can't edit files on the server, can it? I used to use UltraEdit, but then switched to EditPlus because it can edit remote files almost transparently. (Opening a file FTP's it down, you edit local copy, Saving FTP's it back.) Cheers - Miles Thompson -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
At 02:35 PM 7/9/2006, mos wrote: I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. TIA (Mike)) Mike, EditPlus will match parentheses; I think the latest version of UltraEdit does as well. It is a real help at times. Cheers - Miles Thompson -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: How to look for balanced parenthesis?
- Original Message - From: "mos" <[EMAIL PROTECTED]> To: Sent: Sunday, July 09, 2006 1:35 PM Subject: How to look for balanced parenthesis? I have a complicated SQL statement with around a dozen "if(this,val1,val2)" embedded in it and there are even nested If clauses. I'm getting syntax errors because I'm not balancing the "( )" properly. Is there any free software out there for Windows that I can copy and paste the SQL statement into that will show me where the parenthesis are unbalanced? It doesn't have to know about SQL, I just to either highlight the parenthesis range or find out when the parenthesis become out of sync. I'm going to give you one answer that you almost certainly won't like: Eclipse. Eclipse is an IDE for developing programs, especially Java, and it has a parenthesis matcher which also handles braces and square brackets. Installing Eclipse solely for the bracket matcher is a bit like using atomic weapons to kill mosquitos but if you were going to develop applications anyway and wanted a great IDE, it might be the answer to your problem. It's free by the way. You can get it at http://eclipse.org. Another editor that can also match brackets is PFE, Programmer's File Editor. It's also free and is a good editor. You can find it many places, including http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/pfefiles.htm. It only runs on Windows though. Another decent little editor that has the feature is TextPad. It's also free and can be found at http://www.textpad.com/. There are probably more basic editors out there that have bracket matchers but I can't name any for you. I'm not even sure what the feature you want is supposed to be called: "bracket matcher", "parenthesis balancer", or whatever. It's getting to be a pretty standard feature in editors in recent years, although it doesn't seem to be in NotePad or WordPad. -- Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 2006-07-04 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]