All kinds of 2key controls

I want to find all possible ways to control a game using 2 keys on input.

1. Summarize the problem

I find a brand new game engine that has only two inputs but great potential! And the community of this engine needs as many control methods as possible. I want to find, develop and share all of them! (Player may control not only character but any possible types of game.)

2. Provide details and any research

Сapabilities of keys:

  • press one key (short hold)
  • hold one key
  • press both keys (short hold)
  • hold both

Input method: 2 keys on a keyboard or 2 halves of sensor screen.

3. When appropriate, describe what you’ve tried

Examples of existing methods (dir -> direction):

  • key1: switch dir (right, down, left, up, right, down, …); key2: move
  • key1: switch dir (right, left, right, left, …); key2: move
  • key1: left move; key2: right move
  • key1: turn left; key2: turn right; hold both: move forward

If you have any ideas, please, leave the answers!

Station for sorting and packing Egyptian onions and garlic of all kinds

Organic Company and Station for Import and Export owns an approved station for sorting and packing Egyptian onions, and it is a global company with a passion for the quality of the onion trade. Quality has always been of paramount importance in our long history of onion cultivation and processing and is, to this day, the foundation of everything we do. We supply Egyptian red and golden onions to all importers, traders and owners of food factories throughout the year and all over the…

Station for sorting and packing Egyptian onions and garlic of all kinds

ebook writing and any kinds of book formatting for $100

ebook writing and any kinds of book formatting

Writing books, book formatting, and cover design services

My service areas are

1. Ebook Writer

2. Layout Design

3. Book Designer

4. Book Cover Design

5. Book Formation

6. Interior Design

7. Low Content Interior Design

8. KDP

9. Ebook Formation

10. Social Media Design ( Facebook, Instagram, Pinterest, Twitter, and others)


Why do I have 2 kinds of Pages on Facebook?

I’ve created 3 Pages. One of them (the 3rd one in the image) looks different.
It is also different inside. For example, the 3rd one has its profile photo on the left, but the 1st and 2nd have them in the middle.

How did this happen? What is the difference?
Which type is better? And can I change a page’s type?


database design – Grad Student: Based on my interests/skills what kinds of jobs/careers should I prepare for?

I’m an information systems graduate student who has always liked topics like systems design (i.e UML diagramming) and recently took a course in database design and SQL. I’ve realized that I really enjoy working on ERDs, normalizing data, and have recently begun self-teaching data warehousing topics and crafting those kind of schemas.

From what I understand, data architect roles are not “entry-level” but one could start out as a “data modeler” or more commonly a SQL developer (with some emphasis on DB design?).

Should I create some kind of portfolio website with ERDs, Normalization schemas, etc that I could provide to future employers? And what kinds of companies and roles should I be looking into to get a start in this kind of work? Any other advice on careers that are heavy on the design aspect vs writing code (even though I do like writing SQL) would be greatly appreciated.

Thank you!

What are the different kinds of Lightning routing nodes?

Alex Bosworth discusses different kinds of routing nodes he has observed on the network in this presentation at a Lightning Hack Day in March 2021. He classifies them as follows:

  • Ping Pong Routing Node (Bi-Directional Payments)
  • Liquidity Battery Routing Node (Slow Ping Pong Payments)
  • Inbound Sourcing Routing Node (Provide Liquidity to Drains)
  • Liquidity Trader Routing Node (Predict the Future, Provide Reliability)
  • Last Mile Routing Node (Connect Users to the Network)

A ping pong routing node stays balanced due to routing regular bidirectional payments and only requires operational costs. It avoids the fees required to rebalance channels. In reality, these are rare as there are at least delays between the bidirectional payments and hence periods where channels aren’t balanced.

A liquidity battery routing node is more common as it routes bidirectional payments but encounters time delays and periods where channels aren’t balanced. It needs sufficient capital to withstand these periods and avoid being drained. Due to the higher capital requirements they potentially have the opportunity to charge higher fees than ping pong routing nodes. These routing nodes also require monitoring of onchain fees to determine when it is affordable to use the chain to rebalance their channels.

An inbound sourcing routing node seeks opportunities to consistently provide liquidity to drains (ie exhausting their inbound capacity with regularity). Capital is only flowing in one direction and this routing node has to manage that and actively rebalance. However, this routing node does get to identify stable routing opportunities with medium fees where there is demand to route to the drains (e.g. merchants) and potentially buy channel capacity to serve periods of increased demand.

A liquidity trader routing node is the most opportunistic of routing nodes as it moves around the network opening channels or buying channel capacity in the short term to take advantage of information that isn’t publicly available. It chases high routing fees and hence is information intensive as well as channel management intensive. If its information isn’t accurate it risks making higher losses as the costs of channel opening and purchasing liquidity mount up.

A last mile routing node actively tries to connect end users to the Lightning Network rather than being one of the central nodes in the route. These routing nodes need to understand and monitor what the end users’ needs are because otherwise they risk their capital being stuck in a channel that isn’t being regularly utilized (i.e. no routing fees). It is also critical (even more so than for other routing nodes) that these routing nodes are online 24/7 as they may be the end users’ only connection to the rest of the network.

(Being an effective routing node and generating profits from being a routing node is challenging and especially when starting out one should see it as experimentation rather than an investment with reliable returns. Do not experiment with more funds than you can afford to lose.)

calculus and analysis – How to write these kinds of integrals in a more compact way?

I wanted to calculate the average distance between two points both lying inside $B^2(vec 0, R)$, and ended up writing

Assuming(R>0,Integrate(Integrate(Sqrt(Abs(x1^2 +y1^2+z1^2 - x2^2 - y2^2 - z2^2)), {x1,y1,z1 }(Element)Ball({0,0,0},R)),{x2,y2,z2}(Element)Ball({0,0,0},R)))

However, given the elegance of the Mathematica language, and any my experience in programming in general, I, sort of, felt ashamed of myself writing such ugly code.

Is there a more compact & elegant way of writing the same code in a short manner such that it will also improve the speed of the code? Because I run this code on wolframcloud and it couldn’t find the result withing the limits of its execution time.