Vim replacement with cut/paste to remove hidden characters

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Vim replacement with cut/paste to remove hidden characte

Post by Celauran »

bowlesj wrote:I was looking at this and not sure if it could run on CentOS.
https://help.ubuntu.com/community/UFW
Nope.
bowlesj
Forum Contributor
Posts: 179
Joined: Fri Jul 18, 2014 1:54 pm

Re: Vim replacement with cut/paste to remove hidden characte

Post by bowlesj »

Some good news. I didn't think I could do this by today but I got the winSCP working, got the ftp configured properly and got the web pages up to the host (obviously still blocked off however). I will try and learn to set up a basic fire wall before my target date. That link you sent will be a great help so if I keep the firewall simple maybe I can make that late March deadline.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Vim replacement with cut/paste to remove hidden characte

Post by Celauran »

Rather than using FTP, you may want to consider pulling your code in directly from your VCS.
bowlesj
Forum Contributor
Posts: 179
Joined: Fri Jul 18, 2014 1:54 pm

Re: Vim replacement with cut/paste to remove hidden characte

Post by bowlesj »

Okay, I assume that VCS means VPS. I have an upload page for uploading one image file at a time (obviously yet to test it on the VPS). That is about as much as I know about uploading. You will have to give me a link to read on this one and maybe suggest some reasons to take this approach. I am guessing security and speed are the primary factors. Speed would need to be balanced against added time to learn it (which knowing unix could be as while compared to windows since they(MS) try to automate all the details or it won't sell - accounting for the huge price difference between unix and windows hosting as I see it being in the middle of the learning curve of unix and knowing this challenge well).
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Vim replacement with cut/paste to remove hidden characte

Post by Celauran »

VCS means Version Control System. Probably matters less for the initial upload, but SSHing in and `git pull` is much easier than having to navigate around the file system uploading a bunch of files by hand. I like not even having to worry about which files need uploading.
bowlesj
Forum Contributor
Posts: 179
Joined: Fri Jul 18, 2014 1:54 pm

Re: Vim replacement with cut/paste to remove hidden characte

Post by bowlesj »

Thanks Celauran. I remember RCS (revision control system) and SCCS (source code control system) from my unix days. I used one of them and I can't actually remember which one now (I think I tried both). It sounds like things have really come a long way since. So are you saying that these new methods run on the home machine and if I make a local host change and check the changes in to the revision control system (sorry: version control system) they automatically ship the new version up to the web host for me? That would be very useful for sure. If you are saying they suck the change up to the web host I am totally confused - LOL - since I would be changing/testing local first so how would it know I changed it? Also if it could somehow detect the difference between a set of modules in more than one directory a the home machine then automatically check the changed modules in and then ship them up to the web host that would be the ultimate. So I would know everything is done, start the VCS up, log in, it would check for the changes and then do its processing. That would save me missing the upload of changed related modules too (reducing new unexpected bugs on the web host that did not appear during my testing).
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Vim replacement with cut/paste to remove hidden characte

Post by Celauran »

All of what you described is possible. It's just a matter of which you prefer and how you configure things. My typical workflow is to create a new Git repo locally (I'm using Git for this example, but you can use Mercurial or whatever else you prefer), commit my 'base' code (usually just enough to get things running), and push to the remote (be it GitHub, BitBucket, private repo). As I work on the project, I make regular commits for small blocks of work -- generally one commit per feature, say -- and push those to remote. From there you can either log in to the staging/production server and manually clone/update from the remote repo to pull down the latest changes, or you can set up something like Capistrano to automate deployment for you.
bowlesj
Forum Contributor
Posts: 179
Joined: Fri Jul 18, 2014 1:54 pm

Re: Vim replacement with cut/paste to remove hidden characte

Post by bowlesj »

Yeah, that sounds really good. Thanks! I will put it on my to-do list to reread you last post and investigate these products. Right now the pages are up there, the pages that do not need the database are working, the pages that need the database are not, I need to learn to install mail so I can get the emails from the "error handler" routine to determine what the problem is. I need to learn if NetBeans (the debugger) can run on the VPS to help me if the emails are not sufficient to determine the problem. phpMyAdmin can see the database records however it gives an error if I inspect a specific column/field (an error I don't understand yet). phpMyAdmin gave an error during installed (php.common dependency not found is basically what it said). That may have something to do with it. So there is some work to do yet before I test all the features of the website. If I can clear up these issues by Sunday night I am still on my hoped for schedule.
bowlesj
Forum Contributor
Posts: 179
Joined: Fri Jul 18, 2014 1:54 pm

Re: Vim replacement with cut/paste to remove hidden characte

Post by bowlesj »

Thanks, Celauran. I will check into the links hopefully in stage 3 or 4 of the next 4 weeks that I described. So far I am on schedule for that. John
Post Reply