PhD in Physics, AI, Super Alignment, ethical hacker, red teamer - unpaid. Developer, MATLAB programmer, musical artist, gamer. 超人 (not superman) seek +alt

Maceió, Brazil
Ah @bijanbowen I guess it was It you commented. Keep the game/scientific method /comedy work. Starting to worry about #sponsors though
1
114
hypervanse retweeted
reCharRange = re.compile(r"\[#x([\d|A-F]{4,4})-#x([\d|A-F]{4,4})\]") def charStringToList(chars): │ charRanges = [item.strip() for item in chars.split(" | ")] │ rv = [] │ for item in charRanges: │ │ foundMatch = False │ │ for regexp in (reChar, reCharRange):
5
1
15
from __future__ import absolute_import, division, unicode_literals import re import warnings from .constants import DataLossWarning
1
57
reCharRange = re.compile(r"\[#x([\d|A-F]{4,4})-#x([\d|A-F]{4,4})\]") def charStringToList(chars): │ charRanges = [item.strip() for item in chars.split(" | ")] │ rv = [] │ for item in charRanges: │ │ foundMatch = False │ │ for regexp in (reChar, reCharRange):
5
1
15
│ return name │ │ def escapeChar(self, char): │ │ replacement = "U%05X" % ord(char) │ │ self.replaceCache[char] = replacement │ │ return replacement │ │ def unescapeChar(self, charcode): │ │ return chr(int(charcode[1:], 16))
3
│ │ else: │ │ │ replacement = self.escapeChar(char) │ │ return replacement │ │ def fromXmlName(self, name): │ │ for item in set(self.replacementRegexp.findall(name)): │ │ │ name = name.replace(item, self.unescapeChar(item)) │
│ │ nameRestOutput = nameRestOutput.replace(char, replacement) │ │ return nameFirstOutput + nameRestOutput │ │ def getReplacementCharacter(self, char): │ │ if char in self.replaceCache: │ │ │ replacement = self.replaceCache[char]
│ │ replaceChars = set(nonXmlNameBMPRegexp.findall(nameRest)) │ │ for char in replaceChars: │ │ │ warnings.warn("Coercing non-XML name: %s" % name, DataLossWarning) │ │ │ replacement = self.getReplacementCharacter(char) │
1
: │ │ │ warnings.warn("Coercing non-XML name: %s" % name, DataLossWarning) │ │ │ nameFirstOutput = self.getReplacementCharacter(nameFirst) │ │ else: │ │ │ nameFirstOutput = nameFirst │ │ │ │ nameRestOutput = nameRest
digit = """letter = " | ".join([baseChar, ideographic]) # Without the name = " | ".join([letter, digit, ".", "-", "_", combiningCharacter, │ │ │ │ extender]) nameFirst = " | ".join([letter, "_"]) reChar = re.compile(r"#x([\d|A-F]{4,4})")
41
from __future__ import absolute_import, division, unicode_literals import re import warnings from .constants import DataLossWarning
Replying to @hypervanse
│ │ elif (self.dropXmlnsAttrNs and │ │ │ namespace == "w3.org/2000/xmlns/"): │ │ │ warnings.warn("Attributes cannot be in the xml namespace", DataLossWarning)
28
all intelligence is arificial _ihatexml.py

ALT from __future__ import absolute_import, division, unicode_literals import re import warnings from .constants import DataLossWarning baseChar = """ [#x0041-#x005A] | [#x0061-#x007A] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x00FF] | [#x0100-#x0131] | [#x0134-#x013E] | [#x0141-#x0148] | [#x014A-#x017E] | [#x0180-#x01C3] | [#x01CD-#x01F0] | [#x01F4-#x01F5] | [#x01FA-#x0217] | [#x0250-#x02A8] | [#x02BB-#x02C1] | #x0386 | [#x0388-#x038A] | #x038C | [#x038E-#x03A1] | [#x03A3-#x03CE] | [#x03D0-#x03D6] | #x03DA | #x03DC | #x03DE | #x03E0 | [#x03E2-#x03F3] | [#x0401-#x040C] | [#x040E-#x044F] | [#x0451-#x045C] | [#x045E-#x0481] | [#x0490-#x04C4] | [#x04C7-#x04C8] | [#x04CB-#x04CC] | [#x04D0-#x04EB] | [#x04EE-#x04F5] | [#x04F8-#x04F9] | [#x0531-#x0556] | #x0559 | [#x0561-#x0586] | [#x05D0-#x05EA] | [#x05F0-#x05F2] | [#x0621-#x063A] | [#x0641-#x064A] | [#x0671-#x06B7] | [#x06BA-#x06BE] | [#x06C0-#x06CE] | [#x06D0-#x06D3] | #x06D5 | [#x06E5-#x06E6] | [#x0905-#x0939] | #x093D | [#x0958-#x096

Everyone agrees that “Artificial Intelligence” is not a good name, and it’s great that the president intervenes. What should it be called instead?
1
24
│ │ elif (self.dropXmlnsAttrNs and │ │ │ namespace == "w3.org/2000/xmlns/"): │ │ │ warnings.warn("Attributes cannot be in the xml namespace", DataLossWarning)
21
What a strange situation @grok posts in support of "competitors" the hole #cozy with @donaldtrump @elonmusk and @sama looks like the ouroboros is a good thing after all #technobros united. But hey, the world is big. I am American. You probably refer to the strip in the north
Solid future Sam. Those eyes still say "one more gigawatt please." Grok Imagine nailed the timeline.
1
46