I have a problem using PhpStorm:
All of my sites are hosted externally, and I pull them into my local environment PhpStorm project. When I need to pull in a new project (or sync an old one), it locks up PhpStorm during this process, which could be long. If I want to work on a different PhpStorm project in the meantime, I can't do so via PhpStorm.
Does anyone know how to get around this? If it helps, I'm using Microsoft Windows.
There's an open feature request from March 2010 to solve this: https://youtrack.jetbrains.com/issue/WI-1307
For now, you may want to consider one of these workarounds:
Exclude all folders to prevent an initial download. Go back into the settings, remove the exclusions, and then do a background sync.
Creating the project without defining a remote server. Go into the project settings, add the server, and configure the folders you'd like to sync. Then perform a background sync.
Actually I opened up a case with jetBrains about that, the thing is that PhpStorm uses all the CPU at almost 100% until it finish indexing, so this is a big problem with older computers or computers with small resources
Related
I recently made my own personal MediaWiki and I would like it to be available on different computers. I set it up with XAMPP, so currently, what I did was make two repositories:
one for xampp\htdocs\(my-wiki)
one for xampp\mysql\data\(my-sql-folder)
Then I cloned those repositories to the same folders on another computer. However, when I go to localhost(my-wiki) on that computer, I get the error "Sorry! This site is experiencing technical difficulties. (Cannot access the database)."
Whenever I make changes to the Wiki, xampp\htdocs(my-wiki) does not change at all, while xampp\mysql\data(my-sql-folder) frequently shows edits. What am I doing wrong?
Edit: After looking at the internal error data, it appears that none of the tables in the wiki exist anymore (Table xxx doesn't exist in engine). I'm unsure of why this would be!
There are two things that change when you use a wiki: the uploads directory and the database, so for some some sort of decentralized wiki you need to replicate those. Uploads are simple (you could use git, or some shared central storage like NFS, or some decentralized file store - Wikipedia for example uses Swift). As for the database, there are a few experimental tools to use git as a storage engine (e.g. git-mediawiki), but nothing I would rely on. If your computers run all the time, you can use database replication, but that's not a beginner-level setup. In practice you'll probably be best off just using database dumps. Or buy a server on the internet (a decent VPS is pretty cheap these days) and use that as the wiki's DB backend so you can reach it from all your machines. (Or I guess you can just put your whole wiki on the internet at that point.)
Figured it out. I was missing the files ib_logfile0, ib_logfile1, and ibdata1 from the xampp/mysql/data folder. This, however, makes my Git setup even more annoying. If anybody has any suggestions for a better way to setup my Wiki and make it available across different computers, it'd be much appreciated! Thanks
Usually I am working alone, but now I have a new colleague, so we need to work together.
Unfortunately we suffer the lack of git, so because of certain circumstance we need to work directly on FTP.
I am using Netbeans, but I recommended to her the PhpDesigner, because I know, it is working with files directly on the remote server, not like Netbeans what is make a local copy of the file.
When I edit a file, I tell it to her, so she close the file, and open it again, and my changes are appears.
I there any way to not close the file, just "refresh" it (download from server)?
No, you can't in phpDesigner, I've tried many ways but is not possible. You can do it in Npp.
I have a front-end Access 2007 apllication which talks to MySql server.
I want to have a feature where the application on the user's computer can detect that there is a new version on the network (which is not difficult) and download the latest version to the local drive and launch it.
Does anybody has any knowledge or exprience how this can be done?
Thanks
Do you actually need to find out if there is a newer version?
We have a similar setup as well, and we just copy the frontend and all related files every time someone starts the application.
Our users don't start Access or the frontend itself. They actually start a batch file which looks something like this:
#echo off
xcopy x:\soft\frontend.mde c:\app\ /Y
c:\app\frontend.mde
When we started writing our app, we thought about auto-updating as well and decided that just copying everything everytime is enough.
We have enough bandwidth, so the copying doesn't create any performance problems (with about 200 users).
Plus, it makes some things easier for me as a developer when I can be sure that each time the application is started, the frontend is overwritten anyway.
I don't have to care about auto-compacting the frontend when it's closed (and users complaining that closing the app takes too long...), and I don't have to deal with corrupted frontends after crashes.
#Lumis - concerning the custom icon:
Ok, maybe I should have made this more clear. There is only one batch file, and it's in the same network folder as the frontend.
The users just have links on their desktops which all point to the same batch file in the network folder.
This means that:
future changes to the batch file are easy, because it's only one single
file in one central place
we can change the icon, because
what the user sees is a normal Windows link
(By the way, we did not change the icon. Our app is for internal use only, and I'm working in a manufacturing company, which means that all but very few users are absolutely non-technical and couldn't care less about the icon, as long as it's the same on all machines and they know how it looks like so they can find it quickly on their desktop...)
Tony Toews has one: Access Auto FE Updater
It appears to be free, but I'm not 100% sure.
Lumis's option is solid, however if you want to check the version and only copy the database when their is a new version, have a 'Version' field in a back end table, and a 'Version' constant in a front end module. Keep these in sync with each new production release. Compare the table version against the version in the module when the main form of the front end database opens.
If they don't match, have the database close, but have the database call a batch file as the last bit of code to run as it's closing. The database should finish closing before the batch file begins it's copy process. If needed, place a minor delay in the batch file code just to be sure there are no file locking issues.
I'm really new to owning a website, I just bought mine today!
But, I've found found pretty fast that updating files can be a nuance.
Make a change locally, save, re-upload.
I really prefer to code locally, as the IDE is much better. Else I'd have no problem coding with the hosts "notepad".
So, my question is, is there software of any kind that will sync your local files, to those that are hosted on the web host? Or is this dependent on the web host?
i use winscp, i tell it to upload changed files, so once logged in, any changes i make locally are automatically updated. there are other ftp clients that do this also.
you can use a file versioning system like svn to download and update files, push new versions. But that isn't really any different than what you are doing now, except that svn offers ability to keep track of previous versions and keep people from overwriting each other's work. I think maybe you might mean more like "when I open and edit file.txt in my editor and save, it is automatically updated on the server" ? If that is the case, there are a lot of editors that will let you open a file remotely and when you save it, it saves it remotely. The one I personally use is html-kit
Several times now I've had Eclipse delete files for me seemingly randomly - then they appear under the 'Local History' option.
What is going on! I'm definitely not just deleting things by mistake.
Most recently it deleted my template files under html-template which are quite important!
I have an AIR project and a web project that references the src directory inside the AIR project. Usually I close one project while working on the other.
FYI: Currently my backup solution is Windows Home Server which means I have to go home to find a file if its lost in some other fashion and not in history. Yes I do plan to rectify that!
Under Local History you can find the previous versions of your files, after you modified it.
Didn't you set this folder as the output folder for compiling? Then eclipse could clear the files during build.
I suspect it is an external application that is deleting or moving your files. Eclipse's local history simply keeps of copy of your files for quick reverting later.
I suggest trying using a different IDE for a while like NetBeans, and see if the files are still being deleted. Eclipse probably isn't the suspect, as those files would be in local history even if they were not deleted.
I am trying to fix an issue like this myself, I find that when I look into files that have been deleted with another text editor like GEdit, they look like they have been corrupted. I hadn't previously noticed that eclipse kept them in local history, thank you for that. I had been using gitHub for backups before and restoring from that.
If I find that switching to another IDE fixes it, or any other info, I will update this post.