crc modbus function for python
July 6th, 2007Here is a simple crc16 generator from the modbus 300 reference. It is translated from c into python.
enjoy crc16.py
bitsbam exists to serve a few purposes for which i need a web domain. This site is secondary. But, while you're here, enjoy.
Here is a simple crc16 generator from the modbus 300 reference. It is translated from c into python.
enjoy crc16.py
how to get basic support for rhtml files in scribes or gedit in ubuntu
first download this file (use save as) and put it into /usr/share/mime/packages/
then download this file and put it in /usr/share/gtksourceview-1.0/language-specs/
then open a terminal and type
sudo update-mime-database /usr/share/mime/
then you should be good to go.
i will post some templates for rails when i get a chance.
Note: the language file is a hacked together mix of the html and ruby
language files, if someone knows a better way to pull this off, i would like to have it.
i know that this works for gedit and scribes in ubuntu edgy and fiesty. It should work in other editors based on gtk-sourceview also.
EDIT: the two above files have been modified by Daz (Darren Jones), who improved them in a few ways, including adding support for rjs files ! He also sent me his own templates, and gave me permission to post them here.