Why does URL of gitlab readme.md section not scroll to section? - hyperlink

To reproduce:
Create a README.md file on gitlab repository.
Create some headers in the file using #, and save it.
Get the section link, e.g. scroll to the last header, and click the "link icon" beside it. The browser URL will show something like "https://.../README.md#my-last-header".
Copy this URL and paste it in a new browser tab.
It's supposed to display the file then scroll down to "my last header", but it doesn't scroll. It only displays the file at the top line of it.
Is that a bug?
How to get a URL to a section in Gitlab Reademe.md file that displays the file and scrolls to the section?
N.B. It works in github.
Thanks

The working link is got as following:
https://gitlab.com/<user>/<project>/#my-last-section
Assuming that the READEME.md is found on the project root folder directly.
Instead of the link got when opening the readme.md file:
https://gitlab.com/<user>/<project>/blob/main/README.md#my-last-section
Which either has a bug, or is designed for that!

Related

IIS not including the PDF file in build

I got a requirement to show the one PDF file on button click. I added that document to the Content folder in the MVC project and added the URL to that button. When I click on the button the PDF opens fine in my local. But When I deploy it to the DEV server, getting 404 error. So I checked the Content folder in the web server, I can't find the PDF file I added. Do I have to change any IIS settings to include that PDF in the build?
Thanks
If your issue is the same as the one documented here you'll want to follow the instructions here under "Adding MIME Types to [IIS version]" to ensure that you have pdf enabled among the supported content types.

Vaadin browserframe anchor tags

I have a HTML file in a ZIP file, which I want to be opened in a Browserframe within Vaadin. This works fine and I use a StreamRessource for that. The challange I am facing now is that I want to navigate to an anchor directly.
So the question is the following:
How can I navigate to "xyz.html#test" instead of "xyz.html" only. Setting the filename did not do the trick and I do not see another way.
Thanks!
Florian

XNA XACT Where do I place the .xap file?

I've been trying and looking on the internet for ages now, but where exactly do you place the .xap file? I've read that you should place the file in your content folder, but I have a content folder located in;
TheGame\TheGameContent\
But I also have;
TheGame\TheGame\bin\x86\Debug\Content
Which is it? If I add the .xap file to the latter it recognises it when I refresh the solution explorer, but the former does not.
However, if I add the .xap to the latter it gives an error saying it can't find it when I use the following line of code to access it;
ae = new AudioEngine(#"Content\game_content\audio\xact\Win\xna xact file.xgs");
This line apparently gets the \x86\debug path.
Any advice?
Thanks
Visual Studio, go to the Solution Explorer and right click the Content solution (i.e. "TheGameContent (Content)") or a folder in that section and select Add > Existing Item... and select the .xap file. If it isn't in there, it will copy the file into TheGame/Content, but it will also make it ready to load and work within your project.
Basically it's the same as adding an image file to an XNA project, and it will save you all that trouble you are having.

I cannot add content to Weceem through the admin screen

I got Grails CMS (Weceem) up and running. Through the admin screen I have been able to modify existing text or add new HTML pages. However I cannot add any resources folders.
When I click on New Content and select Folder and enter a folder name, checked under "Parent & Children" and it said Parent: resources(Server Directory) so I hit save. It looks like it completes but nothing is created. I refreshed the screen, expanded the resources folder and my newly created folder did not show under resources
However when I go into the actual server through ssh client I can see that the folder got created under
/root/weceem-uploads/WeceemFiles/_ROOT/resources
But yet it does not appear on the admin screen.
Anybody know why?
Thanks,
I guess I had to choose Server Directory instead of Folder. I guess it was misleading because if I choose folder it also puts it under the server directory (at least according to the Parent label under the Parent & Children section

Adding a button in django !

I wanted to add buttons or a url adjacent to "ADD CUSTOMER" button as shown in the image. Please guide me regarding the same.Where should i be making the necessary changes ?
please find the image here >> http://img138.imageshack.us/img138/170/query.png
Thank you
You add buttons/make changes in the html file, or your CSS file if you have one. If you're using Django make the changes in the /templates directory of your project, its the directory that contains the html files.
In this case what you are looking at is the admin site. The templates for this are located somewhere like "python-path/lib/site-packages/django/contrib/admin/...", but you can override these templates in your project. I'm not sure how easy it is to do what you're trying to do, but you can see this link for more information.

Resources