Two years ago, as part of GSoC 2011, I started working on an implementation of composite fields as a means to support multi-column primary keys in models. While the project was successful, the timeframe wasn't sufficient to finish it and get it into a state where it
This file contains hidden or 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
Script started on Sat 07 Jul 2012 11:42:21 AM CEST | |
Creating test database for alias 'default'... | |
Creating test database for alias 'other'... | |
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF....F.............................................F...............................................................................................................................................................................ss.............................EEEE.EE.........................................F..........................................................s................................ |
This file contains hidden or 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
GSoC 2011 Proposal: Composite Fields | |
==================================== | |
About me | |
-------- | |
My name is Michal Petrucha. I'm an undergrad student of computer science | |
at the Faculty of Mathematics, Physics and Informatics, Comenius | |
University, Bratislava, Slovakia. |
This file contains hidden or 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
#!/bin/bash | |
RUN=1 | |
trap "echo Terminated.; RUN=''" TERM | |
trap "echo Exiting.; sleep 1; echo 'Now really exiting.'" EXIT | |
while [ -n "$RUN" ]; do | |
echo "Tick." | |
sleep 1; |
This file contains hidden or 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
#INCLUDE "hostio.inc" | |
#USE "hostio.lib" | |
#USE "snglmath.lib" | |
VAL INT NUM.CELLS IS 47: | |
VAL INT OUTPUT.FIELD.WIDTH IS 3: | |
INT32, INT32 FUNCTION Random.bit(VAL INT32 seed) | |
-- Generates pseudo-random numbers. Returns an INT32 with a value of 0 or 1. | |
INT32 new.seed, result: |
- Update HISTORY.rst
- Update version number in
my_project/__init__.py
- Update version number in
setup.py
- Install the package again for local development, but with the new version number:
python setup.py develop
- Run the tests:
python setup.py test
This file contains hidden or 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
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
import collections | |
import os | |
from smb.smb_constants import FILE_READ_DATA | |
from smb.SMBConnection import SMBConnection, OperationFailure | |
from smb.security_descriptors import ( |
I hereby claim:
- I am koniiiik on github.
- I am koniiiik (https://keybase.io/koniiiik) on keybase.
- I have a public key whose fingerprint is 517D 3563 6E0D B0B4 4950 DF2D 703B 4FF2 0F33 F925
To claim this, I am signing this object: