how can we set/change the default shape directory - tableau-api

My question is around, how can we set/change the default shape directory.
I am currently working on to set an org structure for a company. The scenario is that people keep joining the company and I want Tableau to pick a default image in the org structure instead of default available shapes (circle, square, plus, etc).
You can see the snapshot of the dashboard, where I do not have the image for resource3 and Tableau picked + automatically. P.S.: the above snapshot is sanitized and I used gender icons for the image instead.
Please help me figure out either, how to add an image as default in the default folder and location of the default folder? or how can I set a different folder as default?
This is the image that I want to set as default. Any help is appreciated.

Related

Neos Editor - Deleted Nodes reappear after page reload

I created a new Neos Instance, using the Sandstorm Neos Kickstart. After importing the content dump via ./flow site:import my.site I got some content elements which I deleted using the editor and published my changes. After a page reload I noticed that nodes were their again.
I also noticed that the outline of the elements is orange and not blue, is this the problem? And what does it mean?
Thank you!
The orange outline means, that these nodes shine through from another dimension.
Inside the kickstart package there currently is a (german) content dimension configured. However the site export uses nodes without a specific dimension, which leads to nodes shining through from "no dimension" to your dimension.
To fix this you can run ./flow site:prune and add your content dimension to the site export by replacing the self closing <dimensions/> with:
<dimensions>
<language>de</language>
</dimensions>
(You would have to do this on every node, of course!)
Afterwards you need to import the site again, to make it all work.
(I assume that this will be fixed inside the kickstart package site export, soon)

replace images and rebuild all rendered images

I've a Image (logo.jpg 800x800) uploaded in the Backend of typo3. This image is used in many different articles. I've placed the image in these articles in many different sizes, sometimes 400x400, 200x200, etc..
So typo has rendered the smaller version of the original 800x800 logo.jpg.
Now I've to replace the logo with a newer version. I thought I can use the function "replace file" in the media backend from typo3. So i used this function and replaced the logo. Now the new file logo.jpg is in the backend, but all articles show the old version.
My question is, is there another way to replace a previously used image? Or is there a way to "restart" the rendering process in typo3 for all images. It looks like, the smaller version of the image are still in the cache or something like that. But clearing the cache doesn't help.
It depends on your TYPO3 version.
prior to 6.0 (and without extension 'dam') each file was copied on each
usage. so if you have used an image 40 times this image exists in 40
copies on your server. and any change to the original (modify/delete)
would change nothing to these copies.
from these copies calculated versions are build. so further 40 images
could be stored on your server.
the copies are stored, depending on the field they are used in, beyond
/uploads/...
possible places: /uploads/pics/ /uploads/tx_myext/
the calculated images are stored beyond typo3temp.
to replace one image you need to: remove all calculated versions.
and replace all copies with the changed image.
with 6.0 FAL was introduced and images/files were not copied any longer,
but referenzes are stored. Also calculated images are stored by hash so
a resized image can be reused instead of reclculated,
It's just a problem that FAL is not working completely satisfying and a
lot of work is done to fix this for 6.2. After that a change of an file
may result in changes in every usage.

What is the best way to enable content authors to add images with captions in Expression Engine

There's a module to do this in Drupal land, but I've been frustrated with the hacks that've been necessary in Wygwam. What is the best way to go about implementing this in such a way that you don't need to totally override the default image handling in ChannelImages/Wygwam?
Assets is a good suggestion, but I believe Devdemon's channel images might be a better fit for the workflow you're suggesting.
http://www.devdemon.com/channel_images/
Clients can add (and see) a caption and more and it's fully integrated with Wygwam and other editors. Devdemon's support is also excellent.
The Assets module from Pixel & Tonic allows you to double-click on the image (or any other file) and add metadata. You then have access to the metadata in your templates.
Check the screenshot: http://pixelandtonic.com/assets
You can also add metadata using the native File Manager. Click the edit icon from the File Manager and you'll see a few fields. You can use the File Entries tag to access it.
http://expressionengine.com/user_guide/modules/file/file_tag.html
I typically use Matrix with one column for the image, one column for the caption, and if a link is needed another column for the link. This of course works best if the image is in a fixed location within your template.
On possible way to accomplish this that I have used is to run some jQuery that looks for images within a certain area, and if they have alt attributes, rewrite the image tag within a tag with a tag inside.
so:
jQuery(document).ready(function() {
$('#page-content > .wrapper img').each(function(){
if($(this).attr('alt') !== undefined && $(this).attr('alt').length > 0){
if(!$(this).parent().hasClass('content-image')){
$(this).replaceWith("<figure class='content-image "+$(this).attr('class')+"'>"+$($('<div></div>').html($(this).clone().attr('class',''))).html()+"<figcaption>"+$(this).attr('alt')+"</figcaption></figure>");
}
}
});
});
will do just that. It's looking within a #page-content div for img tags with alt attributes. And then rewriting it as
<figure><img src='....' .... /><figcaption>This is the text that was in the alt attribute</figcaption></figure>
Soooo, that kinda works. The only caveat is that you had better not use any double-quotes within your alt text, or it will break thangs. Not the cleanest of solutions, but a solution, nonetheless.

Change color in SQlite based application

let me explain this clearly: i'm decide to learn about how to store my data with SQLite, and i decide to download sample code and examine it.
So, i have a .csv file with data, when my program launch, first thing user see is rows of elements. (Its like when you enter "Contacts" in your iPhone, just rows with names on it). When user tap an element, next view display data about it (not really matter what data is, there is a xib controller and its easy to manage).
My question is - how to change color of rows? I don't want it to be "standard white" color, maybe some color i want to import (or default colors, but not just white).
This sqlite3 file was created using .csv file, sqlite command tab (terminal), and python. Then imported to application in Xcode.
Please help me!
Color display is controlled by your "sample code". If you really want to change the colors you'll need to ask more specifically in case someone else has seen it. To do it yourself, you need to dig into the source (or in its documentation), find where and how it sets the colors, and change it. A possible short-cut would be to search for common color names using an all-file search (if your IDE offers it, or using grep if you're developing on linux/osx). This might lead you to the places where colors are defined.
But if your goal is to learn SQL, my advice would be not to waste your time on the application. Ignore the ugly colors and move on to a different environment as soon as you get the chance.

SugarCRM 6.2 - Adding a custom field in user profile

Yeah. As the title says, I am tasked with creating custom field in user profile, and sort of hit a wall on this one. It is a very small customisation, add a yearly_target field to user edit and detail view.
I was happy to stumble on this article to add a custom field in sugar.
Although it's a huge help, it seems to be missing one or 2 minor points.
To have the fields show in edit and detail views, one apparently needs to create and edits EditView.php and EditView.tpl and DetailView.php and DetailView.tpl, except I am not too sure where these files go. The yearly target field shows up in user list view, but not in edit/detail views. I tried custom/modules/Users , custom/modules/Users/ext , but changes made in the templates (static html changes) have no effect.
Anyone know where these files should go?
Thanks SO'ers!
They should go in the custom/modules/Users/ directory. Do make sure you change the references inside the EditView.php and DetailView.php files to reference the templates you have in the custom/modules/Users/ directory instead of the default ones in the modules/Users/ directory.