Accurev plugin with visual studio 2012 - accurev

Every time I log into the Accurev plugin in visual studio 2012 I have to re enter the server information. Has anyone else run into this issue?

What version of Windows are you running and what are the User Access Controls (UAC) settings for the system? Higher UAC settings will block writing to files located within the "Program Files (x86)" directory, which is where AccuRev is installed and maintains the "acclient.cnf" file. This is the file that lists which servers are available for you to login. Open this file with a text editor, add the server you login to by adding a line like the following:
SERVERS = myserver:5050
Please notice the spaces before and after the equals sign is intentional and needed. Your server name can use either the short name of the fully qualified domain name. The number after the colon is port number that AccuRev uses for establishing connections.
This file is located in the "AccuRev\bin" directory.

Related

SSH Remote access in Aptana

I have since connected to my SSH site using Putty and Filezilla. Putty and Filezilla give me direct access to the appropriate directories and Filezilla gives me a full path from the top level directory. I have then tried the same path from the starting point in Aptana, but get blocked one level above my target directory. If I collapse all the directories in Putty and Filezilla and try to expand again, Putty works fine, but Filezilla then blocs at the same point as Aptana. So there is some subtle difference in approach between Filezilla and Aptana and Putty.
I was looking for a way to get an encryted link when editing files on my hosted webserver when using Aptana Studio. I can get an ordinary Remote FTP link set up and use that to edit files. The SSH facility looked as though it could do a secure link, so got the SSH details off my ISP and set up in Studio. In the setup I was asked to select a directory, but the ones available were all system directories rather than my htdocs tree. However by leaving out the default provided /, I could get to the htdocs tree and see all my files under remote. However when I try to load a file to Studio, I get a file does not exist message.
I'm new to SSH (and Studio) and don't know whether what I am trying to do is not possible or there is something else I need to set up. So far I have just been using Studio as a remote editor for PHP and HTML. I suspect there is a much better and professional way to set up what I am doing under Studio (even ignoring the secure transfer) as I am currently doing separate backup of the files in Filezilla, but just haven't figured out the way to set everything up yet.
Many thanks for any help.
Actually I'd like to post this as a comment to your question, but I'm pretty new here, so the system doesn't allow me to.
Anyway. You can add connections to remote servers over ssh like this:
If you don't have the remote tab go to Window -> Show View -> Remote
Rightclick in the remote tab and click "Add New FTP Site..."
Change the Protocol to SFTP and put in your credentials (you can use Username/Password or Username/Private Key authentification)
When you close Aptana with files still opened, it usually show you those files when you reopen Aptana later. It seams not to do this when you work with files of a SFTP remote host and shows you an error instead. I guess this is because it tries to validate those files (if they still exists) but doesn't authenticate with the remote host first. So nothing to worry there.
Hope this helps.

Protecting information after installer VB 2012

When in make Installer on my project in Visual Basic 2012. I'm using InstallShield - and filed that i need to create the program are only "Debug or Realese" Folder. But there are files "program.exe.config" files. Everyone can open it if he has VB or program that can open VB 2012 files. In those files there is an information about connection to server that program makes. So they have my server name and mine user/password that gives access to mine sql server. Can i make the line with server information crypted and it still workes to avoid - changing server/logging into my server.
Or how can i block the files while i'm making the installer. - So they could not open them.
Store encrypted password and username in config file. And decrypt them inside code right before connection. This should make the trick.
Make the same with server name if you'd like to.

SQL Server Management Studio Express 2012 - Can't access documents folder

I'm trying to use SQL Server Management Studio to access my Visual Studio database which is saved in my documents folder. When I paste my path into the Attach database dialog, I get this error:
TITLE: Locate Database Files - LAPTOP\SQLEXPRESS
------------------------------
C:\Users\Flaxbeard\Documents\Visual Studio 2012\Projects\Contacts\Contacts
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.
If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.
And if I navigate manually to C:\Users\Flaxbeard, nothing shows up on the right. What is my issue?
Try putting the directory in quotation marks

VB.Net 2005 Setup Project Application Data Folder no Content

Under VB.Net 2005, I created a Setup Project which produced installation files for a windows application. I placed the mdb file in the User's Application Data Folder and remapped the DataDirectory to Environment.SpecialFolder.ApplicationData at runtime. Unfortunately, sometimes the system just did create the mdb file at the Application Directory. An example was that I installed the program in Windows 7 under a normal user account. I chose inside the installer that the program would be made available to everyone. After installation, the mdb file would be created automatically for the Administrator account but not for the normal user account. For XP, the whole thing worked fine.
I am tempted to write a routine to check and create the mdb file if it is not present, but why does this happens and what other opinions do I have?
If the application is installed for all users instead of once for each user that logs onto the machine, then you will eventually run into a problem where the database isn't available for the signed on user.
In order to resolve this, you would probably be better off checking for the existence of the database on application startup and then either copying a standard version from the application directory to the current user's data directory or creating a new db from scratch in place. I would recommend the first approach.

Windows Server 2008 - change security settings for multiple files at once

On Windows Server 2008, is there an easy way to modify security permissions for multiple files at once (as with Windows Server 2003)? Right-click - properties does not provide a "Security" tab if more than one file/directory is selected (i.e. ctrl-click multiple files).
As well, short of making registry changes, is there a way to edit files in notepad without having to open up notepad as an administrator? As it is, because of UAC you must open Notepad as an admin and then open the file you wish to edit (otherwise, cannot save).
UPDATE: Moved to https://serverfault.com/questions/30991/windows-server-2008-change-security-settings-for-multiple-files-at-once
ANSWER TO PART B: "As for editing the files: if you give regular (non-admin) users write permissions to the files, you don't have to run notepad as admin." Thanks #Martin v. Löwis
As always, there is cacls.exe (or xcacls) to change the ACLs for multiple files. Dunno whether you would call that "easy".
As for editing the files: if you give regular (non-admin) users write permissions to the files, you don't have to run notepad as admin.