How to programmatically find an image's id from its name in Roblox? - roblox

I would like to get the image id for the images I have imported in to my game based on their names (e. g. image/foo). I was wondering whether there was a way to programmatically get the image's ids. I know I could manually do this, but this is massively inefficient seeing as I have over 100 images that I need to get the ids of (and I will need to do many more in the future).
I was hoping there would be some kind of method to return the id, like getAssetIdFromName("image/foo") but it doesn't seem like there is. Is there any other way to do this?

Related

Getting more information from form choices

I'm not sure if this is the right place to ask this. But I work for a large design company and the way we receive work is through a request form in Adobe Workfront.
We would like to have a spreadsheet that gets populated with all of the info from the choice they made ie: if they selected a social media graphic for twitter, we would like there to be an output of the correct aspect ratio, whether we use our logo on that graphic, and whether we include text (if yes what would that be?).
Is there a good way of going about doing this? And if I am in the wrong place, where would I be able to get a good answer?
Thanks for the help!

How to to reuse content between two DITA maps and keep the folder structure

I am using Oxygen XML Author and I have two maps that have a lot of similar content. Right now, the content is not reused, but it would be great to make it reusable. The maps are called InstallGuide.ditamap and AdminGuide.ditamap they are stored on the disk with the following hierarchy:
common/
InstallGuide.ditamap
Product/
ProductFeatures/
MainProduct/
AdminGuide.ditamap
Is there a way to put a new parent map to disk root and include my other two maps in it and make content reusable? Right now if I try, the maps are included, but only as non-editable references so I can't set up any reuse and can't set profiling attributes.
Why do I need profiling?
Since the maps are two different documents I want to be able to profile them from the parent map. But I want to also be able to reuse content from one map to another. Moreover, I would want to keep the folder structure unchanged. Is that possible?
I can't get my head around the solution for my "wants". Maybe someone can propose a better way to achieve the goal, I would appreciate that.

Is there a way to permanently add a box displaying points of students in the navbar

So I am working on a project that awards points to students for submitting assignments or participating in forums, these points are then exposed as an Http resource using Flask.
The points are calculated by looking at the events triggered for each student.
One of the requirements right now is to add a box next to the student's name that shows the total amount of points they have. I have two ways of accessing the points, either by an http request from moodle or by storing and retrieving the points from moodle's database.
My question is what is the best approach of creating this "box", I have tried using moodle blocks and hacking the code but nothing seems to be working. Is creating a plugin for this the only solution or is there a simpler way to do it (if it is even possible)?
To answer your question properly you should have provided at least the theme and the Moodle version you work with. Should this box be displayed everywhere? Is the score calculated for every course individually?
Two proposals that came into my mind:
You could create a custom plugin of type block. There you can display the score of the user of the session and the top ten for example (If the score is calculated for each course individually). A disadvantage is that every teacher of a course could remove that block easily, if he or she wants to.
If the score counts system-wide you could put that box at the start page of your Moodle website, where only people with higher rights will be able to remove it.
If you use boost you could display the score in the navbar right next to the users name. For that you will have to create a new child theme of boost and overwrite navbar.mustache of theme_boost which get's it's information from columns2.php because it's included into columns2.mustache. In this PHP file you can include your logic and display it with the HTML which you put into navbar.mustache.
Of course these are not really simple ways to do that. But at the moment I doubt that an easy solution exists for this problem.

No release date for GET /artist/[id]/albums?

In the context of showing all albums of a given artist, as returned by e.g.
http://api.deezer.com/artist/13/albums,
..I would assume it's a pretty common use case to want to sort the albums in discographical order (i.e. by release date) for display.
Yet, I haven't found a way to do that, as the release_date property seems to only be available when requesting a single album, and I haven't found a way to affect the sort order in the response.
Am I missing something?
Any help with this is much appreciated! Thx.
I don't think there is a possiblity to do this straight forward at the moment, maybe you can file a request at Deezer's side.
You can get a list of all albums for an artist, open the details for each album individually (album/albumid), add them to a list which you can then sort on release date.
Seems like a bit of a hassle for something that will probably be a quick job on Deezer's side, but if you really need it, that's the way at the moment.
We just added the release_date property on the endpoint /artist/[id]/albums.
Jimmy

What kind of chart has a count of objects?

I was trying to figure out how to make a chart like this but can't seem to find any information. I can't even find a name for this type of chart to Google it.
Does anyone know what these type of charts are called?
This is actually a little different that what I normally see. This is more of a percentage while most represent a certain number of people (one person = 100,000 people)
Here's a better example. I want to try to make something like this programmatically so it can be populated by data.
This is less of a chart and more of an Infographic. It's used to visual display facts or statistics in a friendly and accessible manner. There are plenty of tools on-line that can help you make one of these, but generally they're made custom by graphic designers using image processing tools such as Adobe Illustrator or Inkscape (free).