Skip to content

Commit fbd1884

Browse files
committed
Merge branch 'Content/Pointers' of https://github.com/JDSherbert/Programming_HandBook into Content/Pointers
2 parents e4349dd + 21bc6a0 commit fbd1884

17 files changed

Lines changed: 211 additions & 5 deletions

404.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: default
3+
title: 404
4+
permalink: /404.html
5+
nav_exclude: true
6+
search_exclude: true
7+
---
8+
9+
<h1>404 - Page Not Found</h1>
10+
11+
<p>The page/content requested could not be found. Please check the URL or use the navigation menu to find what you're looking for.</p>
12+
13+
<p><a href="/Programming_HandBook/">Go back to the home page</a></p>

_includes/components/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% if site.back_to_top %}
55
<p>
6-
<a href="#top" id="back-to-top">Back to Top</a>
6+
<a href="" id="back-to-top">Back to Top</a>
77
</p>
88
{% endif %}
99

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="search" role="search">
2+
<div class="search-input-wrap">
3+
<input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search" aria-label="Search" autocomplete="off">
4+
<label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label>
5+
</div>
6+
<div id="search-results" class="search-results"></div>
7+
</div>

_includes/components/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{ nav_footer_custom }}
2727
{% else %}
2828
<footer class="site-footer">
29-
Content Produced by <a href="https://github.com/VerzatileDev">VerzatileDev</a> & <a href="https://github.com/JDSherbert">JDSherbert</a>
29+
An Open source project hosted at: <a href="https://github.com/VerzatileDevOrg/Programming_HandBook">Programming Handbook</a>
3030
</footer>
3131
{% endif %}
3232
</div>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
layout: default
3+
title: Change Project Name
4+
nav_order: 1
5+
parent: Visual Studio
6+
grand_parent: IDE
7+
has_children: false
8+
---
9+
10+
{{ page.title }}
11+
======================
12+
13+
14+
## Introduction:
15+
16+
This documentation outlines the steps to rename a project within a Visual Studio solution. Please follow the provided instructions carefully to ensure a successful project renaming process.
17+
18+
## Steps:
19+
20+
1. **Open Project Solution:**
21+
- Open your project solution by accessing the corresponding SLN file with the repository folder.
22+
23+
2. **Locate Files:**
24+
- When inside the solution of `Visual studio``, identify the following two files within your solution directory:
25+
- The top file is the Solution name (e.g., `YourProjectName.sln`, currently displayed as "Solution "name" (1 of 1 Project)").
26+
- The bottom file is the Project name (e.g., `YourProjectName.vcxproj`).
27+
28+
As an Example Path:
29+
30+
-> Solution Name -> Project Name -> Files
31+
32+
<img src="{{ site.baseurl }}/images/VisualStudioImages/SolutionDirectory.png" alt="Solution Directory" style="width:50%;">
33+
34+
3. **File Name Adjustment:**
35+
- Change the name of the bottom file (Project name) to match the name of the top file (Solution name).
36+
- Ensure both files have the same name.
37+
38+
4. **Avoid Closing the Application:**
39+
- It is crucial not to close the application during this process to prevent any potential issues.
40+
41+
5. **Explore Project Location:**
42+
- Open your project location folder and observe the files.
43+
- Note that only the `.sln` file is likely to be changed at this point.
44+
45+
<img src="{{ site.baseurl }}/images/VisualStudioImages/OpenFolderInFileExplorer.png" alt="Open Folder In FileExplorer" style="width:50%;">
46+
47+
<img src="{{ site.baseurl }}/images/VisualStudioImages/ProjectFolderFilters.png" alt="Project Filters In FileExplorer" style="width:80%;">
48+
49+
6. **Modify SLN File with Notepad:**
50+
- Open the `.sln` file using Notepad.
51+
- Locate and update the names in the designated areas to your desired values.
52+
53+
<img src="{{ site.baseurl }}/images/VisualStudioImages/SLNFile.png" alt="SLN File in NotePad" style="width:90%;">
54+
55+
7. **Edit vcxproj File:**
56+
- Open the `.vcxproj` file with Notepad.
57+
- Locate the section containing the project name and ensure it matches the new name.
58+
59+
<img src="{{ site.baseurl }}/images/VisualStudioImages/vcxprojFile.png" alt="vcxproj File in NotePad" style="width:80%;">
60+
61+
8. **Re-Scan Solution:**
62+
- Open your `.sln` file and reload the solution to apply the changes.
63+
64+
<img src="{{ site.baseurl }}/images/VisualStudioImages/RescanSolution.png" alt="Rescan solution In Visual Studio" style="width:30%;">
65+
66+
9. **Adjust Filters:**
67+
- After reloading, default `filters`, may be removed.
68+
- Create new filters named "Header Files," "Resource Files," and "Source Files."
69+
70+
<img src="{{ site.baseurl }}/images/VisualStudioImages/ProjectFilters.png" alt="Project Filters In Visual Studio" style="width:30%;">
71+
72+
10. **Organize Elements:**
73+
- Transfer each project element into the appropriate filter.
74+
- Add each filter along with its corresponding file.
75+
76+
11. **Temporary File Creation:**
77+
- If necessary, create a temporary text file to facilitate the addition of filters.
78+
79+
12. **Update vcxproj.filters:**
80+
- Open the newly created file and copy its contents into `vcxproj.filters`.
81+
- Save the changes.
82+
83+
<img src="{{ site.baseurl }}/images/VisualStudioImages/CopyOldFilterToNewFilter.png" alt="Copy old Filter to new Filter In Visual Studio" style="width:60%;">
84+
85+
13. **Delete Unneeded Files:**
86+
- Delete the unnecessary `.filter` file.
87+
- Repeat the same step for the .user file, copying its data into vcxproj.user.
88+
89+
14. **Review Changes:**
90+
- Verify changes in file statuses (red for removed, green for added, yellow for changed).
91+
92+
15. **Close and Re-Open Solution:**
93+
- Close the solution and reopen it to ensure that everything functions as expected.
94+
95+
16. **Test Functionality:**
96+
- Verify that the project works correctly.
97+
- If any issues arise, repeat steps from 5 onwards until the process is completed accurately.
98+
99+
By following these steps, you should have successfully renamed your project within the Visual Studio solution, and the solution name should be displayed as "Solution `name` (1 of 1 Project)."
100+
101+
102+
---
103+
104+
#### Author: VerzatileDev
105+
#### Published: 22/12/2023

docs/IDE/VisualStudio/VisualStudio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Visual Studio
44
nav_order: 1
55
parent: IDE
6-
has_children: false
6+
has_children: true
77
---
88

99
{{ page.title }}

docs/Language/C++/Pointers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ int main()
3939
// Value using raw pointer: 69
4040
```
4141

42+
4243
---
4344

4445
#### Author: JDSherbert
45-
#### Published: 20/12/2023
46+
#### Published: 20/12/2023

docs/VersionControl/Git/Github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Github
44
nav_order: 1
55
parent: Version Control
6-
has_children: false
6+
has_children: true
77
---
88

99
{{ page.title }}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
layout: default
3+
title: Transfer Enterprise to Personal Github
4+
nav_order: 1
5+
parent: Github
6+
grand_parent: Version Control
7+
has_children: false
8+
---
9+
10+
{{ page.title }}
11+
======================
12+
13+
## Introduction
14+
15+
Transferring a GitHub Enterprise repository in 2023 can be accomplished through two distinct methods. This documentation outlines these methods—one utilizing GitHub's web interface entirely, and the other involving local machine command-line operations.
16+
17+
### Method 1: GitHub Import Code
18+
19+
This method involves utilizing GitHub's web interface to seamlessly transfer your GitHub Enterprise repository.
20+
21+
1. **Create a New Repository in Personal GitHub Account:**
22+
- Log in to your Personal GitHub account.
23+
- Create a new repository and keep it empty with no Git ignore or readme files.
24+
- Set the repository visibility to public.
25+
26+
2. **Access "Import Code" Feature:**
27+
- On the empty project page, scroll down to find the "Import Code" option.
28+
- Click on "Import Code" to initiate the transfer process.
29+
30+
3. **Enter GitHub Enterprise Repository Link:**
31+
- In the provided field, enter your GitHub Enterprise repository link (e.g., `https://enterprise.name.ac.uk/MyProject.git`).
32+
- Click "Begin Import" to commence the transfer.
33+
34+
4. **Login to GitHub Enterprise Account:**
35+
- Enter your GitHub Enterprise account credentials when prompted.
36+
37+
5. **Select Project for Import:**
38+
- A panel will display projects associated with your Enterprise URL.
39+
- Choose the specific project you want to transfer and click "Submit."
40+
41+
6. **Monitor Import Progress:**
42+
- Track the progress of the import operation.
43+
44+
7. **Completion Notification:**
45+
- Once the transfer is complete, an email notification will be sent.
46+
- The email will contain a link to your new repository page.
47+
48+
### Method 2: Local Command-Line Operation
49+
50+
For those preferring a local approach, follow these command-line steps:
51+
52+
1. **Create a New Repository in Personal GitHub Account:**
53+
- Log in to your Personal GitHub account.
54+
- Create a new repository and keep it empty with no Git ignore or readme files.
55+
- Set the repository visibility to public.
56+
57+
58+
2. **Configure Local Repository:**
59+
- In the command line, navigate to your local copy of the Enterprise repository.
60+
- Ensure it's up-to-date using `git checkout master` and `git pull origin master` (or your desired branch).
61+
62+
63+
3. **Add New Repository as Remote:**
64+
- Run the command: `git remote add public https://github.com/user/repo.git` (replace with your new repository URL).
65+
66+
67+
4. **Force Push to New Repository:**
68+
- Perform a force push to your new repository: `git push -f public`
69+
70+
By choosing between the web-based GitHub Import Code method or the local command-line approach, you can efficiently transfer your GitHub Enterprise repository, preserving contributors, issues, and project history.
71+
72+
73+
### References
74+
75+
For additional information, you may refer to the [GitHub Importer Documentation](https://docs.github.com/en/migrations/importing-source-code/using-github-importer/importing-a-repository-with-github-importer).
76+
77+
---
78+
79+
#### Author: VerzatileDev
80+
#### Published: 22/12/2023
23.1 KB
Loading

0 commit comments

Comments
 (0)