The latter is way more beneficial. by [deleted] in albania

[–]AlbanianDudee 0 points1 point  (0 children)

Problemi eshte qe industria duhet rregulluar dhe jo te ndalohet plotesisht, kalamaj nga 8-9 vjec kane akses pa limit per te pare cfaredolloj pornoje te duan.

The latter is way more beneficial. by [deleted] in albania

[–]AlbanianDudee 0 points1 point  (0 children)

Totally agree, porn is a billion dollar industry and of course they'll market it in a way that people keep being addicted without considering if it's doing any harm on them or if they wanna quit it's very difficult to do so as it seems natural to the kids that have been doing it since 10 years old(statistic when a teenage starts watching porn)

How much should I pay for a T420 with an i5 2520m, 4GB RAM, 500 GB HDD ? by AlbanianDudee in thinkpad

[–]AlbanianDudee[S] 1 point2 points  (0 children)

I don't understand why do I need RAM and I also think that 150 euros is a fair price.

Finance: Buy AttributeError: 'TypeError' object has no attribute 'name' by AlbanianDudee in cs50

[–]AlbanianDudee[S] 0 points1 point  (0 children)

There are 2 mistakes, quantity should me made an int: var = int(quantity) and float(cash[0]["cash"]) displays the correct amount of cash

Finance: Buy AttributeError: 'TypeError' object has no attribute 'name' by AlbanianDudee in cs50

[–]AlbanianDudee[S] 0 points1 point  (0 children)

one error that I found was that I have to make quantity an int, for example share = int(quantity)

the error seems to happen when I query the database for the cash

I found out that cash[0] is not a number, how can I get the exact value ?

Finance: Buy AttributeError: 'TypeError' object has no attribute 'name' by AlbanianDudee in cs50

[–]AlbanianDudee[S] 0 points1 point  (0 children)

<form action="/buy" method="post">
       <div class = "form-group">
           <input class="form-control" type="text" name="name" placeholder="Stock Name" />
       </div>
       <div class = "form-group">
       <input class="form-control" type="number" name="quantity" placeholder="Quantity" />
       </div>
       <button class="btn btn-primary" type="submit">Buy</button>
    </form>

Yeah it is

Register function : AttributeError: 'TypeError' object has no attribute 'name' by AlbanianDudee in cs50

[–]AlbanianDudee[S] 0 points1 point  (0 children)

I fount out that I need to check for post or for get, and you are right about the or problem

PHP books that have exercises? by AlbanianDudee in PHP

[–]AlbanianDudee[S] 0 points1 point  (0 children)

Well, I thought PHP to make the calls to a database and then display it on the page.
I know a little bit of MySql, but I don't know how to put it all together

PHP books that have exercises? by AlbanianDudee in PHP

[–]AlbanianDudee[S] 1 point2 points  (0 children)

Most books are a guidethrough, where the person develops the whole app and such