In Tableau, what's the difference between drag and drag with command? - data-visualization

I feel like that drag = cut & paste, drag with command = copy & paste. Is that correct?

If you mean that "simple" dragging an element from a place to another (let's say from shape to color, or from rows to columns) produce a sort of cut&paste in terms of "cut from original position and pase in final position", yes it's correct.
In the same way, holding Command (in Mac OS) or Ctrl (in Windows), will duplicate your element from its position to the final position.
This is something similar to copy&paste you're referring to.

Related

Simultaneous change of table cell values in tables on different pptx slides

I got two (or more) same tables on two (or more) different PowerPoint slides, one table per slide.
I need to update the respective cell in all tables whenever I modify this cell on just one of them.
I have been trying to access the cell value and store it as a variable using pptx package.
The only thing I could do is InputBox() but it is not convenient.
Since PowerPoint lacks bookmarks and has only a few fields, you'll have to specify the read and write locations the long way. Keep an eye out for tables with merged or split cells, those can pose an addressing problem.
Sub UpdateTableCell()
Dim CellContent$
CellContent$ = ActivePresentation.Slides(1).Shapes(1).Table.Rows(2).Cells(2).Shape.TextFrame.TextRange.Text
ActivePresentation.Slides(2).Shapes(1).Table.Rows(3).Cells(4).Shape.TextFrame.TextRange.Text = CellContent$
End Sub
You'll probably find this more convenient to use if you add it to the Quick Access Toolbar. If the icon is in the 5th position on the QAT, you can run it with Alt + 5 for a keyboard shortcut.

How to delete a part of an object?

Opened this file in Blender.
Trying to delete a bottom part with a Knife, then with a Plane, but nothing works. For example I've tried hints from here, from this tutorial
When I used a Plane to cutt off a bottom, after the fourth step nothing happened (tried to press Apply button as well):
this is the result of the 4th step.
Are you trying to cut it flat on the bottom?
A few ways that I can think of are:
--Go to front orthographic view, go to wireframe mode, and in edit mode, press B(box select) and select how much you want to cut off from the mesh.
--Create a cube (not a plane) that covers what you want to cut off, and on the crater surface add the boolean modifier and instead of intersect, change it to difference, and set the Object to the cube.
example of boolean modifier:
--Create a line and use knife project, and enable "cut through", this will cut this line through the mesh from the angle that you are looking at it.
-- You could also use the bisect option in the tools tab, which will cut a line all the way around your object. Just click at the start point, and drag it out.
--To ensure a flat bottom, go to front orthographic, wireframe, select the bottom part, and hit "S" (scale), "Z" (z axis), and "0"
Bisect tool:
Hope one of these ways works, and good luck!

Spacemacs using the mouse to copy paste

I quite often use the mouse to highlight text and then press cmd-c (Osx) to copy the highlighted text. However it seems that the cursor is not updated when I do this and so instead of copying the highlighted text to the register it copies from current cursor position to end of where I highlighted. What am I doing wrong? I dont want to keep remembering to click before select to move the cursor.
I am using evilmode.
Put
(xterm-mouse-mode -1)
under user-config in your .spacemacs file should do the trick.

VBA Macro 'Moving" Graphics / Dynamic Graphs

Basically, the problem here is that I have a macro which changes the number of a specific cell and by doing that I change the numbers from three columns and when those numbers are changed my graphic starts to 'move'.
To be more specific, I have this graphic:
When I click on the button I have, the lines starts to move, and it looks like a mouth opening and closing.
The blue line corresponds to the first and second column values, whereas the red line is changed accordingly to the first and third column values:
Cell(B2) contains the number generated by this code:
Sub OpenMouth()
For i = 1 To 20
Worksheets("Mouth").Cells(2, 2).Value = 0.1 + 2 * i / 20
Calculate
For j = 1 To 5000000
Next j
Next i
End Sub
What I need to do is to prepare something similar: A graphic that by changing the numbers I have in columns A, B and C, it starts to move. The columns A, B and C will be changed by doing a simple loop in VBA, this loop will change one value, and the three columns will have a formula linked to this value, so they will have their values changed.
I've seen some really cool graphics, a ball rolling, a wheel moving, but I really don't have a clue of how to do this, I don't know how to do it.
Does anyone have an idea? Can anyone help me build a different graphic with a similar idea (of an object moving)?
This is another example, using the same logic:
Frankly, I would suggest rethinking your approach of creating a custom & complex animation in Excel. Excel just isn't the right tool for this.
I would use Javascript and embed a Internet Explorer control into Excel with the animation. The solution would work as follows:
Press a button in Excel
A VBA macro executes the animation by loading the Microsoft Web Browser control with a custom HTML file with your animation in Javascript. The animation is show in the MS Web Browser Control.
Drawing in Javascript
Here a simple tutorial:
http://www.w3schools.com/html/html5_canvas.asp
Test your drawings here:
http://www.codecademy.com/courses/web-beginner-en-SWM11/0/1
Microsoft Web Browser Control
https://msdn.microsoft.com/en-us/library/aa752040(v=vs.85).aspx

Creating OpenerView in a Notebook for Various Section of the Notebook in Mathematica

I have a notebook with various sections which I would like to contract (i.e show only the title of the section/subsection etc...) and expand as needed to reveal more or less of the content of the various parts (as done in the help section of Mathematica for instance).
I see the function OpenerView creates the icon but appears not to be suited for the purpose.
How do I accomplish that?
From the menu, try "Format->Option Inspector" and select "Selected Notebook" from the drop-down menu. Then in the search box type "opener", and make sure the "ShowGroupOpener" is checked. Then put the parts of your document into "Sections", "Subsections" etc. using the "Format->Style" menu options.
The blue brackets on the right side of the page are cell brackets. They show you want can or will be collapsed. Double click the one that surrounds the block you wish to collapse, or select the section and press: Ctrl+'
If you wish to expand or collapse all of the sections within a section or notebook, select the range you want to affect (Ctrl+a to select all), then use:
Ctrl+Shift+[ to open
Ctrl+Shift+] to close
In the menu Cell>Grouping if Manual Grouping rather than Automatic Grouping is selected, then the sections you want to collapse may not actually be grouped. You can see what is grouped or not, by the blue brackets on the right side of the Notebook. This is what I attempted to allude to above. If you change the setting to Automatic Grouping, or group the cells manually using Ctrl+Shift+g, you should see the brackets indicate the group, and the commands above should work.
If you refer to this post,
https://mathematica.stackexchange.com/questions/265/easiest-way-to-use-showgroupopener-in-mathematica
it will likely have your answer. To enter the expression for the cell, use Cell | Show Expression. There you can turn on the ShowGroupHeader option.