Category: note2self

BIP210 Proposal (DOA)

Considering current P2SH (multisiginature) implementation in bitcoin-core [] ,for any set of 3 public keys we have six possible 2 out of 3 multisig addresses. The order of the keys in the set has direct effect on address generation and even signing one multisignature transaction. let me show you what I mean: let’s say we have these 3 addresses Read More

A lost night in Launch Images

I used to take Apple Developer documentations as a holy book, they had everything, all the details needed to do anything, you just had to have the links in mind and look for them in the right place, but all in one great reference list. I decided to a long forgotten app in iOS AppStore Read More

Django/Mysql on Mac OS X Mountain Lion

Log-like errors and solutions while starting a project in Django with Mysql Database: Downloading Mysql for mac from: Install mysql-5.6.14-osx10.7-x86_64.pkg and the .prefs file for system preference control Installing django : sudo pip install django Installing MySQL-python : sudo pip install MySQL-Python ERROR: /private/tmp/pip-build-root/MySQL-python/distribute-0.6.28-py2.7.egg sh: mysql_config: command not found Traceback (most recent call last): File Read More

Good Old BackTracking

It’s been a while that I’ve used BT5, for various reasons I was integrating everything in the Mac OS X. but eventually I got to this conclusion that it’s better to have the good old hacking package in the virtual machine than to screw up all the normal work with the hacking stuff… not SAFE. Read More

3.5″ past digging

I had an old 3.5″ internal hard that I brought with me to Montreal 2 years ago. The data in the hard was for my PC back in Iran that had everything I had since 2000ish all in folders so messed up it took me awhile to see who I was and what happened that Read More

Note2Self – Add WordPress Admin User

Just a usefull query to add wordpress admin user via sql access (phpmyadmin, php shell or anything 3117 😉 ) adding the user to the database: insert into `wp_users` values (USER_ID,’USERNAME’,’PASSWORD’,’NICKNAME’,’EMAIL’,’WEBSITE’,’TIME’,’ACTIVATIONKEY’,0,’DISPLAYNAME’); e.g: insert into `wp_users` values (2,’admin1′,’password’,’admin1′,’’,’’,’2012-07-22 09:18:41′,’1234qwer’,0,’admin1′); adding the required permissions as an Admin to the user INSERT INTO `wp_usermeta` VALUES (ID, USERID, ‘wp_capabilities’, Read More