Wednesday, September 19, 2012

another crash

hda-intel: Invalid position buffer, using LPIB read method instead. fuse init (API version 7.13) udev: starting version 147 gnome-panel[2604]: segfault at 18 ip 00007f66f6c21aa6 sp 00007fffb5a5d7e0 error 6 in libgobject-2.0.so.0.2200.5;5059e53b (deleted)[7f66f6bff000+43000] Bridge firewalling registered type=1305 audit(1348069794.191:63): audit_pid=0 old=1655 auid=4294967295 ses=4294967295 res=1 type=1305 audit(1348069794.298:64): audit_enabled=0 old=1 auid=500 ses=1 res=1

fix laptop - dmesg

hda-intel: Invalid position buffer, using LPIB read method instead. hda-intel: Invalid position buffer, using LPIB read method instead. type=1305 audit(1348062320.507:32359): auid=4294967295 ses=4294967295 op="remove rule" key=(null) list=4 res=1 type=1305 audit(1348062320.507:32360): audit_enabled=0 old=1 auid=4294967295 ses=4294967295 res=1 readahead-collector: starting delayed service auditd hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj. readahead-collector: sorting readahead-collector: finished fuse init (API version 7.13) lo: Disabled Privacy Extensions chrome[3942]: segfault at 160000002d ip 00007f0c6a319d81 sp 00007fff5cf1c450 error 4 in chrome[7f0c69044000+454b000] chrome[3947] general protection ip:7f0c6a1bfe04 sp:7fff5cf1c500 error:0 in chrome[7f0c69044000+454b000] chrome[3976] general protection ip:7f0c6a1f4665 sp:7fff5cf1ca70 error:0 in chrome[7f0c69044000+454b000] chrome[4000] general protection ip:7f0c6a1c1e53 sp:7fff5cf1cd50 error:0 in chrome[7f0c69044000+454b000] chrome[4008]: segfault at 80000000b ip 00007f0c6a2222b4 sp 00007fff5cf1bdb0 error 4 in chrome[7f0c69044000+454b000] Bridge firewalling registered

Fixing the laptop

This kernel seems to be working. stick to this one. uname -r 2.6.32-220.el6.x86_64 grabbing backups from other laptops - again!!! grrrrr!

Installing Google Chrome on CentOS 6.x x86_64

Download "64 bit .rpm (For Fedora/openSUSE)" sudo yum install redhat-lsb sudo rpm -Uvvh sudo rpm -Uvvh google-chrome-stable_current_x86_64.rpm

CentOS yum message - yawn

WFT is this crap now? after yum update... There are unfinished transactions remaining. Please run yum-complete-transaction as root. yum gimme a break!

Thursday, August 30, 2012

Teach me how to fish - python exception handling

I really do want to understand this documentation: from `pydoc try`

The ``try`` statement
*********************

The ``try`` statement specifies exception handlers and/or cleanup code
for a group of statements:

   try_stmt  ::= try1_stmt | try2_stmt
   try1_stmt ::= "try" ":" suite
                 ("except" [expression ["as" target]] ":" suite)+
                 ["else" ":" suite]
                 ["finally" ":" suite]
   try2_stmt ::= "try" ":" suite
                 "finally" ":" suite
So what exactly does the first line mean?
try_stmt  ::= try1_stmt | try2_stmt
. It's a bit confusing as I know how to implement very simple try statements like this;
try:
    import io
    print("importing io")
except ImportError:
    print("nothing to import")
    foo = None
try:
    import somefunctionthatdoesnotexist
    print("importing ...")
except ImportError:
    print("nothing to import")
    foo = None

Tuesday, August 21, 2012

fpm - flipping package manager

fpm -t rpm \
 --name dc_fe \
 --package dc_fe-`date +%d-%m-%y`.rpm \
 --license 'O2 Labs' \
 --architecture noarch \
 --description "automated build of digital confidence git repo" \
 --category 'Applications/Internet' \
 --maintainer 'John Maclean '\
 --url https://github.com/dogfood20/digital_confidence \
 --vendor 'John Maclean ' \
 --url 'https://github.com/dogfood20/digitalconfidence_fe.git' \
 -s dir /home/jmaclean/work/o2-network/digitalconfidence_fe