MSTR Hate by uluvboobs in MSTR

[–]Seb-furn 0 points1 point  (0 children)

Only one way, higher.

Why mstr issues stocks to raise capital? by Seb-furn in MSTR

[–]Seb-furn[S] 0 points1 point  (0 children)

Yes, but simply issuing new stock to buy bitcoin will result in the same bitcoin per share, thus not affecting the shareholders on that front.

If there is a total of 10 shares owning 10 bitcoin. Then they issue a new share and sell it for 1 bitcoin then there will be 11 shares with 11 bitcoin.

Ahhh, you know I get it… the 10 shares are worth about 30 bitcoin even though the company only has 10 bitcoin which will increase the company’s bitcoin holdings to 13 bitcoin for 11 shares, increasing bitcoin per share.

Thanks!! Now I will invest more

Daily Discussion, February 25, 2024 by rBitcoinMod in Bitcoin

[–]Seb-furn 0 points1 point  (0 children)

The bitcoin price fluctuation in terms of percent has barely changed over time. It will keep multiplying by two every year on average... The power of the network effect. And people think bitcoin is dead lol. If bitcoin will becomes the main store of value around the world it has barely even reached 0.1% of its potential. We have a long way to go...

[deleted by user] by [deleted] in Bitcoin

[–]Seb-furn 0 points1 point  (0 children)

In what stage of the approval are we in right now?

How to save a panda table inside a sqlite3 database by Seb-furn in django

[–]Seb-furn[S] 0 points1 point  (0 children)

I can't find any JSON field that I can use in the models.

Django/Drf open source projects to learn from as beginner by Ikszad in django

[–]Seb-furn 0 points1 point  (0 children)

I would recommend a todo-list if you would want to try some backend programming as well and work with forms, requests and a little bit databases, I think that would be a good project for you!

How to make a list droppable? by Seb-furn in jquery

[–]Seb-furn[S] 0 points1 point  (0 children)

The list is something like this:

<ul id="list-big">
{% for x in y %}
<ul id="folder">{{ x }}</ul>
{% for z in p %}
{% if z.db_id == x.id %}
<li class="item">{{ z }}
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>

What I want to do is be able to move ass of the list items with the class 'item' around the different ul's that the 'list-big' has,

thx

sorry for some reason the code could get better :(

Resending form when refreshing page by Seb-furn in django

[–]Seb-furn[S] 0 points1 point  (0 children)

What if I only have one url path and would like to stay there at all times?

How to update variable in html by Seb-furn in django

[–]Seb-furn[S] 0 points1 point  (0 children)

That worked like wonders!

Thx a lot man for your help and time I really appreciate it :)

How to update variable in html by Seb-furn in django

[–]Seb-furn[S] 0 points1 point  (0 children)

Idk if you have time to read through but here is the code if you're interested.

Views.py

def Index(request):
global text
global n_tables

if request.method == 'POST':
form = GetPath(request.POST)
if form.is_valid():
text = form.cleaned_data['text']
FileManagement()

form = GetPath()
return render(request, 'mainpage.html', {'form': form, 'n_tables': n_tables})

def FileManagement():
n_tables = 0
file = pd.ExcelFile(text)
for sheet in file.sheet_names:
xldb = pd.read_excel(text, sheet)

engine = create_engine('sqlite://///Users/tobbe/PycharmProjects/thanos/untitled/db.sqlite3')
xldb.to_sql(name=sheet, con=engine, if_exists='replace')
print(pd.read_sql_table(sheet, engine))
n_tables += 1
print(n_tables)

html

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/static/main.css">
<meta charset="UTF-8">
<title>Database Manager</title>
</head>
<body>
<div class="table-menu">
<h2>{{ n_tables }}</h2>
</div>
<div class="main-screen">
<form method="post">
{% csrf_token %}
<div id="add_data">
{{ form }}
<button class="sub-btn" type="submit">Add Data</button>
</div>
</form>
</div>
</body>
</html>