Wednesday, 20 March 2013

AMFPHP installation and solving config error

AmfPHP is to provide a really simple way of connecting a client with a server.

AmfPHP is a Remoting Library for PHP. Key features are support for AMF among other Protocols, and developer tools such as a service browser and a client code generator.

download and put it on the php site address location   /usr/local/apache2/htdocs/index.html
i followed up to 4 step - i get the result..


for details configuration steps follows 

for configuration:-

from http://www.gotoandlearnforum.com/viewtopic.php?f=17&t=20525&start=15


Hi everyone,

Hope this is the last reply for this post.Please follow the steps below for any problem installing AMFPHP 1.9 on your server. I am assuming u are using the version from this link http://sourceforge.net/projects/amfphp/files/amfphp/amfphp%201.9.zip/download

CheckList #1: Delete or comment out every line in the .htaccess file in amfphp folder.
CheckList #2: Check for the version of PHP of the server from this link http://yourserver/amfphp/phpinfo.php
CheckList #3: Most probably it is > 5.3. So u have to add this code on the first line of globals.php in ur amfphp root folder.

Code: Select all
 ini_set('date.timezone', 'America/Los_Angeles');

above this line
Code: Select all
list($usec, $sec) = explode(" ", microtime());

CheckList #4: If the above step does not work then search for the setting
Default timezone
from
Checklist #2.Refer to the image below for reference.
date.jpg
date.jpg (16.2 KiB) Viewed 3022 times

CheckList #5: Open up the file
Code: Select all
amfphp/core/shared/util/MethodTable.php
and jump to line 505. Once there, you need to replace these three lines:
Code: Select all
$comment = eregi_replace(”\n[ \t]+”, “\n”, trim($comment));
$comment = str_replace(”\n”, “\\n”, trim($comment));
$comment = eregi_replace(”[\t ]+”, ” “, trim($comment));

with these three lines below:
Code: Select all
$comment = preg_replace(”'\n[ \t]+'U”, “\n”, trim($comment));
$comment = str_replace(”\n”, “\\n”, trim($comment));
$comment = preg_replace(”'[\t ]+'U”, ” “, trim($comment));

Save and close the file.

Monday, 18 March 2013

version control system

version control system - svn

for easy installation go with
1. server - subversion edge by collabnet  
    client - tortoise svn

for notes: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-preface.html#tsvn-preface-about

Thursday, 21 February 2013

Disable Automatic Updates Adobe Creative Suite CS4

Heres how to disable it from the CS4 iteration of their software offerings.
1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\
2. Set "AdobeOnlineDefault" to "0" (zero). If it doesnt exist, create it as a new String Value.
3. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXSPreferences\
4. Set "UpdatesAllowed" to "0" (zero). If it doesnt exist, create it as a new String Value.


 or


REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe" /f /v AdobeOnlineDefault /d "0"
and
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXSPreferences" /f /v UpdatesAllowed /d "0"
 

Saturday, 5 January 2013

Creating bootable USB for win7

option 1:

Task 1: Making the USB drive an Active Primary Partition.

  1. Open a command prompt (with administrative rights if required by your OS).
  2. At the command Prompt type Diskpart and press enter
  3. Type List Disk and press enter
  4. You will see a list of all the disks on your computer.. A number will identify each disk.
    1. If you do not know which disk is you USB drive go through the list by typing Select Disk 1 enter and then type details. repeat until you know you are on the right USB drive. Hint: It is probably the last one.
  5. Type select disk 4* and press enter. The system will report: "Disk 4* is now selected" (*Where disk 4 is the number of the USB drive, change this number to reflect your system).
  6. Type Clean and press enter. The system will report "DiskPart succeeded in cleaning the disk." This will remove the disk from your current drive letter for your USB.
  7. Type create partition primary and press enter. The system will report "DiskPart succeeded in creating the specified partition."
  8. Type select partition 1 and press enter. The system will report "Partition 1 is now the selected partition."
  9. Type active and press enter. The system will report "DiskPart Marked the current partition as active."
  10. Type assign and press enter.  The system will report "DiskPart successfully assigned a drive letter ..."
  11. Type detail disk and press enter. Details will be listed and under the column heading "LTR" you will see the drive letter. I will assume it is U: for the remainder of the explanation.
  12. Type  exit  and press enter. This will leave the DiskPart context.

Task 2: Formating the USB Drive and copying the install files.

for cd mapping use magioiso -- magicdisk.
  1. If the command prompt is not still open, open the command prompt.
  2. Type format U: /fs:fat32 /q and press enter. (Where U: is the letter of your USB Drive)
  3. A warning will appear indicating all information on the drive will be lost. Type Y and press enter.
  4. You will be prompted to enter a label for the drive. Press enter to continue.
  5. We have now formatted the drive and can proceed to copying the files. Assuming Drive d: for DVD and Drive u: for USB
  6. Type xcopy d:\*.* /s/e/f u:\  . The files will copy and may take a long time depending on the USB drive performance.

 option 2:

use windows 7 usb dvd download tool

create  a bootable usb with the same bit version and os system..
otherwise it won't work...

Tuesday, 25 December 2012

torrent block and port redirection for site browsing

#torrent block


iptables  -A INPUT  -i $INSIDE  -d 0/0 -p tcp --dport 6881:7000 -j DROP
iptables  -A INPUT  -i $INSIDE  -d 0/0 -p tcp --dport 2710 -j DROP

 

port redirection for local site on internet.


# localcard

iptables -A FORWARD -p tcp -i eth0 -d 10.1.1.158 --dport  86 -j ACCEPT
iptables -A FORWARD -p tcp -i eth0 -d 10.1.1.158 --dport 9933 -j ACCEPT
iptables -A INPUT -i eth0 -d 0/0 -p tcp --dport 80 -j ACCEPT


# external card

iptables -t nat -A PREROUTING -p tcp -i eth1 -d 122.183.188.162 --dport 86 -j DNAT --to-destination 10.1.1.158:86

iptables -t nat -A PREROUTING -p tcp -i eth1 -d 122.183.188.162 --dport 9933 -j DNAT --to-destination 10.1.1.158:9933

Friday, 14 December 2012

apache with ssl

 

apache with ssl

 
 
for installation
http://www.modssl.org/example/

for SSL certificate
http://onlamp.com/onlamp/2008/03/04/step-by-step-configuring-ssl-under-apache.html
http://www.apache.com/resources/how-to-setup-an-ssl-certificate-on-apache/

 

how to start apache without manually entering the ssl passphrase


location

/usr/local/apache2/conf/extra

create file - with execution permission
passphrasepassword






passphrasepassword file content
----------------
#!/bin/sh
echo "Im98Redh@7"


httpd-ssl.conf

edit:
SSLPassPhraseDialog  exec:/usr/local/apache2/conf/extra/passphrasepassword


Sunday, 9 December 2012

maya on linux

maya 2009 on fedora 8



Notes:

  
install NVIDIA-Linux-x86_64-310.19.run ( download latest from nvida site)

yum install tcsh

yum install libXp 
 
install maya. 
 
for crack:
---------
use windows cracking method  to create aw.dat

license location /var/flexlm
copy the generated aw.dat into this directory (use windows pc to create aw.dat)
 

for shortcut problems
-------------------- 
GNOME - system - preferences  - look and feel - windows - moment key - select super 
 
KDE - control center - desktop - windows behavior - windows actions - inner windows
- change to nothing 
 
 
maya settings : Window>Settings/Preferences>Hotkeys. 

ref:


maya requir
-----------
http://www.dl4all.com/software/1351950-autodesk-maya-85-windows-linux-and-mac-os-x.html
http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=15458252&linkID=9242258#section12

Ubuntu
------
http://baltazaar.wordpress.com/2009/03/19/installing-maya-2009-64-bit-on-linux/
http://ubuntuforums.org/archive/index.php/t-1030249.html

**shell script : https://gist.github.com/3250500
nvida
-------
http://www.if-not-true-then-false.com/2009/howto-install-nvidia-driver-on-fedora-and-just-disable-the-nouveau-driver/

 
#lspci | grep -i VGA

#rpm -Uvh http://rpm.livna.org/livna-release.rpm
#yum -y install kmod-nvidia glx-utils