website design – Placement of Previous and Next button in Setup

I would like to know because so far I couldn’t find or think of any website to refer to. What is the best placement of a previous and next button for a setup kind of scene?

We have a stepper but we decided to have both stepper and the prev next button as well.

Is it better to place is relative to the data? (so if user adds data, the prev and next button gets more to the bottom)


to place it in a fixed space (so no matter how many data user add, it stays there, kind of like a sticky)

Thank you!

woocommerce – How to create another shipping method which based on the previous shipping method

I have two shipping methods,

Standard shipping method will be calculated based on the items amount and other data.
In the express shipping method, I just want to add x amount. Let say if the standard shipping is 50 then it will be increased in the express 52. and if it is 60 then it will be 62. So basically increase the express shipping cost by adding 2 to standard shipping cost.

How this can be done?

oracle – a value on a raw depend on values of previous rows

I have a column (status) in a table that contain numbers values are 1, 2, 4. I would like, in a SQL query, add a calculated column (bitStatus) that will store the bitwise oerator AND for the status column of the current line and the value of all previous values in the previous line.

like so :

| id | status| bitStatus| 
| 1  |   1   |   1      |
| 2  |   2   |   3      |
| 3  |   4   |   7      |
| 4  |   1   |   7      |

I tried to use LAG but I guess it is not the best choice as I have, for a specific raw, have the value of the operation done for all the previous values: (for line 4 : the biStatus = 0001 AND 1111)

how to resolve that.

Thank you

Does anyone know if you can limit the Events Manager and WP FullCalendar plugins to only show 1 previous month in the calendar view? [closed]

The events calendar on this page is using the Events Manager plugin ( and the WP FullCalendar plugin ( They want the calendar to only show one past month instead of being able to go back to an unlimited number of months. So for example, it is currently June so they would want the calendar to be able to go back to May but no further than that. I’ve looked in the settings for both plugins and I can’t find anything that would do what I need. I also posted on the support forum for each plugin without any response yet. If anyone has found a way to do this, I’d appreciate any insight.

plotting – How to extrude a tapered shape (starting from a previous answer)

I have a shape given by

triangleTransform((Theta)_) := 
 {2*Cos((Theta)) + Cos(2*(Theta)), 2*Sin((Theta)) - Sin(2*(Theta))}; 
triangle = 
  {(Theta), 0, 2*Pi}, PlotRange -> All, Axes -> None) /. L_Line :> GeometricTransformation(L, ScalingTransform({2, 1})) /. Line(l_List) :> {{LightGray, Polygon(l)}, {LightGray, Line(l)}}

enter image description here

I want to ‘extrude’ this shape along the path given by

path(u_) :=
 {(5/6)*u*Sin(u), (5/6)*u*Cos(u), (5/18)*u}; 
{uStart, uEnd} = {0, 3*Pi}; 
gPath =
 ParametricPlot3D(path(u), {u, uStart - 0.2, uEnd + 0.2}); 

enter image description here

I want the extrusion to taper from 0 at the origin (i.e., the tightest part of the spiral) to some given scalar s at the end of the line, with the sharpest vertex of the triangle pointing inwards at all times.

I am trying to build on the ticked answer here (link). I can build a new path easily enough, using the shape provided:

(*Create a path*)

path(u_) := {(5/6)*u*Sin(u), (5/6)*u*Cos(u), (5/18)*u}; 
{uStart, uEnd} = {0, 3*Pi}; 
gPath = ParametricPlot3D(path(u), {u, uStart - 0.2, uEnd + 0.2});

(*Build a straight-sided polygon - I CAN'T WORK OUT HOW TO APPLY MY triangle HERE.*)

list = {{0, 0}, {0, 15}, {7, 13}, {2, 13}, {2, 5}, {5, 5}, {5, 3}, {2, 3}, {2, 0}}; 
scale = 0.05; 
transxy = {-0.05, -0.25}; 
(nlist = (Plus(transxy, #) & /@ (scale*list))) //  Graphics({Black, Polygon(#)}, Axes -> True, AxesOrigin -> {0, 0}) &;

(*To extrude the polygon along the path, we need to rotate the 2D 
polygon in the 3D space such that its (x,y) axes match respectively 
the (normal, binormal) axes of the frenet trihedron along the curve. 
The z axis will have to match the tangent of the curve in order this 
tangent to be perpendicular to the polygon surface as requested by 
the OP). We also need to translate the rotated polygon to its 
corresponding position along the path. All this can be simply 
achieved with:*)

frenet(u_) = FrenetSerretSystem(path(u), u)((2));
transform(u_) := Composition(TranslationTransform(path(u)), 
 FindGeometricTransform(frenet(u), {{0, 0, 1}, {1, 0, 0}, {0, 1, 0}})((2)))

(*Number of extrusion points*)

nint = 100; 
allpoints =
 Table(transform(u) /@ (nlist /. {x_, y_} -> {x, y, 0}), 
{u, uStart, uEnd, (uEnd - uStart)/nint}); 

(*You can attempt to draw directly the surface passing through all 
the "extruded" points with the function BSplineSurface:*)

Graphics3D({FaceForm(GrayLevel(0.8)), Polygon(({First(#1), Last(#1)} & )(allpoints)), 
   (BSplineSurface(#1, SplineDegree -> 1) & ) /@ 
    Partition(Transpose(Join(allpoints, List /@ allpoints((All,1)), 2)), 2, 1)}, 
  Lighting -> "Neutral")

This produces the original 2D shape, now extruded over my chosen path:

enter image description here

My questions are:

  1. How do I replace the 2D shape with triangle?
  2. How to I create the taper from size 0 to s?

Many thanks for all your help on this and other questions. I very much appreciate it: I’m enjoying learning from the masters!

How to restore to previous version of Workflow with SharePoint Designer 2013?

I have a workflow, that I was editing and due to Office 365 crash, I had to close SharePoint Designer 2013 and reopen.
When reopened, I realize that the workflow got messed up with all condition removed.

Google save me this answer to restore to previous version from All files by:

  1. Go to the folder All Files in SharePoint designer (use SharePoint Designer 2010 if connecting with a SharePoint 2013 farm or you’ll get a server busy error), when you have opened your site
  2. Open Workflow folder
  3. Locate your workflow and expand it (+)
  4. For each file: Right click and click “Version history”, select the correct version and click restore
  5. Restart SharePoint designer
  6. Open the version the normal way (not via All Files), and Publish

The problem is step 3, I can’t find any Workflow in the Workflow folder, except a folder named “Forms”. Which has no item in it too.

How to find the workflow and restore it back to its original glory?
I have Owner access to the site and had previously worked on the said Workflow, edited and published it. But never tried to see its history before.

Any help here is much appreciated.

array – count number of previous elements greater than its element at present index

suppose i have a vector containing n elements. I want to find out the number of previous elements greater than its element at present index i . I mean i want to find A(i)>A(j) && i

constraints : 1<=t <=1000 , 1<=n <=10^5 , 1<=A(i)<=10^5

My code:

 using namespace std;
 int main()
int t;
cin >> t;

    int n,a,i,j;
    cin >> n;


        cin >> a;
   int cnt=0,sum=0;

        if( i!=0)
      //  cout << cnt << " ";


    cout << sum << 'n';

This code is running fine for all the test cases except only one. It is showing the Time limit exceeded for one of the test cases.Can anyone help me?

automation – How to add new label to gmail mail basing on previous labels + specific string

I’m trying to configure some automation when it comes to labelling my Gmail mailbox.
Currently, I want to apply label “X” to every new message that match the specific string “abc” and DON’T have label “Y”.

The problem I’m facing is that whenever someone responds to old thread with label “Y”, the filter is being triggered and this mail have to labels “X” and “Y”.

TLDR: I don’t want to label threads with specific label, but it is not working.