יום שני, 7 בינואר 2013

How to Debug android device using wireless connection

From StackOverFlow:


See here: http://forum.xda-developers.com/showpost.php?p=7594419&postcount=9
  1. Connect tablet via USB and make sure debugging is working.
  2. adb tcpip 5555
  3. adb connect 10.0.0.2:5555
    (replace with desired address)
  4. Disconnect USB and proceed with wireless debugging.
  5. adb usb to switch back when done.
No root required!

יום חמישי, 5 באפריל 2012

Set permissions to wordpress on plesk

usermod -a -G psacln apache

chmod -R g+w *

httpd -k restart

http://blog.leonardchallis.com/servers/getting-file-permissions-right-in-wordpress/

Need to create upload and change it's owner
 

יום רביעי, 4 באוגוסט 2010

make a bootable vista/7 usb

This operation assumes your machine can boot from a USB enabled device. Check your BIOS to make sure. You also MUST have a DVD copy of Vista to install the source files from the DVD to a USB flash drive:
1. Insert your USB flash drive and enter the following commands:
(please note this list assumes that your USB flash drive will be seen as disk 1. To confirm that it is type "list disk" after you've entered the DISKPART command) Otherwise you may wipe a different drive (such as your hard disk drive!)
2. Type:

diskpart
select disk 1
clean
create partition primary
select partition 1
active
format fs=fat32
assign
exit
At this point your USB drive is formatted. DO NOT format the drive from within Windows. You MUST have a DVD copy of Vista to copy the source files from.

The final preparation step is to copy the installation files to your flash drive, this can be done by running the following command:
(Please note D: is the drive letter for the source files and E: is the drive letter for your flash drive, if they are different on your system you need to change them accordingly).
Exit DISKPART. Type:

xcopy d:\*.* /s/e/f e:\

Thats it, configure usb device as primary boot device in your bios and install.

יום שבת, 9 בינואר 2010

Tiberia Marathon

Links:

http://vimeo.com/6238580?hd=1

יום רביעי, 9 בדצמבר 2009

isntall memcached on centos

from: http://crazytoon.com/2008/01/20/memcached-how-do-you-install-memcached-centos-64-bit-linux-redhat-fedora/


Memcached: How do you install memcached? (CentOS 64 bit, Linux, Redhat, Fedora)

Memcached is a very popular open source object caching server. It was developed to speed up livejournal.com by Danga Interactive. We use memcached for a lot of our sites. We use it for different purposes but one main purpose is to cache query results so we don’t have to keep hitting database. As most of the people who work with databases know it is costly to keep hitting database for same information over and over.

When you run the Memcached daemon, it runs and listens on a specific port. One of the things Memcached does lack is security. Memcached will let anybody who can make a connection to its port have full access to all objects. So you would have to run a firewall to block unauthorized access. It is usually wise to do put firewall on it even if you trust everybody on the same network since accidents do happen. That said, let’s get memcached installed!

Let’s get libevent which is required by Memcached:

wget http://monkey.org/~provos/libevent-1.3e.tar.gz
tar zxpfv libevent*
cd libevent*
./configure
make install

Now let’s download the newest Memcached source (at time of writing this was 1.2.4)

wget http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar zxpfv memcached*
cd memcached*
./configure
make install

Let’s add Memcached user to run daemon as since we don’t need it to run as root privileges.

adduser memcached

We will start the server to use 48 megs of ram (-m 48), listen on ip 10.0.0.2 (-l 10.0.0.2) and run on port 11211 (-p 11211) as user memcached (-u memcached)

./memcached -u memcached -d -m 48 -l 10.0.0.2 -p 11211

If you get the following error (which you will get if you are doing this under CentOS 64 bit):

./memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory

You can fix this by simply doing this:

ln -s /usr/local/lib/libevent-1.3e.so.1 /lib64/

That is all there is to it. You can see if daemon is running by telneting to the port.

————————————-
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.

Install PEAR on centos

$ lynx -source http://pear.php.net/go-pear | php

יום ראשון, 6 בדצמבר 2009

Dealing with SWIG problems Collabnet SVN and TRAC

After installing everything if trac still has problem accessing the svn

try

cp /usr/lib64/libsvn_swig_py-1.so.* /opt/CollabNet_Subversion/lib/