What is the meaning of yachts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Process | |
import os | |
import sys | |
class MyProc(Process): | |
def run(self): | |
# Define the logging in run(), MyProc's entry function when it is .start()-ed | |
# p = MyProc() | |
# p.start() | |
self.initialize_logging() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Call a redis function several times with this wrapper if it has been observed that | |
there are intermittent ResponseError exceptions and/or otherwise illegal return values. | |
Collect the good output and return that if it exists in some of the calls. | |
Example Usage: | |
rdb_cnxn = redis.ConnectionPool(host='localhost', port=6379, db=1) | |
rdb = redis.StrictRedis(connection_pool=rdb_cnxn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This is a brief output snippet associated with https://github.com/andymccurdy/redis-py/issues/496 | |
''' | |
rdb_cnxn = redis.ConnectionPool(host='localhost', port=6379, db=1) | |
rdb = redis.StrictRedis(connection_pool=rdb_cnxn) | |
output = rdb.hgetall('my_classes') |
This use case is an example of the use of a back end ioq service to integrate data sources. It has the goal to be able to combine ps
command and lsof
command outputs, to have fuller access to the data describing running system and user processes.
Specifically, there is a limitation where the lsof
command does not allow someone to see more than 15 characters for the command
name on many systems.
Basic Steps
- Define a use case using the ioq service RESTful web API.
- What are the sources?
- What is the desired end ontology?
- Create a basic application that queries against the ioq service using its RESTful web API.
- wow .. took too long to come across this nugget
- https://stackoverflow.com/questions/21136766/clojure-printing-functions-pr-vs-print
pr/prn
is toprint/println
for human readability.
user=> (def d1 {:foo {:nil true :and "yay"}})
#'user/d1
user=> (prn "ok... " d1)
"ok... " {:foo {:nil true, :and "yay"}}
df = df.loc[:,~df.columns.duplicated()]
- somehow wasnt able to achieve this effect through simple merges...
app.core=> (make-auth-options)
{"client_id" "xxxxxblah", "secret" "xxxxblah"}
app.core=> (type (make-auth-options) )
CompilerException java.lang.RuntimeException: Unable to resolve symbol: in this context, compiling:(/private/var/folders/mj/7bwn1wld4pscycn91fpjn1h40000gn/T/form-init1933255439273248076.clj:1:1)
app.core=> (def a (make-auth-options))
#'app.core/a
app.core=> (type a)
...
OlderNewer