-
Solve vcvarsall.bat Python Windows installation
When installing python modules in Windows 8, this errors is very common and very hard to find solution. I spent 2 hours only to solve this issues 1Unable to find vcvarsall.bat The solution is quite straight-forward: 1. Install Visual Studio 2008 VC Setup http://go.microsoft.com/?linkid=7729279 VS 2008 : http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso 2. Install Microsoft SDK http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en 3. After […]
-
Setup Queue in Django using Celery and RabbitMQ
I’m using Ubuntu for setup queue in Django using celery and rabbitmq. Go to console and we need to install rabbitmq at first: 1. RabbitMQ 1234wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc sudo apt-key add rabbitmq-signing-key-public.asc sudo apt-get update sudo apt-get install rabbitmq-server To adjust system limits (in particular the number of open file handles), edit the file /etc/default/rabbitmq-server to […]
-
Cleanup local branch and sync with Remote Git
Here is git command to cleanup local branch and sync with remote : 1git branch –merged | grep -v "\*" | egrep -v "master|dev" | xargs -n 1 git branch -d
-
Update reference models in Haystack problem solved
When we put reference model in part of index and get updated, it will NOT changed in main model. Here is some example: models.py 12345class UserProfile(CommonInfo): city = models.ForeignKey(City) def __unicode__(self): return unicode(self.code) With search indexes : userprofile.txt 1{{ object.city.name }} When “CITY” models is updated, let […]
-
Bootstrap Chosen
Here is the links: http://akrabat.com/software/styling-a-chosen-select-to-fit-bootstrap-3-better/
-
Jquery Icheck checkbox checked or not
Here is snippet to check if checkbox is checked or not in Jquery iCheck: 12345$(‘input[name="some-input-name"]’).on(‘ifToggled’, function (event) { if ($(this).is(‘:checked’)) { alert(‘checked’); } });
-
Solve ImportError: cannot import name IncompleteRead
When doing “pip install -r requirement.txt”, suddenly i got this erros out of nowhere. Fyi, I’m suspecting upgrade “requests” module may cause this issue. 12345678910111213141516Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point(‘pip==1.5.4’, ‘console_scripts’, ‘pip’)() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File […]
-
TypeError: __init__() got an unexpected keyword argument ‘preserve_default’
Quickfix to solve ; 12345678 migration_module = import_module("%s.%s" % (module_name, migration_name)) File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module __import__(name) File "D:\Python\vasham\dashboards\migrations\0004_auto_20141112_1644.py", line 7, in <module> class Migration(migrations.Migration): File "D:\Python\vasham\dashboards\migrations\0004_auto_20141112_1644.py", line 18, in Migration preserve_default=True, TypeError: __init__() got an unexpected keyword argument ‘preserve_default’ Is 1pip install django […]
-
Installing Process Designer in Windows 8 / Server 2012
After download Process Designer from IBM BPM, then you can go : 1C:\Program Files\IBM\Installation Manager\eclipse Execute eclipse. Then in preferences, just add the repository to Process Designer folder : 1D:\IBM\IBM Process Designer\IMPD85\repository.config
-
Setup IBM BPM in Azure
Here is step to setup IBM BPM in Azure. 1. Setup VM 2. Enable ports using Azure Powershell After login into Windows: 1. Enable policy rules for IBM BPM ports 2. Install DB2 3. Create database http://www-01.ibm.com/support/knowledgecenter/SSFPJS_8.5.0/com.ibm.wbpm.imuc.ebpm.doc/topics/db_create_nd_win_db2.html After installed, run “db2cmd”: 12345db2 create database PDWDB automatic storage yes using codeset UTF-8 territory US pagesize 32 […]
-
Change DNS Hostname Window Server 2012
To change Windows Server 2012 Hostname (I use for BPM installation), please go to : 1. Control Panel 2. System Security 3. System Properties 4. Change your computer name