Minimizing simple function of 3 variables fails

I need to minimize simple function with all variables are positive integers, but the out is the same as the input. No solution

    Clear((Alpha), k, (Beta), g);
g = (1 + Sqrt(5))/2;
f((Alpha)_, k_, (Beta)_, g_) := Abs((Pi) - ((Alpha)/(Beta))*g^k;)
Assuming((Alpha) > 0 && k > 0 && (Beta) > 0 , 
 Minimize(f((Alpha), k, (Beta), g), {(Alpha), k, (Beta)}, 

My version is 12.1

Any help


new players – Looking for a very simple RPG

I’m looking for a table-top RPG to host for people with no experience whatsoever.
I need something with simple, easy to use mechanics who encourage player’s imagination when facing challenges, something that can help me involve the players in an interesting storyline.

When I say simple I mean:
little to no Stat sheet,
No complicated rules regarding taking actions
and Relatively few dice rolls.

The point should be making the players think of creative solutions while going through the story. Things like: how to get information from an npc, how to get out of an elaborate trap, how to get past a giant lava pool.

Of course the characters need to have some sort of abilities, even special ones, but using them shouldn’t be complicated (like a wizard who’s trying to build himself a strategy using a lot of different spells). Playing smart should be using everyone’s unique abilities together.

Lastly, I’m planning on using this for one-shots of a couple of hours, not long campaigns.

TL:DR I need the simplest rpg to deliver a thrilling story for a group with no past experience, while making the players cooperate and find creative solutions to challenges.

Thanks everyone!

amazon web services – How do I configure SFTP AWS Transfer for a simple admin/user setup?

I need to make a simple SFTP system with AWS Transfer. Requirements are:

  1. A repeatable user account with access to a home dir.
  2. The user account has two subdirs: in and out.
  3. The subdirs are read/writeable, home dir is not.
  4. The user accounts can only see their own directories.
  5. Admin account that can read/write to all user accounts.

I’d like to do this without API Gateway to keep it simple.

I’m trying to use a policy to set the user access, but it’s not working.

    "Version": "2012-10-17",
    "Statement": [
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::${transfer:HomeBucket}",
            "Condition": {
                "StringLike": {
                    "s3:prefix": [
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
            "Resource": "arn:aws:s3:::${transfer:HomeDirectory}*"
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::${transfer:HomeDirectory}*",
            "Condition": {
                "StringLike": {
                    "s3:prefix": [

Trying to access the SFTP over filezilla gives me errors like this:

Status:         Connecting to
Status:         Using username "joel". 
Status:         Connected to
Status:         Retrieving directory listing of "/s3_base_dir/joel"...
Command:    cd "/s3_base_dir/joel"
Error:          Directory /s3_base_dir/joel: permission denied
Error:          Failed to retrieve directory listing

What am I doing wrong?

Will the Bitcoin network discredit a transaction if you do a simple transfer on a multi-sig after you found the collision on that address?

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Develop a simple serious game to dedramatize git merge conflict

I’m creating a course on GIT for non computer scientist.
As you know, developper already fear merge conflict (Do developers fear merge conflicts?), so that even worse for non computer scientist (ex in Humanity…)

So, i decide to take some time to think/build a scenario to de-dramatize this common problem, by creating a serious game.

After many hours to search on boardgamegeek website, i’m convainced that there already exist some game/mechanisms on abstract boardgame that adapt well to merge conflict.

The game need to be played using a board game representend as a text/Ascii file. This text file / Ascii file is synchronized with all users, and all users have a local copy of this file on their computer. Each users could change the text file at any time and push/sync the modified file/board on the server. Each push from users to the server generate a new state for the boardgame. There is no problems until two user change the same line on the board …

My Objective was to generate “git merge conflict” and “conflict resolution” when multiple players try to compete for one shared resource.

My actual finding (26/10/2020) :

  • I found that “Pent a rush” or “5er-finden” (see “” was interesting because there is one board with pattern shared for all users, and all users have limited time to report their finding on the local board to win the step.

So if someone find a pattern and report it before you and before the end of time for this step, you need to resolve a conflict by accepting the other player answer.

Real time playing, with auction/bidding mechanism. Players acquire ownership of sections of city blocks then place tiles, representing businesses, onto the shared block-sections. So there is competition between users.

If you already think or develop something related to de-dramatize git merge-conflict, or if you have a game with some of these caracteristic in mind, i’m interested to share expertise here as community post.

Ps : I also cross post and open discussion here :

cryptography – Help identify a simple, reversible cipher/encryption algorithm

my genius friends!

I’m trying to help a small business transition out of an obsolete, obscure piece of software, and app support is, unfortunately, non-existent. To fully export the data for the new system, I need to be able to decrypt/decipher a string in one of the database fields. But cryptography is not my specialty and I have not been able to reverse engineer what seems to be a very simple encryption/cipher algorithm.

I can create plaintext strings using the app, then see what they look like encrypted in the database. I can copy the encrypted string from one database record to another and it still decrypts just fine no matter which record I open in the app. This suggests to me either the method is keyless, or it’s a static/hardcoded key which is always the same. It smells like some kind of XOR method but I can’t fully put my finger on it even though analysis of the input and output has provided significant clues.

The encrypted output is always a hexadecimal string with a length which is a multiple of 16. For example, a 1-to-7-character input produces a 16-character hex output. An 8-to-15 char input produces a 32-char hex output. A 16-to-23 char input produces a 48-char hex output. Note that while some of the sample inputs are numeric, they are strings.
Notice also that some of the output hex strings have the same endings or beginnings as others despite their inputs being different.

I am sure someone with a bit more experience than myself can sniff out the encoding algorithm in a jiffy. So here are some sample plaintext inputs and encrypted/ciphered outputs. What can you tell me?


0                          3603B5C0D407A6FF
1                          9034469951F9BDB6
2                          101080C2FB110A89
0000000                    8AB449F106D5F76A
00000000                   87E0460F100F7E5B7783D03238923053
000000000000000            87E0460F100F7E5B8AB449F106D5F76A
This is a sample string.   D9E1588915C9B1E00D688CBCA066B18D70DC39F1072896F77783D03238923053
Hello, world!              108350BBCE7441DB9BB6235DADC206B5
Bazinga!                   2C03D5CBAAEA807D7783D03238923053

I would be happy to supply any other sample input/output by request.

First one to solve this gets a cookie!

I will create 10 original and simple business name ideas for you for $3

I will create 10 original and simple business name ideas for you

Selecting the right name when starting a business no matter the service you offer is a crucial step in your entrepreneurial journey, as your business or brand name can lead to the success of your business as well as mar it. I will help you make your Business naming a success by providing you with catchy, unique and original names you can choose from.

I will do extensive market research to understand and know your competition and then I’ll develop 10 different unique and original business name ideas as well as slogans you can use to present your business, service or product that works for both short and long term. I’ll check for names that do well in your industry and brainstorm suggestions that grab attention and help you make more sales.

NOTE: I do not use Name generators. All my services are developed from scratch.

BONUS OFFER: I will suggest catchy slogans for your business that will help you drive more traffic and more sales to your business for free!!



If you have any more question, kindly message me for more information.



c++ – Simple Boolean “Latch” with state

Sometimes you need to do things we a condition changes, here is a simple class to keep track of the state of the last call and execute callbacks when the state changes.

#include <functional>
#include <cassert>

/// latch is a class that contains of a test function and a couple of callbacks, when the return
/// value of the test function changes the approrpiate callback gets called, as long as the return
/// value of the test function stays the same no callbacks will be called. Callbacks may be nullptr
class Latch {
    Latch(std::function<bool(Args ...)> shouldLatch, std::function<void(Args...)> onLatch = nullptr, std::function<void(Args...)> onUnlatch = nullptr) :
                m_onUnlatch(std::move(onUnlatch)) {}

    bool latched() const noexcept { return m_isLatched; }
    explicit operator bool() const noexcept { return m_isLatched; }

    void update(Args&& ... args)
        if (m_shouldLatch && m_isLatched != m_shouldLatch(std::forward<Args>(args)... ))
            m_isLatched = !m_isLatched;
            auto& call = (m_isLatched) ?  m_onLatch : m_onUnlatch;
            if (call) call(std::forward<Args>(args)...);

    bool m_isLatched = false;
    std::function<bool(Args ...)> m_shouldLatch;
    std::function<void(Args ...)> m_onLatch;
    std::function<void(Args ...)> m_onUnlatch;

int main() 
    int onLatch = 0;
    int onUnlatch = 0;
    int latchVal = 1;

    Latch<int> l1((&latchVal)(auto val){return val == latchVal;},
                  (&onLatch)(auto val){++onLatch;},
                  (&onUnlatch)(auto val){++onUnlatch;});
    assert(onLatch == 0 && onUnlatch == 0);
    assert(onLatch == 1 && onUnlatch == 0);
    assert(onLatch == 1 && onUnlatch == 0);
    assert(onLatch == 1 && onUnlatch == 1);

    Latch l2 = l1;

This is also at

Thanks for the input

Simple C++ Dynamicly allocated Matrix with only one memmory allocation

I was bothered withe existing matrix allocation methos that take variable rows and columns, so I made a small class that only needs one memory allocation.

template <typename T>
class Matrix{
    T* data;
    size_t rows, columns;

    Matrix(const size_t rows, const size_t columns) : rows(rows), columns(columns) {
        // One single allocation to store data
        data = new T(rows+columns + 1);

    T* operator()(const size_t r) {
        return data+(r*columns);

// Example

int main() {

    Matrix<int> mat(5,3);

    mat(2)(1) = 1;



Making an HYIP program is now very simple and easy – HYIPs

Making an HYIP program is now very simple and easy. Just get a complete package Of HYIP from Zeligz Web Store at an affordable price and you will get the working website within 24 hours. Their HYIP Script is the most advanced in the HYIP market. With the script, you will get many other facilities and features. They have a live support system so you can contact them at any time for any support. Visit their website and get the details now.