SharpDX - AssetNotFoundException - sharpdx

Sorry to raise this question again as I see it has been asked a few times however the solutions have not helped me.
The code I am trying to get to work is one of the sample examples, desktop version of SpriteBatchAndFont https://github.com/sharpdx/SharpDX-Samples/tree/master/Toolkit/WindowsDesktop/SpriteBatchAndFont
My particular problem is that font Arial16.xml and the balls.dds image raise the AssetNotFoundException.
From previous posts I have noted and checked the set up of a relative directory for loading contents - Content.RootDirectory = "Content"; and checked that the font and the image are in that named dir. Further I have noted and checked that the Build Action is set to ToolkitFont and ToolkitTexture for the font and texture respectively.
I have also read that the project may need to be in the %Documents% folder (do not understand why that would be, but tested it anyway) and also that the Contents folder may not have the required Windows permissions.
It may well be something simple that I am not aware of but I have been at this for a few days and have now run out of ideas and googling ability. I would be grateful for any help or pointers. Thanks.

I wasted hours triying to figure it out, as all official examples and tutorials on web doesn't mention that.
Changing directory to Content.RootDirectory = #"\Content"; finally worked for me.

Related

Jenkins Gradle failure with Could not write cache value to '/home/bldadm/.gradle/daemon/4.8/registry.bin'

I saw some previous posted questions and their possible answers like Error:Could not read cache value from '/Users/gsp/.gradle/daemon/2.10/registry.bin' but even after deleting the folder 4.8 and rebuild and sync still getting the same error, I don't know what else the problem could be. any hint for help is appreciated. My error is could not write not could not read not even sure if deleting the version folder was a solution in the first place.
Just in case anyone have the same issue, I found out the problem was I can't write on the bldadm, I just have to fill it up which I don't have the right to do, then after discussing the issue with one of our cloud engineers they said The home dir needs to be increased, and they did which solved the issue,
There is another option.
you can delete the daemon directory that under .gradle (in my case I changed her name).
this is how it work for me.

Changing Bitnami Open edX Logo

I'm new to Bitnami and Open edX and I'm having trouble changing the logo. I'm new at this and was experimenting with adopting the red-theme that comes with it and changing preexisting values for styling (which I did successfully). However, I am unable to change the logo without the site crashing and giving a 500 error after about a minute or so.
This happened when I replaced ~/apps/edx/var/staticfiles/red-theme/images/logo.3364725269f9.png with my own, with the same filename. It's odd, because it works for about a minute or two and looks perfect. But, when I refresh about 3 minutes later, the site doesn't load. I also tried replacing the logos in ~/apps/edx/var/staticfiles/images as well as ~/apps/edx/edx-platform/themes/red-theme/lms/static/images, but nothing has worked.
Lastly, I've tried following the directions here:
https://stackoverflow.com/questions/32900783/open-edx-update-logo
https://community.bitnami.com/t/trying-to-add-organization-logo/41865
https://community.bitnami.com/t/changing-the-open-edx-organization-logo/50790
but to no avail. Each time I change it, I have been recompiling the assets, just to make sure.
Also, this is my first stackoverflow post ever, so please let me know ways I could improve my questions; I'd really appreciate it! Thanks!
Bitnami developer here,
If you access your /opt/bitnami/apache2/logs/error_log file you should see an error like:
The name 'red-theme/images/logo.png' could not be hashed with ...
I was able to make it work by substituting both /opt/bitnami/apps/edx/var/staticfiles/red-theme/images/logo.3364725269f9.png and /opt/bitnami/apps/edx/var/staticfiles/red-theme/images/logo.png, and then update LMS assets by running:
sudo /opt/bitnami/apps/edx/bin/edxapp-update-assets-lms
I hope it helps

How do I customize the banner/header image of Hyrax/Samvera?

I'm a web developer, trying to get my bearings with the Samvera-based application known as Hyrax. I'm using version 2.1.0.rc3. I have done some devops-type stuff with Hyrax so far, I have an app running on AWS and can deploy new code to that stack via Capistrano... but I'm tired of looking at the default header image... time to move in... however, I'm stuck. I've tried searching for terms like image-masthead in the application code, but so far, no luck. I have a suspicion this is a frequently asked question, so I'd accept as an answer just a link to a howto. But... in my searching for an answer I have not yet found such a document. So, I'm turning to Stack Overflow. Help?
In your local application, search the config/initializers/hyrax.rb file for the string config.banner_image and try uncommenting it (and altering the URL to a custom image) and restart your rails server.

How to get Swagger UI to work based on documentation guide? (even the example)

I am trying to use Swagger UI to document our node.js API, so I went to http://swagger.io/docs/, down to Swagger UI Documentation -> Usage, to find this
Now, this is not the only place that provides these instructions, there are dozens of blogs & tutorials saying the same thing, so that's exactly what I did.
Cloned the repo, went into /dist/ and ran the /dist/index.html and all I get is an empty page with an error:
I'm slowly going crazy now as I can't find anything about it and literally every place I looked just has the same, copied, instructions with nothing else provided (like what could go wrong? you just open a file...)
Any help or explanations are much appreciated!
P.S. for some reason opening the /public/index.html works (mentioned nowhere on the www)
I think this is bug in new version of swagger-UI. This is fresh release and they are still modifying and fixing bugs.
Look here: Swagger-ui cannot access JS scripts. This seems to be similar problem, maybe it will help you.

How to configure JIRA_HOME?

How to configure JIRA_HOME? I'm getting an error:
Configured jira.home '/Users/codedroid/Downloads/atlassian-jira-5.1-standalone' must not be a parent directory of the webapp servlet path '/Users/codedroid/Downloads/atlassian-jira-5.1-standalone/atlassian-jira'
Changed it and now I get this:
Configured jira.home '/Users/codedroid/Downloads/atlassian-jira-5.1-standalone/atlassian-jira' must not be the same as the webapp servlet path '/Users/codedroid/Downloads/atlassian-jira-5.1-standalone/atlassian-jira'
Have a look in here, if you're still having troubles please write what did you set JIRA_HOME to be and where did you defined it, thanks.
EDIT
Yea, that documentation is more of 'how to' instead of 'what'. A better explanation of what the JIRA_HOME should be is writen in more details here.
Anyway, if you feel that the documentation are confusing or just bad, you could do everyone a favour and write it at the bottom of the page, under comments, so other could see it easily.
The JIRA documentation does NOT! make it clear even to a seasoned programmer that this JIRA_HOME directory is referring to a data directory and not the installation directory. If there are any JIRA folks out there please fix this outragious misunderstanding in your documentation. JAVA_HOME refers to you guessed it the installation location of java. Its called a 'convention' if you want to invent some other meaning please say so it your documentation and don't wast valuable developer time on installing your productivity tool. Think its not a problem? Google 'must not be the same as the webapp servlet path' and see what you get back. Thanks for wasting my afternoon, and no doubt the time of many others.
(warning) However, avoid locating the JIRA Home Directory inside the JIRA Installation Directory.
This appears in only documentation point and is not the first place people look as noted above
Just create a folder named JIRA, then set the environment variable JIRA_HOME as D:\JIRA, as well as the application properties file.
# jira-application.properties
jira.home = D:\\JIRA
Don't be confused with the JAVA_HOME, JIRA_HOME has absolutely nothing to do with the folder of your zip ball downloaded from official website.
JIRA_HOME is an empty folder where JIRA will create everything it needs in a RUNTIME.
It is NOT a folder where your unpacked JIRA distribution resides.
P.S. yes it is confusing still in 2021

Resources