Re: Codon ? Colon more like
I'm guessing you own a Mac, where you end up with about 5 different python installations on your computer?
6415 publicly visible posts • joined 6 Aug 2016
Quite a lot of my variables come from accessing external web services, and as far as I can see, there is no way of telling from looking at the program what you are going to get.
If I then import it into a Numpy array, then I tell it at that stage what it is going to be, but even then if it isn't it will try to convert it (eg if I tell it it is a float, and it gets a string comprising of the numbers 0-9 + . + possibly a "-" at the start, then it will be able to convert it into a float).
The same I guess applies if you read them from a file or possibly even from a database query.
But really, if you want the speed of a compiled language, then you should probably write it in a compiled language, and a knock-off version of Python probably isn't the best option for a compiled language. People choose Python because of the libraries and general ecosystem that surrounds the language, not because of some magical properties of the language itself. If this only supports a subset of Python, is it still Python, or is it some other language that looks a bit like Python?
OK, you are looking at the position in 10 years time if you put $1bn in now.
That is fine, but isn't relevant to what happened at SVB. What is relevant to them is how much they would get now for an investment that pays out $1bn in 10 years time. And, because interest rates have gone up, the answer is, a lot less than before they went up.
$1bn in 10 years time is worth $951,110.13 at 0.5%, but only $664,832.64 at 4% - you multiply by (1-r)^t where r is the rate in decimal and t is time in years. You do the same for each of the interest payments you are due to receive on the bond for the smaller values of t.
So, if interest rates go up, the value of your bond goes down, not up.
From The Financial Times:
The banking group’s troubles stem from a decision made at the peak of the tech boom to park $91bn of its deposits in long-dated securities such as mortgage bonds and US Treasuries, which were deemed safe but are now worth $15bn less than when SVB purchased them after the Federal Reserve aggressively raised interest rates.
They provide banking services for venture capital firms, which is a very different proposition to actually investing in their funds.
Office account receives management fees from the funds invested, pays out salaries, bonuses, rent, all the other expenses. There is a risk that the management fees don't come in, but is that a risk for the bank?
The assets were mostly government bonds, which are very safe.
However, because they are fixed rate bonds, if interest rates go up, which they have done, then the immediate resale price will go down. The amount of money you receive on redemption in maybe 25 years time will stay the same, and the interest payments you receive will stay the same, but that isn't much help if you need to sell them now to repay customer deposits.
Graph Databases probably won't overtake relational databases any time soon, or indeed ever. But that doesn't mean they are useless.
Neither type of database is going to overtake Excel, but likewise, that doesn't mean that everyone should migrate the business logic over to Excel spreadsheets.
Use the right tool for the job rather than try to shoehorn everything into the same platform.
"Write an article about a new branch of McDonalds opening in Poundbury, Dorset."
Here is a possible article based on your request:
McDonald’s opens new branch in Poundbury
McDonald’s, the world’s largest fast food chain, has opened a new branch in Poundbury, an experimental urban development on the outskirts of Dorchester, Dorset. The branch is located on Queen Mother Square, a central plaza named after the late Queen Elizabeth The Queen Mother.
The new branch is part of McDonald’s expansion plan in the UK, where it aims to open 200 more restaurants by 2024. The company said it chose Poundbury for its unique design and vision, which is based on traditional architecture and New Urbanist principles as advocated by King Charles III when he was Prince of Wales and Duke of Cornwall.
“We are delighted to be part of Poundbury’s vibrant community and offer our customers a convenient and enjoyable dining experience,” said John Smith, the manager of the new branch. “We have designed our restaurant to blend in with Poundbury’s distinctive style and character, while also providing modern amenities and services such as free Wi-Fi, self-order kiosks and table service.”
The new branch has created 40 jobs for local residents and will operate from 6am to 11pm daily. It will also participate in McDonald’s environmental initiatives such as recycling packaging waste, reducing plastic use and sourcing ingredients from local suppliers.
Poundbury is home to more than 4,600 people and 240 businesses, including shops, cafés, a garden centre and an art gallery. Visitors to Poundbury can use free parking to explore its attractions or enjoy its events such as farmers’ markets, craft fairs and concerts.
McDonald’s is one of the latest additions to Poundbury’s diverse food scene, which also includes Italian restaurants, Indian takeaways, bakeries and pubs. The new branch hopes to attract both locals and tourists who are looking for a quick bite or a family meal.
Everyone involved in WW1 is dead now, though there are some people who were children at the time in the oldest living persons list. The woman at the top of the list was about 11 when the war ended, and the 50th oldest person was about 7.
There are however still some veterans of WW2 still alive, though mostly they would have been in very junior ranks, not the ones making the decisions.
"What is the OPENAI_API_KEY"
"The OPENAI_API_KEY is a secret token that you need to use the OpenAI API. You can generate one on your OpenAI account page. You can set it in code using openai.api_key = 'yourkey' or as an environment variable. Please keep your key safe and do not share it with anyone. [key emoji]"
I was hoping it would give me an actual key.
Some problems:
If you take an atomic clock up to the moon, it won’t remain in sync with a similar clock on earth.
I presume a lunar day isn’t anything link a terrestrial day in terms of length
I’m not sure if the moon has any concept of a year in terms of changing seasons.
Given that the terrestrial month sort-of relates to phases of the moon, I assume that would apply to phases of the Earth up there? It is mostly arbitrary these days down here, but maybe it could actually be really important on the moon?
I asked it for the time of the next train from my local station to a nearby city, which is the sort of thing a normal person might ask it.
It gave me a very plausible, but completely wrong answer to my question.
Siri, who is widely considered, even amongst Apple fans, to be the dumbest smart-assistant out there, will either give the correct answer (or at least correct according to the published timetable / most recent GTFS feed), or say she doesn't know the answer.
There is a difference between deleting some dodgy material, but not all of it; and actively recommending dodgy material unprompted when visiting the front page of the website.
Right now, YouTube is recommending me a load of videos from people telling everyone that the earth is round and that people who believe it is flat are idiots.
I mean, the earth is round, and people who believe it is flat are indeed idiots, but the topic is not of much interest to me.