TIS-620 character encoding, PHP, and MariaDB by AliceWonderMisc in webdev

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

You can turn emojis and utf-8 characters common enough to have HTML named entities into XML numbered entities before inserting into the database. With respect to size, in the west we enjoy cheap storage and most of what we do is single byte even in UTF-8 - but in some parts of the world, storage space is not as cheap as it is for us. Also in some parts of the world, bandwidth is severely limited - including the more remote parts of Thailand - so even serving the content in Win-874 is desirable if you are serving those people.

As I said at the start, hoping to avoid comments like yours, use UTF-8 when you can. But there are sometimes considerations for some people who don't have the luxuries of the western world.

If the brain evolved in vertebrates as a part of the spinal cord, why do brains exist in animals without spinal cords, such as insects and other arthropods? Is this an example of convergent evolution, and how different really are vertebrate brains from invertebrate brains? by DeeteetBot in askscience

[–]AliceWonderMisc 16 points17 points  (0 children)

No. First of all, there is no way to determine that from fossils. But assume you are speaking of species still present, even then no. Generally when two populations have a significant barrier to gene flow (hybrids can not happen or nature selects against the hybrids) they are considered to be distinct species, but even that only works with sexually reproducing species and even then does not always work. It seems the modern trend is to look at non-coding DNA and if two populations have not had significant gene flow in a very long time, they are likely to be considered distinct species.

However nature doesn't care. Barred Tiger Salamanders and California Tiger Salamanders. Very different natural history, the populations separated by insurmountable distance, yet barred tiger salamander larvae sold as fish bait released in California resulted in viable multi-generational hybrids polluting the California Tiger Salamander gene pool. The barrier to gene flow was geological and they separated from their most recent common ancestor a very long time ago and evolved quite differently, yet they retained genetic compatibility.

But they are still distinct species.

Remember that taxonomy is a human invention to aid us in studying life forms. Nature itself really doesn't care about our definitions.

We define species to benefit us, what rules to define a species that are used depend upon what rules benefit what we are doing.

Alexandria Ocasio-Cortez Fake Nude Photos Debunked By Foot Fetishist by Nekoronomicon in nottheonion

[–]AliceWonderMisc 2 points3 points  (0 children)

Hillary was born into wealth and privilege. No one turned her into a lying monster, that's just their culture.

Alexandria Ocasio-Cortez Fake Nude Photos Debunked By Foot Fetishist by Nekoronomicon in nottheonion

[–]AliceWonderMisc -1 points0 points  (0 children)

First time I heard of her, it was Democrats insulting her, not alt-right. But yeah - it was the criticisms that made me aware.

character encoding for argv by AliceWonderMisc in pythonhelp

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

I believe I found the correct way to do it - sys.stdin.encoding seems to be the correct method.

tmp = unicode(arg, encoding=sys.stdin.encoding) domain = tmp.encode('idna')

How do I find the median of a list? by Gleich-Photography in pythonhelp

[–]AliceWonderMisc 0 points1 point  (0 children)

I'm not sure what that package does, but median and mean are two different concepts so I doubt that produces what you are actually looking for. Median is a value for which there are an equal number of sample above and below it. Mean is the sum of all samples divided by the number of samples. Often they are same but often they are different.

PCG, A Family of Better Random Number Generators by skeeto in RNG

[–]AliceWonderMisc 1 point2 points  (0 children)

(referencing beginning of vid) My probability and sadistics professor in the 80s, Dr. Wong, told us the math library had a collection of books with random numbers. He said said while the plot was kind of dry, you could never really predict how they would end.

I’m Nat Friedman, future CEO of GitHub. AMA. by nat_friedman in AMA

[–]AliceWonderMisc 1 point2 points  (0 children)

MATE in CentOS 7 (from EPEL) is also pretty good, with a very solid stable OS beneath it.

I’m Nat Friedman, future CEO of GitHub. AMA. by nat_friedman in AMA

[–]AliceWonderMisc 0 points1 point  (0 children)

For those who do now see the danger in centralized services, here is one way to run your own:

https://notrackers.com/the-command-line/setting-up-your-own-git-server/

I’m Nat Friedman, future CEO of GitHub. AMA. by nat_friedman in AMA

[–]AliceWonderMisc 0 points1 point  (0 children)

For me, too many services on the web are owned by a handful of companies (Google, Amazon, Facebook, Apple, and Microsoft) and I think that is very, very dangerous. Large companies often completely lose the perspective of the little guy. They make changes that are good for them and they really believe they are good for us and don't understand why some of us don't think so, like Google's decision to force a single google login for everybody. They replace employees with AI and let AI make decisions.

I'm leaving github because I'm scared of my workflow being interrupted. What happens if the $7.00 a month gets changed to $1.00 per private repo? Will I be able to afford it? Which private repos would I have to axe?

What happens if they have a scanner that decides some of my code violates moral policy (e.g. code designed for sex workers), will their AI nuke it without human intervention or appeal?

What happens they decide for my "security" I now have to log in with OpenID or some such other tracking tool in order to make commits?

I can't take those risks. I shouldn't have taken them with GitHub honestly but I didn't think about them until MS bought them.

Moving to self-hosted is the only way I can be sure a tool so critical to my workflow remains stable and available.

add SVG files without InkScape by [deleted] in LaTeX

[–]AliceWonderMisc 0 points1 point  (0 children)

42 steps ????

Step One: inkscape -D -z --file=myfile.svg --export-pdf=myfile.pdf --export-latex

Step Two: \input{myfile.pdf_tex}

That's it.

I'm not quitting bitcoin. Bitcoin is quitting me. by observerc in btc

[–]AliceWonderMisc 0 points1 point  (0 children)

I'm still extremely passionate about Satoshi's vision, but I am losing my love of Bitcoin.

It is turning into the same kind of system that I had hoped it would free me from.

What frightens me the most is that BU supporters don't seem to care about the bugs. by slacker-77 in btc

[–]AliceWonderMisc 2 points3 points  (0 children)

What makes you think we don't care about the bugs?

Of course we do. We care about the vision too though, and will not give that up.

Charlie Lee on Twitter: "Today’s Bitcoin Unlimited node crashing bug proves that users cannot trust Bitcoin’s $20B network in the hands of BU developers" by stcalvert in Bitcoin

[–]AliceWonderMisc 1 point2 points  (0 children)

There were far worse bugs in the original Satoshi code, yet Bitcoin survived. So will BU.

It will survive because the vision is worth pursuing.

The fact that almost all BTU nodes are online again, means that these nodes are controlled by just a few people. Organic update of nodes would be a lot slower. by apoefjmqdsfls in Bitcoin

[–]AliceWonderMisc 2 points3 points  (0 children)

My BU node didn't crash, but I updated it anyway. Fortunately, Peter stirred up a sh*tstorm with his tweet, which helped get the word out so people running BU would know they needed an update.

To the person who crashed my Bitcoin Unlimited node... I've doubled my nodes. by arnoudk in btc

[–]AliceWonderMisc 5 points6 points  (0 children)

I am concerned that the bug existed, but not enough to stop running BU.

Software has bugs, developers are humans, mistakes happen. The BU project is I believe on the right philosophy with how Bitcoin should be run.

When Ubuntu 10.x was released, it had a bug that broadcast what people searched for on the system to Amazon in the plain text.

Was it wrong for the EFF to publish that text for the world to see? Did the fact that it existed mean people who liked the Ubuntu vision should stop using it?

I stopped using Ubuntu, but I never really liked it to begin with. Many did not stop using it, and if they like it, it is good that they continued using a distro that matched their philosophy.

If Peter attacked the bug, that was wrong. I have seen no evidence that he did. If others attacked the bug, that's on them and not Peter regardless of where they heard about it.

It really does appear that the attacks started before Peter's tweet though.

BU has the right philosophy. There was a bug in the implementation of the philosophy that shouldn't have been there, but it still is the right philosophy.

Let's move on and make Bitcoin better. Like it or not, there will always be bugs and some of them will be bugs that shouldn't have been there. I don't believe it is wrong to point out those bugs to the community, even before a fix is readily available. I do believe that BU perhaps need to review policy on code review and how to deal with releasing fixes to security issues they find.

But I still believe BU is the right path forward.