How to update composer in windows? - composer-php

When I tried to update composer using "composer self-update" command in windows 10, An error is occurringenter image description here.

The error says Access is denied on renaming a composer .phar file.
Try to setup write permissions on the file that is trying to be renamed.
See https://answers.microsoft.com/en-us/windows/forum/all/getting-access-denied-error-when-trying-to-rename/5c3788de-34e2-4516-8193-4eb831c3c489.
Step 1: Right-click on the file or folder you want to take ownership
of and click on Properties > Security tab.
Step 2: Click the Advanced button and click on Change link next to the
Owner label.
Step 3: In the Select User or Group window, type your user account in
the area which says Enter the object name to select and click OK.
Step 4: Also, to change the owner of all subfolders and files inside
the folder, select the check box Replace owner on subcontainers and
objects in the Advanced Security Settings window and click OK to
change the ownership.
Step 5: Click the Add button under Permission Entry window and click
Select a principal and select your account and set permissions to Full
control and click OK.
Step 6: Then, check box the option Replace all existing inheritable
permissions on all descendants with inheritable permissions from this
object in the Advanced Security Settings window.
Step 7: Click on Apply > OK > Restart the computer once for the
changes to take effect, and check for the issue.

Related

Is there a way to change the name of the folder in "users"?

I wanted to change the name of the folder (C:\Users\user1) to something else but it was not showing the option when right clicked. is there a way to get pass this feature?
I tried right clicking and other common ways to rename the folder but it didn't show the option to rename the folder.
Yes you can edit the folders in the user folder utilizing the registry editor. Sign out of the user account containing the folder you want to rename and log onto a different admin account.
Press Win + R, type regedit and click okay to open the registry editor
From there navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
You should see a number of folders starting with "S-1-5-21..." if you click on one you'll see a number of keys. One of which is ProfileImagePath which shows your user folder. Find which "S-1-5-21..." folder has the user folder you want to modify.
Right click on ProfileImagePath, click "Modify", and type the name you want for the folder.
Now go to C:\Users and rename your old folder to the one you typed in the registry editor. And you should be good to go!

Open folder as project in PhpStorm

When I install PhpStorm from JetBrains Toolbox app I do not have an option to open folders as project when right clicking
Sadly JetBrains Toolbox App does not provide such functionality. Only standalone installer has an option to make them right now. You will have to either use that... or create such entries manually.
https://youtrack.jetbrains.com/issue/TBX-2478 -- watch this ticket (star/vote/comment) to get notified with any progress.
To add an entry to the Windows Explorer's right-click menu:
you can use FileTypesMan by NirSoft or a similar tool.
or create such entry manually, e.g. see this comment for a basic .bat file: https://youtrack.jetbrains.com/issue/IDEA-114307#comment=27-2125363 (at very least it lists Registry keys where to create such an entry).
I found this from Jet Brains :
Click Open on the Welcome screen or select File | Open from the main menu.
In the Select Path dialog, select the directory that contains the project to open.
Drag the desired project from your file chooser right to the Open Project dialog without locating it there. The respective file in the dialog will be found automatically.
Specify whether you want to open the project in a new window, close the current project and reuse the existing window, or open the new project in the same window with the current one. Refer to the Opening multiple projects section for details.
and for the command line you could use this :
<PhpStorm> <path_to_the_project folder>
See Open files from the command line for more information.

What's "EXISTS WIN://SYSAPPID" condition in "C:\Program Files\WindowsApps" ACL?

I noticed that access rights in C:\Program Files\WindowsApps for Users have a special "condition" applied: EXISTS WIN://SYSAPPID.
I didn't find anything about ACL conditions or how I could create and utilize such kind of thing.
How can I create and utilize ACL conditions?
I had the same problem, and it wouldn't let me edit that entry to grant access to %USERS%
I followed this tutorial. It has 3 workarounds for this problem.
For me, Method 2: Changing the owner to Users worked:
Perhaps the most effective fix for this particular issue is to change
the Owner of the folder/file and to take full ownership of it. After
doing this, you should be able to edit the permissions without
encountering the ‘Access Control Entry is Corrupt‘ error.
Right-click on the folder or file that you’re having issues with and
choose Properties from the context menu.
Once you’re inside the Properties screen, select the Security tab, click on the
Advanced button associated with Permissions.
Inside the Advanced Security Settings, click on the Change button associated with the
Owner.
Inside the Select User or Group, type Users inside the text box, then click
on Check Names to verify. If the syntax is replaced correctly, click
Ok to save the changes. Then click Apply at the previous window to
make the change permanent.
Try to modify the permissions accordingly
and see if you still see the error message.

Xcode - Change Company Name and Username

I want to change this:
//
// ViewController.h
// MyApp
//
// Created by _username on 12-04-05.
// Copyright _company_name. All rights reserved.
//
And I tried:
http://macdevelopertips.com/xcode/change-company-name-in-xcode.html and it didn't work.
I also tried this:
http://iosdevelopertips.com/xcode/change-company-name-from-within-xcode-on-a-per-project-basis.html but it did not exist in Xcode 4.
I'm using Xcode 4.2
go to System preferences -> users and groups -> click on your username
On that page there should be a button saying Open... click that and change that record in your contacts. When you create a new class it should get the information from that record!
For changing author name in Xcode 6, just go to User & Groups in system preferences, right click current user (make sure permission is unlocked), select Advanced Options, change the "Full name" section.
For the User Name:
Open up the address book and go to your user account, and edit your name (the large, bold line at the top). (Address Book is by default the first app in your Applications folder.)
If you don't know which contact is your user account: Open up System Preferences. Go to Users & Groups (in the System row); your user account should already be selected. Click on the "Open..." button for the Address Book Card.
Changing your name in the Address Book won't change any already-created files; it will only affect new files that you create.
For the Company Name:
In Xcode 4, open up your project. Select the top-most item in the Project Navigator (MyProjectName, 1 target, iOS SDK 4.3 -- or whatever). Open up the file inspector (View->Utilities). In the Project Document section, you should see an "Organization" line. Edit that, and new files that you create will display the new organization name. This is a project setting, hence you'll have to do it for every project.
For new projects that you create, the Organization Name will be whatever the value was on the previously open project. (You can edit it when creating the new project.)
I know this question is quite old, but I have found a way to customize the template without changing the Full name.
It basically consists on creating a custom plist file named IDETemplateMacros.plist, creating a new key named FILEHEADER under Root and putting the header text as the value. Then, you need to copy this header to one of the following locations:
Project user data: <ProjectName>.xcodeproj/xcuserdata/[username].xcuserdatad/
Project shared data: <ProjectName>.xcodeproj/xcshareddata/IDETemplateMacros.plist
Workspace user data: <WorkspaceName>.xcworkspace/xcuserdata/[username].xcuserdatad/
Workspace shared data: <WorkspaceName>.xcworkspace/xcshareddata/
User Xcode data: `~/Library/Developer/Xcode/UserData/``
I've tried copying it to my User Xcode data folder
More information can be found here
A full list of available macros can be found here or looking at the Xcode help

TortoiseSVN right click menu gone when selecting files

Short Question
Has anyone had an issue when right clicking files (.c/.h/etc..) and the TortoiseSVN menu is not present? Note that it is there when I right click a folder in the same directory.
Failed Attempts
I have seen that a number of issues like this have been resolved by running the installer again and selecting repair or modify, at this point neither of these attempts have worked.
Is there anything else I can try to get this working again? The DIFF functionality being gone is hurting something fierce.
Edit
I am the only developer working on the files. I actually found a way to see the diff: Move the parent folder TortoiseSVN->Check for modifications. This menu does indeed show all of my versioned files as well as any of them that have been modified.
I have also confirmed that the files really still are version controlled by checking out the same repo in on a different machine.
Edit2
It is worth noting that I am using Macdrive and it's right click menu is present all the time. In addition, I just saw that I am having the same issue with TortoiseGIT as well.
Go to registry editor using regedit
Go to and click on HKEY_CLASSES_ROOT/*/​shellex/ContextMenuH​andlers/TortoiseSVN
Observe error message box saying access is denied.
Right click on the key mentioned above, go to "Permissions"...
In the permission dialog, click on "Advanced"
Click on "Owner" tab, click on your account and click "Apply"
OK the dialog
Right click on the key mentioned above, go to "Permissions"...
Grant permissions for OWNER RIGHTS to "Full Control"
Apply the changes
Source
If still not works so try to use shift key + right click.
Are you sure that these files under version control? It is possible that someone has deleted these files from svn repo and after update your these files has become unversioned.
You can check that by going one dir level up (from folder where these files are located) and choose whether Tortoise-SVN->Repo-Browser menu (check that they are present on SVN server) or SVN Commit (make sure Show unversioned files checkbox is set and check Text Status Column if it contains "non-versioned") .
Shift + Right click on the folder which you want to checkout click TortoiseSVN --> settings --> Context Menu --> uncheck the Hide menus for unversioned paths

Resources