How can I make this? Thyme Leaf, Spring Boot, Hibernate, Security Project

I’ve been making a Spring Boot project for the college and now I’m stuck in this part: The client user have a shopping cart that shows all items the client added. I want when the client make the checkout the items dont appears anymore.

I’m a little newbie in this area, I have no idea what to do. Do you guys can help me? Thanks for the atetion. 🙂 That is the table who shows the items of the client’s order:

<table class="table table-dark">                 <tbody>                     <tr>                         <td>Item</td>                         <td>Imagem</td>                         <td>Nome</td>                         <td>Preço</td>                     </tr>                     <tr th:each = "itens : $  {listaDeItens}">                         <td th:text="$  {itens.codigo}"></td>                         <td><img width="200" height="200" th:src="@{'/images/'+$  {itens.nomeprato}+.png}"></td>                         <td th:text="$  {itens.nomeprato}"></td>                         <td th:text="@{'R$  '+$  {itens.precoprato}}"></td>                         <td><a class="btn btn-danger"  th:href="@{/removeItem/{codigo} (codigo = $  {itens.idprato})}">Remover Item</a></td>                     </tr>                     <tr th:each = "itens : $  {listaDeItens}">                         <td></td>                         <td><a class="btn btn-primary"  th:href="@{/finalizar/{codigo} (codigo = $  {itens.idprato})}">Finalizar Compra</a></td>                     <tr>                 </tbody>             </table> 

ошибка в Android Studio 3.6 при Build Project

Используем kotlin, все работало нормально пока что-то не обновилось помогите разобраться что это может быть?

8:35 Unsupported Modules Detected: Compilation is not supported for following modules: android. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.

Display PDF slides via project connected to HDMI, controlled from iPad/iPhone, either directly or via MacBook

I frequently give academic conference presentations, using PDF-based slides. Typically, a projector with HDMI input is available. Currently, I usually connect it to my MacBook as mirrored display, and advance the slides from the MacBook keyboard.

It would be nice to be able to run the presentation wirelessly from my iPad/iPhone, so I can walk around freely while still being able to:

  1. Advance the slides,

    and

  2. glance at the slides without turning away from the audience.

Is there any way to achieve this?

Detailed requirements/desirables are spelled out below, but I guess they’re pretty common for conference presenters with Apple devices.

I’ve found several similar questions such as:

  • How to display iPhone/iOS device on Projector?

    and

  • How to show iOS screen on a projector like Steve Jobs did on his keynotes?

but they are all rather old and their answers don’t fit this use-case, as far as I can see.

Requirements/desirables:

  • Projector hardware is totally out of my control; all I can rely on is a projector with HDMI input (sometimes VGA on older projectors).

  • Usually there’s a local Wi-Fi network, often eduroam-based, but the details and quality vary. So a solution using Wi-Fi is OK if it works reliably on most Wi-Fi setups (at least including eduroam) without specific configuration, but not if it needs detailed re-configuration depending on the network.

  • Usually there are just a few minutes available to connect and test the setup at the venue before the talk.

  • I don’t want a wired connection from the iPad to any larger-than-pocket-sized device (since the point is to allow free movement).

  • I’d like the iPad to show the current state of the projection (not necessarily exact mirroring, it’s fine if there’s e.g. a keyboard overlay), and to control the projection, i.e. advance/backtrack through slides.

  • The solution must work for PDF-based slides, or at least something that PDFs can easily be converted to. (Working for other formats, e.g. Keynote, would be great but isn’t essential.)

  • Ideally, a solution should allow full use of the projector display whatever its aspect ratio (i.e. if projector is widescreen, widescreen slides shouldn’t get vertically letterboxed down to the iPad screen which in turn gets horizontally letterboxed to the projector).

Flexibility:

  • I’m quite happy to buy an adaptor or similar small peripheral, or a paid app, if these provide a good solution.

  • I’m happy to use my MacBook as a go-between.

  • I don’t mind whether the slideshow is run from the iPad (and mirrored to the projector, possibly via MacBook), or run from the MacBook (and mirrored + controlled from the iPad).

  • A solution that works with either an iPhone or an iPad would be ideal; but if it works with just one of these, that’s fine.

  • Frame challenges are welcome!

What I’ve tried so far:

  • AirPlay from iPad to Reflector on the MacBook. Pretty good, with one serious caveat: connection seems to break easily if the Wi-Fi is at all spotty. (Less significantly, since it goes via mirroring the iPad screen, one can’t use full width of widescreen projector.) Good enough to use at venues with very reliable Wi-Fi.

  • Screen sharing from MacBook to iPad, using Mocha VNC. Seems to require specific per-network configuration for connecting to the MacBook, and on the one eduroam network I tried, I couldn’t get it to work. There are multiple ways to set up the VNC connection, though, so perhaps there’s a more robust approach I haven’t found.

  • Bluetooth remote, controlling MacBook directly, not using iPad: mentioning this as an example “frame challenge” solution. Excellent in most ways, but doesn’t display the slides on the portable device.

How to fix ‘Inconsistencies in the existing project dependencies found’

I am adding AdView in my Android Studio project but when pressing the download/add button of the AdView, this error message pops up:

‘This operation requires the library com.google.android.gms:play-services-ads:+.

Problem: Inconsistencies in the existing project dependencies found. Version incompatibility between: – androidx.activity:activity:1.0.0-alpha08@aar and: – androidx.concurrent:concurrent-futures:1.0.0-beta01@jar

With the dependency: – com.google.guava:listenablefuture:[1.1.0-beta01,1.1.1) versus: – com.google.guava:listenablefuture:[1.0,1.0.1)

The project may not compile after adding this library. Would you like to add it anyway?’

Here’s my gradle dependencies:

 dependencies {  implementation fileTree(dir: 'libs', include: ['*.jar'])  implementation 'androidx.appcompat:appcompat:1.0.2'  implementation 'com.google.android.material:material:1.0.0'  implementation 'androidx.constraintlayout:constraintlayout:1.1.3'  testImplementation 'junit:junit:4.12'  androidTestImplementation 'androidx.test:runner:1.2.0'  androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'  implementation 'androidx.gridlayout:gridlayout:1.0.0'  implementation 'androidx.recyclerview:recyclerview:1.0.0'  implementation 'com.squareup.picasso:picasso:2.5.2'  implementation 'com.google.android.material:material:1.1.0-alpha07'   } 

CSS position Absolute and position Relative clashing with Keyframe Animations (In React Project)

Look at .h1-div (Parsa Ventures Text)

If I make the div position relative, the animation works, but the h1 moves to the bottom of the screen below the content.

If I make the div position absolute, its very responsive and is positioned where it needs to be, but animation doesn’t work.

I need the responsiveness and the animation both to work on the h1.

enter image description here

(Imports and state not included in code)

import React from 'react' function App() {     return (         <>             <Home />          </>     ) }  export default App   

Home Component:

class Home extends React.Component {     render() {         return (             <div id="mainDiv" style={{ backgroundColor: '#FFFDF8', overflow: 'auto', width: '100%', height: 'auto',  position: 'relative'}}>                      <div className="h1-div">                         <h1>Parsa Ventures</h1>                       </div>                     <img src={leftTree} alt="a"  id="leftTree"/>                     <img src={swing} alt="a"  className="swing" id="swing"/>                    <img src={mSwing} alt="a" className="m-swing"  id="mSwing" />                     <img src={leftRope} alt="a"  className="left-rope" id="leftRope"/>                     <img src={rightTree} alt="a" className="right-tree" id="rightTree"/>                       <div className="pillow-a"  >                         <img src={pillowA} alt="" className={this.state.pillow ? 'enter' : 'leave'} id="p"/>                         <a href="#" onMouseEnter={this.handleEnter} onMouseLeave={this.handleLeave} id="p-a">About</a>                     </div>                     <div className="pillow-c"  >                         <img src={pillowA} alt="" className={this.state.pillow ? 'enter' : 'leave'} id="p"/>                         <a href="#" onMouseEnter={this.handleEnter} onMouseLeave={this.handleLeave} id="p-a">Contacts</a>                     </div>                     <div className="pillow-p"  >                         <img src={pillowA} alt="" className={this.state.pillow ? 'enter' : 'leave'} id="p"/>                         <a href="#" onMouseEnter={this.handleEnter} onMouseLeave={this.handleLeave} id="p-a">Projects</a>                     </div>                     <div className="pillow-m-a"  >                         <img src={pillowA} alt="" />                         <a href="#">About</a>                     </div>                     <div className="pillow-m-c">                     <a href="#">Contacts</a>                         <img src={pillowA} alt="" />                         </div>                     <div className="pillow-m-p"  >                     <a href="#">Projects</a>                         <img src={pillowA} alt="" />                      </div>              </div>         )     } }  export default Home 

SCSS:

.h1-div{      position: absolute;            width: 28%;     height:1%;     left: 67%;     top: 30%;         animation-name: pvh1;         animation-duration: 3s;         animation-fill-mode: forwards;          h1{             font-size: 3.7vw;             color: #38AFC9;             text-shadow: 6px 6px 0px rgba(255, 210, 225, 0.84);         }           }       @keyframes pvh1 {         0% {right: -25%; bottom: 50%;}         75% {right: 8.75%; bottom: 50%;}         100% {right: 5%; bottom: 50%;}     }    img{         max-width: 100%; }  .right-tree{     position: relative;     left: 40%;      max-width: 60%;  }  .swing{  position: absolute; left: 4%; top: 29.5%; width: 34.3%; height: auto; }  .left-rope{     position: absolute;     left: 4.6%;     top: 45%;     width: 3.7%;     height: auto;     z-index: 1; } 

my real ip is on first Ubuntu but web project container on another (Loca) .Now i need SSH connection to my local server from external ip address

my real ip is on first Ubuntu but web project container on another (Loca) .Now i need SSH connection to my local server from external ip address. Please help. How can i have access to files in local server, i i can ssh connect to real ip server only.

my real ip is on first Ubuntu but web project container on another (Loca) .Now i need SSH connection to my local server from external ip address

my real ip is on first Ubuntu but web project container on another (Loca) .Now i need SSH connection to my local server from external ip address. Please help. How can i have access to files in local server, i i can ssh connect to real ip server only.