Is it possible to connect to old p4 depots after a system format? - version-control

I am running a local p4 server for personal usage, and I had to re-install windows on my machine recently which erased all my data. Now I tried to re-install perforce in the same machine after the format, but it doesn't connect to my old p4 depots anymore and it is asking me to create new depots. So is there a way I can connect to my old p4 depots?
my details such as my systemname, IP, Email should be same as they were before the windows re-install
sorry I am a bit new to all these version control software
I appreciate the help!
Thanks!

Related

How to offline install vscode-server for windows remote target

I've been able to follow similar answers for offline installing vscode-server on remote linux targets but I cannot find out how to do this for windows. On the official page for vscode-remote-ssh https://code.visualstudio.com/docs/remote/ssh, it shows that the system requirements for the remote supports Windows 10 / Server 2016/2019 (1803+) using the official OpenSSH Server. So I know it's possible I just can't seem to find the download link that vscode-remote-dev uses to download the windows version of vscode server.
The download link for linux follows this format https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable would there be a specific endpoint for server-windows? I've tried a bunch of different combinations but I could not get anything.
I'm also making the assumption that there is a different download link but it seems a very unlikely case that linux and windows share the same link.
Any help would be appreciated. I've enjoyed using this for remote dev on linux and now I've got an opportunity to use it on windows.
Instead of using server-linux-x64, server-win32-x64 should be used and it will download the correct windows version of the vscode-server.
I did find this in the comments of this question. Using "Remote SSH" in VSCode on a target machine that only allows inbound SSH connections.

Unity Perforce Integration Host Error

I'm a sole developer using Unity and my own Perforce server, and I'm having an issue using the built-in Perforce integration with Unity specifically on my Macbook Pro.
The built-in integration works flawlessly on my Windows 10 desktop, but on my Macbook Pro I get an error in Unity when I try to connect to my server.
Client 'MastersProject_Laptop' can only be used from host 'PierceMac.local'.
PierceMac.local being the hostname of my computer and MastersProject_Laptop being the p4v workspace. The issue is, despite what Unity thinks, that IS the correct hostname. I checked using "hostname" in the terminal. Furthermore, if I change the workspace hostname in p4v, p4v throws the same error. This suggests that it an issue with Unity, but I can't figure out what I'm doing wrong.
Unity version 2017.3.0f3
p4v version P4V/MACOSX1011X86_64/2017.3/1601999
MacOS version 10.13.2
If it's possible to run a p4 info command via the Unity plugin, that'll tell you what it thinks the hostname is. (Most Perforce clients call this "Server information" or something like that -- I couldn't find enough documentation on the p4 Unity plugin to figure out if it exposes that concept.) That would assist with debugging.
Assuming that the Unity environment is somehow preventing the p4 client library from finding the right hostname, you might be able to fix it by setting P4HOST:
p4 set P4HOST=PierceMac.local
That should override whatever the client is auto-detecting.

Getting error could not resolve hostname for github enterprise

When I trying to clone github repositories from my company's self hosted github enterprise
I am getting error
Could not resolve hostname github....... : Name or service not known
But when I clone the same repo using the IP address I can do the same and I am even able to ping the github..... from command line.
I am using :
GIT version : git version 2.14.1.windows.1
Windows 10 enterprise version version: 1607 OS build: 14393
I have checked others with similar machine are not facing this issue
Can someone please help me with this issue.
I would add a host entry on my windows machine that defines the github address to the IP address you need to use.
Here is one procedure that describes how it works. Basically you edit the hosts file as administrator , it is located in an out of the way dir c:\Windows\System32\Drivers\etc\hosts
(I havent done it myself for windows 10)
https://support.rackspace.com/how-to/modify-your-hosts-file/
Of course this may not be available option to you depending on your local Infosec policies/enforcement
I found the issue, so while installing Git the
installer asks if I want to use the certificates installed on my Local Machine
to which earlier said no.
But after re-installing the Git, I selected this option and since that Github's certificate was installed on my machine by my company it was working fine.

What is the best way to sync your codefiles to your remote server?

currently I am maintaining a django web application and I am using rsync via ssh to sync between my files and edits, using www-data user.
Then I reload the apache server.
I have tried git but had many problems on pushing, initiating a bare git couldn't help either.
Apart from deleted files from the source, rsync does it's job quite good.
What do you use?
Using OS: Ubuntu 10.04 LTS x64 on both server and local
I use mercurial, it's really easy to get running locally and very easy to push changes between different "servers".
you don't say what O/S you're using. I'm using Windows with tortoiseHg. I also use the VisualHg add-in for Visual Studio
When it comes to sync files between machines, I use BitTorrent Sync. Works on every major platform and it is super easy to configure. It even works for mobile devices.
Check out http://www.bittorrent.com/sync

iPhone: For integrating Code versioning thru SVN, is it necessary to upload files on a Server?

Please forgive my ignorance, but I am noob.
I have 4 Macs in my Office. I want to integrate SVN repository with XCode so that all of us can work on same project at the same time.
Is it necessary to setup SVN repository on a remote server? Can it be installed on any of these 4 Macs?
Please let me know.
No it's not necessary, but it definitely helps to avoid some nagging problems that can come up when you install the SVN server on a developer machine. For example:
Developer machine needs to be rebooted because he installed software, or ran into memory issues, or applied a patch etc etc.
Developer forgets that he is hosting the server and shuts down for the night. Meanwhile you were wanting to burn the midnite oil but don't have the latest revs.
Developer kicks power cord while you were in the middle of a commit.
Developer browses to a 'work related' site and now he's getting Russian bride pop-ups every few seconds. Frack, time for a reformat and darn if you don't gotta move the SVN server too.
... I'm sure you get the drift
SVN is pretty forgiving, and to be honest you could probably scrape by with installing it on a dev machine, but using a dedicated server is so much better.
Now, if you really want an SCM solution that Just Works, take a look at Git. XCode actually supports it natively and it's designed to work server-lessly. IMO it's a much better tool than SVN and worth dedicating some time to learn.
Good luck!
You can certainly use SVN locally with a repository that is a file on your local machine. However that's not what you want. You want to share files between computers, in which case you'll need one of the computers to be a server.
Here is a good guide for setting up svn on the mac: Subversion Server Guide Mac
The quickest option is to use a service like Beanstalk (http://beanstalkapp.com) to host the repository. Then you wont' have to mess with server setup and admin.