Tuesday, May 14, 2019
Failed to start Docker Application Container Engine
https://github.com/moby/moby/issues/16137
Solution:
It seems the problem is in the cyclane protection
need to ask the IT infra team to whitelist the docker container.shim and runc as part of docker installation.
Monday, April 29, 2019
Caddy sounds like candy
I already configure my domain skyguyver.com with Caddy but I need to review again as I can't remember how I did it.
The Caddyfile was placed in /etc/caddy
skyguyver.com {
tls lynardsalingujay@gmail.com
internal /.git
git https://github.com/skyguyver/caddy.git {
hook /github_hook d937c9d4-7c48-431e-8e60-bf916186f613
}
gzip
redir 301 {
if {scheme} is http
/ https://{host}{uri}
}
}
The Caddyfile was placed in /etc/caddy
skyguyver.com {
tls lynardsalingujay@gmail.com
internal /.git
git https://github.com/skyguyver/caddy.git {
hook /github_hook d937c9d4-7c48-431e-8e60-bf916186f613
}
gzip
redir 301 {
if {scheme} is http
/ https://{host}{uri}
}
}
Wednesday, April 24, 2019
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_attachment.py"

Conclusion:
Was able to fix this problem with a workaround: manually going into the database and removing the entries pointing to the missing files from filestoreDELETE FROM ir_attachment WHERE store_fname LIKE '%<the ending hash>%'
reference:
https://www.odoo.com/es_ES/forum/ayuda-1/question/solved-how-to-recover-deleted-attachment-files-from-filestore-folder-local-share-odoo-filestore-128453
Friday, April 19, 2019
Running Odoo and Postgres in separate container
Odoo:
version: '2'
services:
app:
image: skyguyver/odoo9_latest
container_name: develop
ports:
- "3033:8069"
volumes:
- develop-data:/var/lib/odoo
- ./addons:/mnt/extra-addons
environment:
- PYTHONUNBUFFERED=1
- HOST=172.18.0.1
- PORT=3032
- USER=odoo
- PASSWORD=odoo
#command: openerp-server -d develop -u all
volumes:
develop-data:
Postgres:
version: '2'
services:
db:
image: postgres:9.6
ports:
- "3032:5432"
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- dbdata:/var/lib/postgresql/data/pgdata
volumes:
dbdata:
Tuesday, April 9, 2019
Saturday, April 6, 2019
devco trial
Bubbles.py
from collections import OrderedDict
def nonrepeating(orig):
input = orig.lower()
dict=OrderedDict.fromkeys(input,0)
# traverse
for ch in input:
dict[ch]+=1
# nonrepeat
nonRepeatDict = [key for (key,value) in dict.iteritems() if value==1]
print nonRepeatDict
repeatStr = []
for tx in list(orig):
if tx not in nonRepeatDict:
repeatStr.append(tx)
makeitastring = ''.join(map(str, nonRepeatDict + repeatStr))
print makeitastring
if __name__ == "__main__":
orig = "Bubble"
nonrepeating(orig)
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(N):
# write your code in Python 3.6
ret = '+'
flag = '+'
for i in range(1, N):
if flag == '+':
ret += '-'
flag = '-'
else:
ret += '+'
flag = '+'
return ret
Thursday, April 4, 2019
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they dow...
-
I used KeePass long time ago and until now I'm still using it. It's a great tool to save your password encrypted. At my home, I sa...
