I was using Microstrategy web and looking for a solution to change the images dynamically as per the data selected/filtered. E.g. I created a document and have tried to link photos available on a shared path. Now what I want to do is if the user id is filtered from the data, I want to show the image of user along with the relevant user data. Kindly advise if it can be achieved in Microstrategy.
TIA
Yes, I fixed it by adding the custom unique URLs which can be done hosting a normal http server i.e. using python python -m http. server port. Some other available http servers like WAMP/LAMP can also be used for this purpose.
Related
I'm wondering if it's possible to configure field edtiable state (and other associated view layout information) via code, rather than via the Strapi Web UI?
e.g. In Strapi you can customise a view, and these settings are written to the core_store database table into a json object keyed as plugin_content_manager_configuration_content_types::application::video.video
When making this change via the web UI, no code is changed on the filesystem. So it's all in the database.
We're hoping to configure some of these settings via code, especially controlling if a field is editable or not.
Is this possible?
When the app starts the browser makes a request to http://localhost:1337/content-manager/content-types/application::video.video (for the video content type) and this returns some metadatas such as:
I've poked around in the node_modules/strapi-plugin-content-manager/ to try see if there's a way to modify this data but I'm in over my head.
Any pointers appreciated, thanks!
I’m not sure what you need, but here are some links to strapi documentation, which gives examples to change default behavior.
Content editor:
https://strapi.io/documentation/3.0.0-beta.x/guides/slug.html#configure-the-layout-for-the-content-editor
https://strapi.io/documentation/3.0.0-beta.x/guides/custom-admin.html#introduction
Custom data response:
https://strapi.io/documentation/3.0.0-beta.x/guides/custom-data-response.html
I believe you can customize strapi a lot, it just might take some time to understand the system.
I searched a lot about this topics. Maybe I wasn't in the right way or proper way.
So my question is: how I can change url from example.com/username to username.example.com?
Can I do this using Laravel?
Basically you have to create a subdomain first - username.example.com.
Now to point username.example.com to example.com/username you have two options -
configure virtual host (can be done at web server - see this for apache server)
or
Some DNS servers give you an iframe. Basically this means that for any domain name (like username.example.com) they will give you an iframe, and you can configure the iframe to point to example.com/username. This configuration will have to be done at DNS server's portal.
Use only one of the above mentioned options, I would recommend option 1 over
option 2.
Also see the following related question -
Show other domain using DNS instead of iframe
I'm building my first ever website using laravel 5.2. Right now, I'm only serving static content with a few API requests for things like the current weather. I've never built a website before, but I'm running my own droplet at DO, so there's no shared hosting limitations.
How would I implement a search that allows users to search my site's content from the main screen? Currently there's no interaction on a DB, it's all just Blade/HTML. I want to avoid using Google Custom Search as there should be no ads, and I want to learn along the way.
Please advise.
It depend on the amount of static contents you have in your site. Maybe you could try implementing it the following way.
Create lookup of the views pages with the most relevant keywords
When user search for keyword which match to any of my relevant keywords, I would load the respective view page.
I would store the the lookup in json format. It would be similar to contents with multiple tags on them.
Here, creating json file is going to be tedious and needs to be done manually.
I'm using the high performance image serving feature in App Engine to serve up images from the blobstore. However, I'd like users to be able to modify those images (e.g. rotate, crop etc.) and then write those change back to the blobstore, overwriting the original blob. I know I can write to new blobs in the blobstore, as documented here: http://code.google.com/appengine/docs/python/blobstore/overview.html#Writing_Files_to_the_Blobstore
but I don't see a way to overwrite existing blobs. Is this possible in App Engine?
My use case is as follows:
User uploads image, and app engine generates a link via
get_serving_url
The user may then use that link outside of my app, e.g. link to it
on their blog to display the image
If that image is changed later on in my app (rotation, etc.) , I'd
like their image link to reflect those changes
Files stored in blobstore are immutable, once they have been written than can not be changed (only served or deleted).
I think you should try to build your own controller for generate file serving url
- In Datastore each blobFile record have own ID (you manage it) and version ID
- for first upload , set new ID and version
- When user change your image, save new blobstore, keep ID and set new version field
In serving controller generate link by iD, when user call it, get the newest version for serving
It's just my opinion, hope it helpful !
I'm trying to find a way of finding out who is downloading what image from an image gallery. Users can download using a button beside the thumbnail or right click and use the "save link as" Is it possible to relate a user session or ID to a "save link as" action from all browsers using either PHP or JavaScript.
Yes, my preferred way of doing this would be via PHP. You'd have to set up a script which would load up the file and send it to the user browser. This script would also be able to log the download somewhere (e.g. your database).
For example - in very rough pseudo-code:
download.php
$file = $_GET['file'];
updateFileCount($file);
header('Content-Type: image/jpeg');
sendFile($file);
Then, you just have your download link point to download.php instead of the actual file. (Note that updateFileCount and sendFile are functions that you would have to provide, of course - this script is an example of a download script which you could use)
Note: I highly recommend avoiding the use of $_GET['file'] to get the whole filename - malicious users could use it to retrieve sensitive files from your web server. But the safe use of PHP downloads is a topic for another question.
You need a gateway script, like ImageDownload.php?picture=me.jpg, or something like that.
That page whould return the image bytes, as well as logging that the image is downloaded.
Because the images being saved are on their computer locally there would be no way to get that kind of information as they have already retrieved the image from your system. Even with javascript the best I know that you could do is to log each time a user presses the second mousebutton using some kind of ajax'y stuff.
I don't really like the idea, but if you wanted to log everytime someone downloaded an image you could host the images inside a flash or java app that made it a requirement to click a download image button. That way the only way for them to get the image without doing that would be to either capture packets as they came into their side or take a screenshot.
Your server access logs should already have the request for the non-thumbnailed version of the file, so you just need to modify the log format to include the sessionid, which I presume you can map back to a user.
I agree strongly with the suggestion put forward by Phill Sacre. For what you are looking for this is the way to go.
It also has the benefit of being potentially able to keep the tracked files out of the direct web path so that they can't be direct linked to.
I use this method in a client site where the images are paid content so must be restricted access.