Page 2 of 2

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

Posted: Thu Feb 26, 2015 11:39 am
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.

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

Posted: Thu Feb 26, 2015 4:30 pm
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.

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

Posted: Thu Feb 26, 2015 7:11 pm
by Celauran
Rather than using FTP, you may want to consider pulling your code in directly from your VCS.

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

Posted: Thu Feb 26, 2015 7:52 pm
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).

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

Posted: Fri Feb 27, 2015 6:16 am
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.

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

Posted: Fri Feb 27, 2015 10:35 am
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).

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

Posted: Fri Feb 27, 2015 10:48 am
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.

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

Posted: Fri Feb 27, 2015 11:02 am
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.

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

Posted: Fri Feb 27, 2015 1:37 pm
by Celauran

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

Posted: Sat Feb 28, 2015 12:20 pm
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