Posts

Parser Error Message: Could not load file or assembly 'Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

The issue was because the Micrsoft Web Services Enhacement toolkit was not installed. link is here: http://www.microsoft.com/download/en/details.aspx?id=14089 That solved it. Thanks /alak

ImportError: Can't load a json library while easy_install Tweepy

was playing with these: - http://parezcoydigo.wordpress.com/2011/04/23/twitter-from-the-command-line/ - http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth Was trying to install Tweepy library for python. Encountered below: 1) yum install python-setuptools -y [success] 2) easy_install tweepy [success] 3) Made a simple script, trying to make use of Tweepy [Failed] so tried to easy_install simplejson, also failed: [root@chi alakClient]# easy_install simplejson Searching for simplejson Reading http://cheeseshop.python.org/pypi/simplejson/ Reading http://github.com/simplejson/simplejson Reading http://cheeseshop.python.org/pypi/simplejson/2.1.6 Best match: simplejson 2.1.6 Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6.tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5 Processing simplejson-2.1.6.tar.gz Running simplejson-2.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mEH9fn/simplejson-2.1.6/egg-di...

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)

Installed mysql 4 from dmg ackage, 64 bit. started mysqld from preferences, but when trying to connect received this error: MyCOmp~ # mysql5 -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (38) The issue? well, few things: 1) make sure the /opt/local/var/run/mysql5/ directory does exist. 2) make sure proper permission, for write purpose for mysql user: sudo chown mysql:admin /opt/local/var/run/mysql5/ 3) create and softlink it to proper places. which in my case, i took example of my.cnf from /opt/local/share/mysql5/mysql/my-small.cnf then after renaming it to /opt/local/etc/mysql/my.cnf. i then softlink this to /etc/mysql/my.cnf. Note that you might need to create the directory /etc/mysql And then it works like a charm. :) /alak

Word 2007: Numbering for Thesis and Dissertation

Image
Well, its for stevens.edu library, but nevertheless, knowledge is knowledge. A reminder to self. /alak

Transmission on a CentOS

Image
So its my time to set up my own Transmission. Yeah, late, but still, yeah.. just leave me alone will yeah. >.< List of references: (1) http://geekery.blog.com/category/linux/transmission-rpms/ (2) https://trac.transmissionbt.com/wiki/EditConfigFiles (3) http://superuser.com/questions/113649/how-do-you-set-a-password-for-transmission-daemon-the-bittorrent-client-server I have a 32-bit Centos 5: [root@chi /]# uname -a Linux chi 2.6.18-238.9.1.el5.pony5-1 #3 SMP Fri Jun 3 16:37:31 PDT 2011 i686 i686 i386 GNU/Linux [root@chi /]# So first i went and download all five of those transmission 2.31 daemon + cli from LINK (1) of my referense list. However, just incase, i mirrored them here : repo.alak.cc/transmission2.31/ Next, as per the instructions, i import the GPG key, and instaled all the RPMs: [root@chi trans]# rpm --import http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY [root@chi trans]# rpm -ivh libevent-2.0.10-1geekery.$(uname -i).rpm Preparing... ...

AIX : Check Process occupying a port

Ripped from here, for my own reminder: http://vistababa.wordpress.com/2008/09/14/which-process-is-using-the-port/ a. Show if the specified is being used. The hex number in the first column of the result is the address of protocol control block (PCB): #netstat -Aan | grep Port_Number b. Dsiplay the process who is holding the socket: #rmsock Address_of_PCB tcpcb Note: That rmsock, unlike what its name implies, does not remove the socket, if the socket is being used by any process. Instead of removing the socket, it just reports the process holding the socket. Also note that the second argument of rmsock is the protocol. It’s tcpcb in the example to indicate that the protocol is TCP. Example: #netstat -Aan | grep 23 f10000f3019c9b58 tcp 0 0 *.23 *.* LISTEN #rmsock f10000f3019c9b58 tcpcb The socket 0x19c9800 is being held by proccess 278614 (inetd). #ps -lp 278614 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 240001 A 0 278614 364626 0 60 20 d121a400 468 – 0:00 inetd That's all ...

Wargamesmy 2011 - Binary100

Image
This is a very cilake ayam challenge. kudos to p0pc0rn for guiding me. Steps ==== 1) execute the binary with interval of 1 second. 2) get the strings and order it accordingly by the numbering on most left. 3) Its a fscking ASCHII art! demkit ayam! And where is the fscking flag? Here: Thanks. /alak