Filesharing between OS X & Windows 10 on a htdocs directory? - macos

I had a practical question for my own work at home. I want to use quad monitor for my coding and other work. I can do this with my macbook pro attached to external triple monitor. But it is not practical because of all the cable management and Macbook Pro is barely keeping up with the performance running it. So what I wanted to do was having my PC run triple monitor and my Macbook as forth screen. Code on my pc and share/update the files in the htdocs directory on my OS X. Like how FTP works.
I found this link: http://www.itworld.com/article/2844141/how-to-share-mac-os-x-yosemite-files-with-windows-10.html
But I'm not sure if I will face sudden obstacles in doing this with my htdocs directory or other directories where my work is stored and updated from time to time.(example:Symfony projects)
I hope I mentioned everything. Thanks in advance!

Well, you can use one of the free cloud based, file-sharig service, like Microsoft OneDrive, Google Drive or Dropbox.
But files will not be updated immediately, you need to wait few seconds (in the best case scenario). So it might get frustrating quickly.
Also, from my experience, OneDrive on Mac is not the best choice when it comes to a Symfony project - it stops working after a while, probably because a lot of cache files, so I need to restart it and it's not usable at all.
Another solution might be using a version control system (f.e. Git) - but you would be able to see the code changes only after a commit and push (and do it manually, of course).

Related

SSH computer_name.local issues

This question may be rather elementary, but I haven't been able to resolve this issue. I do my research on a MacBook Pro, and I have access to my university's Mac desktops which run my codes faster; so I wanted to share my files with the uni's Mac. Without thinking too much, I ran
ssh my_laptops_name.local
on the uni's Mac, and this allowed me to access all my files on the uni's Mac, which was great! Any file I create/delete on either my laptop or the uni's Mac are instantly synced.
The issue is that anyone who uses this uni's specific Mac can now mess around with my files. How do I end this synchronous file sharing between my laptop and the desktop? (I tried turning off file sharing on my laptop and it did not work). Additionally, what is a better method for me to use to share files and stop sharing files when I so please? I realize I should have thought this through more beforehand--feel free to shame me.

Using WebStorm (JetBrains) with SSHFS mounted development server (Mavericks, OSXFUSE)? Constantly dismounts drive

UPDATE: I saw that someone was trying to use PyCharm with SSHFS and JetBrains said: "no". Perhaps this just won't work?
I'm trying to work with WebStorm on an SSHFS mounted disk at a client's office I'm working at — I've never used SSHFS before. I am using OSX 10.9.2, installed SSHFS thru home-brew and installed OSXFUSE.
The SSHFS mount dismounts periodically in any case, but since I started trying to use WebStorm with it it dismounts every time I start WebStorm and it starts scanning the files on the SSHFS disk — WebStorm gives the message "external file changes sync may be slow: Project files cannot be watched (are they under network mount?)" and if I try to open files it freezes. The SSHFS disc meanwhile has been dismounted. If I remount via terminal WebStorm isn't happy and either freezes or just sits there.
I set up the WebStorm project using "New project from existing files" — is there a way to set it up using SSHFS as a server? Beyond the login and password to the SSHFS disc I don't have any other server-specific info, but perhaps could get it.
Thanks for any help — 
This is how I operate, and maybe it can help you. If there's a config setting I seem to have glossed over, just ask and I'll fix this up. But all in all, this is wonderfully successful:
My build environment is tucked away on a Linux distro, but my development environment is co-located on a Mac Desktop (when I'm at work) and a Mac Air (when I'm at home). My projects are enormous, and contractually I can't move the code to any machine where it might be accessible if my laptop is stolen. So I pretty much have to use ssh (and sshfs) to get anything done.
When I am at home, and I sit down to work, I manually initiate the VPN -- since there are so many variations, I'll assume you know how to do this part.
I open a terminal and invoke:
caffeinate &
because I hate getting disconnected whenever the computer goes into screen saver. This may be why you get disconnected? I leave this terminal open whenever I'm developing. I also use tmux so that my terminal session can be shared between computers. Anyway...
I set up a mount point set up between the server and the client. I have a script that I run when the mount point goes down (customize for your own work):
umount -f /Volumes/$MOUNTDIR/
umount -f /Users/$HOMEUSER/$MOUNTDIR
mkdir /Users/$HOMEUSER/$MOUNTDIR
sshfs $HOMEUSER##SERVERADDR:/usr/$HOMEUSER/$MOUNTDIR /Users/$HOMEUSER/$MOUNTDIR
I then launch Webstorm, PyCharm, ADS, IntelliJ (I'm a Jetbrains fan).
At this point you can open the directory within $MOUNTDIR and start working. If you find that you need to run builds, here's a tip -- do not build locally. Instead use SSH to issue the build commands (or run scripts) on the server. The overhead of synching after the build has run is most likely far less than fetching and writing all of the steps of the build.
I only find I get disconnected if I lose the VPN. I used to get disconnected whenever the computer would sleep. Caffeinate fixed that.
For reasonable sized projects, this is probably all you need. So what follows is an optimization -- only do it if you are having headaches:
To speed up load times, what I do is create a local project that is not part of the mount. There is a .IDEA directory that gets created and written to a lot at the base of the first directory you open as a project. Inside of this directory are lots of files that get written to a lot, and depending on your network speed, it might cause grief. It does mean some settings have to be maintained everywhere you go, but in my case it's a small price to pay for big performance gains.
So because I do this, I'll have to manually add directories to my project (Under Preferences/Directories). But if you work with huge APIs, you might be doing this anyway. I am careful to mark directories I don't need to reference as 'excluded', to make life easier on the indexer. I work in a shared directory structure with thousands of other employees, and I make sure the streams don't cross.
Now I have many many thousands of files, and it is true that sync can be slow. But sync is only triggered when you leave the app and come back in. And honestly, it's not that terrible, so long as you have a reasonable internet connection.
I hope this helps. Once I started using this as my workflow, I never went back.

performance of xampp running on dropbox

i'm running xampp on my company notepad but would also like accessing it at home with my desktop pc which runs on a fast ssd.
i considered moving my xampp directory to dropbox.
can someone tell me about performance issues - will the dropbox background sync processes affect my xampp's apache/mysql performance - when there's lots of permanent coding work / changes in my scripts - or will it perform just as fast as it would when located in c:\xampp? thanks
It shouldn't, when syncing you are basically downloading it to your PC, so you're running it from your local box. Since you are using ssd, I doubt you'll be using all your SSD power to the maximum and also you won't be using the internet when coding locally.
But it should be causing a bit of cpu/network usage although you're using xampp on a local box(the sync needs to check the files if they changed/added/removed + transfer changes). Consider pausing the sync while working on xampp, and start it back when done working on it.

Hosting Visual Studio projects in dropbox

I develop both on my desktop and laptop, and I am frequently switching between them. Are there any problems that could arise from keeping a project folder in my dropbox and always accessing/editing from there? I'm running the VS2010 on both, but W7 on one and W8 on the other.
I'm using it often. But I do experience some issues. It seems that sometime VS and Dropbox conflict. This shows by leaving some temporary source files or by errors during compilation of file being locked.
In fact I came here while looking how to solve them. But still they are only a little issue and I keep using it that way for a long time.
EDIT: It is not just me. See Visual studio 2012 and dropbox don't play nice together question on SuperUser.
I'm using Dropbox to host my project and I edit and build directly on there and have experienced no problems, ever. Win7, VS2010, CPP. I find Dropbox to be simpler and equally robust to than version control software. I'm a big fan. I should say Microsoft OneDrive once failed me, horribly, and I no longer trust it. With Dropbox, I always check the icon in the systray carefully to make sure it is finished updating before I turn my computer off.
I use both git and Dropbox, as I also switch which machine I'm working on. This way I can use source control with the rest of my team, while also able to pick up where I left off. My 2 PCs that sync are my one at work and at home. Both desktops, both almost always on and running dropbox.
Rarely I get conflicts, when a machine is offline or something. The solution 99% of the time is to simply delete any conflicting files. Because I'm constantly up to date with git, it's fine if I ever have to delete all my local code, since I can always get it back.
So it's really for nothing other than being able to run out of work on an urgent task, and then resume where I left off when I got home.

Apartment Fire- Time Machine did not back up XCode projects?

My apartment burned down a few days ago and my beloved MacBook Pro was one of the many electronic casualties. While I of course back up (using Time Machine) and my backup drive managed to survive, much to my dismay many of the most important files seem to be missing from my Time Machine backups. Namely, all of my recent XCode projects. In fact, the entire directory (titled "Re-Programming") which housed all of my development projects is inexplicably missing from my latest backups.
Curiously, it seems that some of my older backups do contain the missing folder (May 10 has the folder, while May 19 through the latest do not).
I would have wanted to try Migration Assistant to bring my files over to a friend's computer but I'm unable to because my backups were made in Lion and he is using Snow Leopard. I'm fairly certain it wouldn't help though (not only is the directory missing, but a search for certain header files I remember the filename of don't show up in Search).
I've done some googling and it seems Time Machine does not backup XCode build folders to save space. This makes sense as it would take up a lot of space and are easily recreated by building your projects. But why on earth would Time Machine not backup my oh-so-important XCode project files?
The plot thickens though. Even if, for some strange reason Time Machine has a bug that prevents it from backing up XCode projects, what about other projects? I had some Android projects in there too, maybe even some old HTML/CSS/PHP happenings. What happened to those, and why the ENTIRE directory, not just the XCode projects? And why did it USED TO backup my most important directory and suddenly stopped without my knowledge back in May?
Am I missing something here? Perhaps they were placed in a weird place that isn't obvious to me? Any help is appreciated.
Sorry to hear that. I believe TimeMachine backups are just a .sparsebundle files. You should be able to mount the file directly and browse through it to see if you can find any of your project files.
https://superuser.com/questions/147998/backing-up-my-xcode-projects
I am not sure about Time Machine but here are some alternatives!

Resources