## How to horizontal sharding mysql?

I’m trying to horizontal sharding in mysql. I installed MySQL cluster and every thing work well. But i don’t know how to horizontal sharding my database.
Detail:
I have 2 data node: Node1 and Node2.
I created database Test with one table T1(key(int), field1..).
Now I want to 50% record of T1 save on Node1( odd value of key) , and 50% another on Node2 ( even value of key).
Best regards.

## Shot em up! Vertical or Horizontal “side scrolling”?

Question it’s about "Shot em up" style game (For example: Tyrian) also known as Top-Down shooters.

These games in the past mostly exist as top down concept, it means player object can move from the left to the right and enemies start appearing from the top of the screen and moving down to the screen. This concept was probably picked due to the monitors aspect ratios in the past where was most spreaded 4:5.

Also this concept are very popular on mobile phones, because is sometimes more user friendly not using landscape mode when playing.

There was a very little titles, when the concept Top-Down are changed Right-left It means, player object is on left screen side and moving Top and Down, and the enemies moving from right to the left. Also, there is almost no titles on desktops when current aspect ratios are mostly 16:9. Even if some new “Modern” Shot em up is released, mostly pick the Top Down concept.

And my question is, is there any reason for that on Desktops target platform?

I think for the current monitor aspect ratios 16:9 “Right-Left” better fit the gameplay and user experience. Or Am I missing something?

## menu make horizontal not vertical items

I have in website https://11humans.com/sakums/
menu on large screens vertically, how can I make it is horizontal not on top of eachother one item?
Thank you

## How to prevent horizontal escalation attacks when a centralized authorization service as gateway is used?

Say I have a gateway which provides authorization mechanisms by validating a JWT, behind an api-gateway there are different micro-services but only the gateway port is public. As a software designer you decide to make all micro services unaware of authorization-related operations to remove code duplication and minimize the affected components when a security related change is needed. That is, all of the micro services would not contain any validation of the JWT.

How is it possible to prevent a horizontal privilege escalation when there’s a valid JWT but the attempted operation does not pertain to the current user? such as updating the user profile of a different person, keep in mind the api should not require to read the and compare the subject or issuer of a JWT to the user profile being updated, Is it even possible to achieve this?

## Calculating number of intersections of a horizontal line with line segments efficiently

I’m given an array $$A = [a_1, a_2, ….a_n]$$ using which I construct $$n-1$$ contiguous line segments by drawing a line from $$(i,a_i)$$ to $$(i+1, a_{i+1})$$. Now, I’m given $$q$$ queries in the form of $$x_1, x_2, y, l, r$$ where $$l$$ and $$r$$ are the range for the array $$A$$ and the rest indicate a horizontal line segment $$L$$ from $$(x_1, y)$$ to $$(x_2, y)$$. For each query, I want to find total intersections of $$L$$ and the segments in the range $$l$$ and $$r$$ in $$O(n+q)$$ or $$O(n + q\log{n})$$ complexity.
I was able to arrive at a solution that works in $$O(nq)$$ which simply traverses each range and calculates whether $$L$$ intersects with the segments or not.
I believe, some pre-processing can be done on $$A$$ which can reduce the complexity.
Any leads will be appreciated!

## find the number of line segments that willl intersect that will intersect with a horizontal line?

So,we have been given N points in a plane (numbered 1 through N) and for each valid i, the i-th point is Pi=(i,Ai) and each line segment is formed by connecting the points Pi and Pi+1.

Now,we are given Q horizontal line segments,for every horizontal line segment, we have to find the number of line segments (from those N-1 line segments) it touches or intersects.

So this is the problem where : 2<=N<= 100000 1<=Q<= 100000

Can somebody tell me how to solve this in an efficient way?

## ¿Cómo mostrar un arbol binario de forma horizontal en C?

``//               (8) //             /      \ //           6         10 //          /  \       / \ //         4    7     9   11 //        / \  / \   / \ /  \ //       1   5               13 //      / \ / \             /  \ //                         12 ``

La idea es que se muestre de esta forma, he intentado varias alternativas con matrices y soluciones recursivas. Gracias de antemano, cualquier ayuda me puede servir

## necesito que el footer genere un desplazamiento horizontal

Muy buenas tardes comunidad de Stack Overflow:

tengo el siguiente problema;

necesito poder generar un movimiento en el footer de mi pagina web, actualmente estoy usando HTML 5 y bootstrap (soy bastante nuevo en lo que es desarrollo de paginas), me pidieron que el footer genere un efecto como de fade y ademas que al pasar el cursor por encima del footer se desplace de forma horizontal.

adjunto el código del footer:

``<!-- Footer -->         <footer id="footer">             <div class="container">                 <ul class="icons">                     <li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>                     <li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>                     <li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>                     <li><a href="#" class="icon fa-envelope-o"><span class="label">Email</span></a></li>                 </ul>             </div>             <div class="copyright">                 &copy; Benjamin Galdames Aracena. Todos Los Derechos Reservados.             </div>         </footer> ``

También adjunto lo que tengo en CSS :

``/* Footer */  #footer {             border-radius: 20px;     padding: 4rem 0 2rem 0 ;     background: #000;     text-align: center;             }      #footer a {         color: rgba(255, 255, 255, 0.5);     }          #footer a:hover {             color: #FFF;         }      #footer .copyright {         color: #bbb;         font-size: 0.9rem;         margin: 0 0 2rem 0;         padding: 0;         text-align: center;     }      @media screen and (max-width: 736px) {          #footer {             padding: 3rem 0 1rem 0 ;         }      } ``

¡Muchas gracias por su ayuda!

## In the holy grail layout of web design why is the navigation menu vertical and not horizontal?

i am a beginner with web design, while studying i came across the “holy grail layout” and i was just wondering why is it that the menu is vertically aligned while most modern websites tend to use a horizontally aligned menu.

## Ecommerce showing products on landing page: horizontal scroll VS blocks

What are the arguments for and against blocks vs horizontal scrolling on a ecommerce page?

Below are two examples, one from amazon and one from bestbuy