View allAll Photos Tagged Programmers.
Programmer Raymond Phathanavirangoon interviews Chris Chong, director of Karaoke, after the screening. Chong studied and worked in Toronto, and apparently became friends with Raymond then; he thanks the latter in the closing credits of the film.
Pat's Pretty Pointless Python Program Produces Palindromic Primes....
And here is a version of the source code which generated the image
(with underscores representing the original's indentation):
[
def isPrime(i):
__ if 0 == i % 2: return 2 == i # ..... Evens are non-prime, except '2'
__ if 1 == i: return False # ............ Technically, 1 is not prime
__ for div in xrange(3, int( i**0.5 ) + 1, 2): # ... Check odd divisors up to my sqrt, inc.
____ if 0 == i % div: return False
__ return True
def palindromeEven(s): # ..... Mirror the full input => even-length output
__ return s + s[::-1] # ............ [::-1] means 'scan backwards, in steps of 1'
def palindromeOdd(s): # ...... Mirror the input, except its final character => odd-length output
__ return s + s[:-1][::-1] # ...... [:-1] means 'trim off the final character
def retGenPalints(): # .......... Return a generator of palindromic integers.
__ lo = 1 # ........................... Note: 'yield' returns each element of a re-entrant sequence
__ while True:
____ hi = lo * 10
____ for i in xrange(lo, hi): yield int( palindromeOdd( str(i) )) # ....... odd length
____ for i in xrange(lo, hi): yield int( palindromeEven( str(i) )) # ...... even length
____ lo = hi
def retGenPrimePalints(): # ........... Return a generator of prime palindromic integers.
__ return (n for n in retGenPalints() if isPrime(n)) # .. This is a 'generator expression'
def somePrimePalints(some): # ..... Return a list of 'some' prime palindromic integers.
__ genPrimePalints = retGenPrimePalints()
__ return list( genPrimePalints.next() for i in xrange(some) )
]
BTW: This approach is reasonably efficient, but certainly not optimal. I have another version, which runs faster, but is harder to understand.
A mysterious being. We're not exactly sure where he came from or even really what he is. But we do know that he is highly intelligent, and can explain away most anything thrown at him. He is extremely skilled in the ways of 'Geek', and quotes everything from Monty Python to Hitchhiker's Guide to the Galaxy. The Programmer brings us knowledge of his world, along with how to fix our computers and other things, like say, get around a school's block. He is our reliable pet geek, although to others he is Pasosta, Supreme Overlord l-l4><012 (haxor). He can destroy your precious computer with a few clicks of a mouse and some typing on a keyboard.
Fashion items on the website.
He was once a senior computer programmer, but today he heads an online fashion platform that has 100 million registered female users.
Meilishuo CEO Xu Yirong, believes that technology is the driving force in the modern fashion industry. Beijing, China, 12/02/2015
Irina is part of my team, a brilliant web developer by day, a fashionista and club kid by night. She's also a sweet young Russian girl who just missed being a member of the Young Pioneers.