Saturday, March 28, 2009
trixbox backup and restore
Install tbm-backup trixbox module in both machines, create a backup in BOTH machines, restore the backup from old machine into the new one (mysql password for asteriskuser may not be the same so before the restoration of the backup file make them the same).
windows 2003 limit bandwidth usage per IP
1. squid with delay pools support
(http://markus.revti.com/2007/06/installing-squid-cache-for-windows/)
2. softperfect bandwidth manager
(http://markus.revti.com/2009/01/squid-transparent-proxy-server-on-windows-server-2003/)
(http://markus.revti.com/2007/06/installing-squid-cache-for-windows/)
2. softperfect bandwidth manager
(http://markus.revti.com/2009/01/squid-transparent-proxy-server-on-windows-server-2003/)
Tuesday, March 17, 2009
Saturday, March 14, 2009
multiple domain controllers (DC) on the same LAN
Use the DHCP of one of the DCs and split the LAN into 2 SUB-LANS
this is done using a superscope in the DHCP of domain controller.
- one scope 192.168.1.0/255.255.255.128
- another scope 192.168.1.128/255.255.255.128
The two sub scopes will not be able to access one another
Put one of the servers in first scope and the other in the second one.
In the scope options each have their own DNS and default route
To make the clients become a member of a certain scope fix the clients MAC address and create a reservation
this is done using a superscope in the DHCP of domain controller.
- one scope 192.168.1.0/255.255.255.128
- another scope 192.168.1.128/255.255.255.128
The two sub scopes will not be able to access one another
Put one of the servers in first scope and the other in the second one.
In the scope options each have their own DNS and default route
To make the clients become a member of a certain scope fix the clients MAC address and create a reservation
Saturday, March 07, 2009
vmware guest OS on windows RRAS host OS problem
If you need to have vmware installed on a machine with RRAS, because of incompatibilities between proxy arp of RRAS and vmware your guest OS packets will not be routed, what you need to do is:
[in this example host machine has 2 NICs. One toward Internet and one local.]
1. Add a NIC to the host machine. (not virtual)
2. In the guest OS bridge one NIC to the Internet NIC of the host OS and the other to the newly added NIC of the host OS (which is connected to the local LAN)
3. Assign an IP address to the host and guest machine (the same range as the host machine)
Walla! ping outside
[in this example host machine has 2 NICs. One toward Internet and one local.]
1. Add a NIC to the host machine. (not virtual)
2. In the guest OS bridge one NIC to the Internet NIC of the host OS and the other to the newly added NIC of the host OS (which is connected to the local LAN)
3. Assign an IP address to the host and guest machine (the same range as the host machine)
Walla! ping outside
Wednesday, March 04, 2009
vnc enterprise vncconfig problem
run vncconfig with the -service parameter to change the config of the service mode not user mode
"E:\Program Files\RealVNC\VNC4\vncconfig.exe" -service
"E:\Program Files\RealVNC\VNC4\vncconfig.exe" -service
Sunday, February 15, 2009
mysql import and export
export:
mysqldump -u user -p db > dump.sql
import:
mysql -u user -p db < dump.sql
mysqldump -u user -p db > dump.sql
import:
mysql -u user -p db < dump.sql
Friday, February 13, 2009
howto install cpanel
It is not free, needs a licence from cpanel.net after the trial period
Installing cPanel on a linux box is as simple as:
cd /home
wget layer1.cpanel.net/latest
sh latest
from: http://paragonhost.wordpress.com/2006/11/16/howto-install-cpanel-on-a-linux-os-server/
Installing cPanel on a linux box is as simple as:
cd /home
wget layer1.cpanel.net/latest
sh latest
from: http://paragonhost.wordpress.com/2006/11/16/howto-install-cpanel-on-a-linux-os-server/
Tuesday, February 03, 2009
Saturday, January 31, 2009
Office 2003 Slow send in Vista
simply remove all office 2007 components on your PC and things will be cooooooool :)
Tuesday, December 30, 2008
نیاز به حساب درست و حسابی بانکی و نتایج اعتماد


ما سرویس "حساب بانکی آمریکا" را در سایت ابزارها ازگوگل پیدا کردیم http://www.abzarha.com
پول دادیم (130 هزار تومان). و برای ما با پست یک عدد کارت فرستادند و یک بروشور.
با خدمات مشتریان صادر کننده کارت در آمریکا تماس گرفتیم و فرمودند این فقط کارت است حساب بانکی نیست.

سعی کردیم در پی پل رجیستر کنیم دوباره به دیوار خوردیم.
جواب های این فروشنده محترم جناب آقای مهدی جزینی را بینید.
نامه دوم و جواب ایشان
-----Inline Attachment Follows-----پول دادیم (130 هزار تومان). و برای ما با پست یک عدد کارت فرستادند و یک بروشور.

با خدمات مشتریان صادر کننده کارت در آمریکا تماس گرفتیم و فرمودند این فقط کارت است حساب بانکی نیست.

سعی کردیم در پی پل رجیستر کنیم دوباره به دیوار خوردیم.
جواب های این فروشنده محترم جناب آقای مهدی جزینی را بینید.
نامه دوم و جواب ایشان
Dooste aziz in hesabha hich moshkeli nadare! (lotfan bejaye karhaye bachegane kami ham be harfhaye man deghat konin bad nist !!!) ini ke shoma migin paypal ekhtar mide ke nemitoone add kone. ehtemalan az shanse shoma boode. (motasefane hamishe ham shanse bad dare khooneye kasaii ro mizane ke az hame talabkaran !!! ) gooya kasi ehtemal midam shomareye hesabesho dar paypal masalan yeki do adad pasopish zade (ke hesabe shoma boode) va hamoontor ke midoonin vaghti kasi shomare hesabi ro be paypal add kone. hata ghabl az confirm oon. hich rahi baraye pak kardane oon nadare. magar inke shoma ba customer support paypal tamas begirin va begin >>> ehtemalan kasi shomareye hesabe shoma ro be eshtebah dar paypalesh add karde ke confirm ham nashode. va oonha ba kamale meyl va be sadegi pas az gereftane etelaati az shoma va taiide oon be sadegi oono pak mikonan ta shoma betoonin hamoon banketoon ro add konin. be hamin sadegi. dige vaghte pasokhgooii bishtar ro be shoma nadarimchoon saremoon sholooghebe khatere 5 toman sood dahane tarafo service nemikonan ke shoma kardin !!!bye
On Tue, Dec 30, 2008 at 2:23 AM, Ali Sadeghi-Ardestani
Dear Sir,Looks like my account number which no one knew except you and me has been already registered in paypal. Please check attachment.
Regards,
Ali Sadeghi Ardestani
نامه اول و جواب ایشان
dooste man eshtebah az ma naboode bank be ma etela nadade bood ke tarigheye doroste wire be in accountha chi hast. choon taze oomade. hamoontor ke dobare khedmatetoon email kardam shoma bayad be soorati ke dar file attach shode dar in email dadam havale konin na mostaghim!va agar balad nistin ke yek sarafi dorost peyda konin inkar ro ham baratoon anjam midam vali dige baghish be ma marboot nist. ma ke nabayad ta payane omre donya shoma ro support konim!!! ma faghat forooshandeiim. har moshkeli darin dige ba poshtibaniye hamoon bank tamas begirin moshala englishetoon ham ke khoobe!!!
in linke yek sarafi dar tehran hast ke ba (bank of america) ham kar mikone:
http://www.ketabeavval.ir/Profile/?id=136433
dige baghish be ma marboot nemishe bazam migam ma faghat forooshandeiim va support ba hamoon telephoni hast ke dar broshooretoone
On Mon, Dec 29, 2008 at 3:35 PM, Ali Sadeghi-Ardestani
Dear Sir,
After the attached transaction was rejected twice by two different exchange houses and I lost 135,000 TOMANS for money transfer costs and right after I got the Bank of America Transfer Information from you, I talked to customer support and told them that I need to have this account to buy stocks so the my brokrage firm that is buying the stocks for me needs to have access to my account using a direct method like
ACC NUMBER+NAME+BANK+ROUTING or any other method like this.
They said and I quote "Your account with us is not connected to a bank, so you can not get your brokerage firm to access your account. All you can do with this card is to get your employer to put your salary here and you can then get cash from ATMs". Alhamdolella I did not try the second method you offered otherwise I would have lost more. They asked where I got the card from and I gave them your website, they said that I can ask you for the same card but the Visa enabled one. I do not think you have it, because I asked you once.
When I asked about transfers from paypal, they said I can use paypal but as you may already know paypal has really strict rules about fraud and once they get a feeling that your activity is strange they simply block your account just like my old paypal account.
Now what I am asking you is to refund me and get your card back and also to remove the "HESABE BANKI AMRIKA" from your website because it is misleading and very simply put not TRUE not forgetting how time/money consuming it is to come to the above conclustion.
Regards
Ali Sadeghi Ardestani
Monday, December 29, 2008
Excel find nth occurrence of a string within another
Function FindN(sFindWhat As String, _
sInputString As String, N As Integer) As Integer
Dim J As Integer
Application.Volatile
FindN = 0
For J = 1 To N
FindN = InStr(FindN + 1, sInputString, sFindWhat)
If FindN = 0 Then Exit For
Next
End Function
sInputString As String, N As Integer) As Integer
Dim J As Integer
Application.Volatile
FindN = 0
For J = 1 To N
FindN = InStr(FindN + 1, sInputString, sFindWhat)
If FindN = 0 Then Exit For
Next
End Function
Sunday, December 28, 2008
Friday, December 26, 2008
utorrent slow download
remember to update tcpip.sys using http://www.lvllord.de/?url=downloads&lang=en every time you install a service pack. This helps increase the number of half open connections from 10 to 50. And downloads will explode.
Thursday, December 25, 2008
create RPM repository from ISO DVD CD
Thanks to http://www.cyberciti.biz/tips/redhat-centos-fedora-linux-setup-repo.html
# mkdir -p /var/www/html/centos/5/os/i386
# mount -o loop /path/to/centos.iso /var/www/html/centos/5/os/i386
** (put it in /etc/fstab later)
createrepo /var/www/html/centos/5/os
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
baseurl=http://$IP_ADDRESS/centos/5/os/
enabled=1
gpgcheck=0
service httpd restart
** not other servers is the subnet can use this repository as well as this service onto which the iso resides
# mkdir -p /var/www/html/centos/5/os/i386
# mount -o loop /path/to/centos.iso /var/www/html/centos/5/os/i386
** (put it in /etc/fstab later)
createrepo /var/www/html/centos/5/os
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
baseurl=http://$IP_ADDRESS/centos/5/os/
enabled=1
gpgcheck=0
service httpd restart
** not other servers is the subnet can use this repository as well as this service onto which the iso resides
Sunday, November 09, 2008
Wordpress Persian (Farsi) bluehost
1. Install wordpress from bluehost interface
2. Install the farsi patch from wp-persian.com
3. edit the wp-config-sample.php and remove the below:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
2. Install the farsi patch from wp-persian.com
3. edit the wp-config-sample.php and remove the below:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Sunday, October 05, 2008
mysql change database charset to unicode
SELECT concat('ALTER TABLE `', t.`TABLE_SCHEMA`, '`.`', t.`TABLE_NAME`, '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;') as stmt
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'database_name'
ORDER BY 1
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'database_name'
ORDER BY 1
Friday, October 03, 2008
OLAT email problem
once you could not send emails and came accross this:
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk]
java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.(javax.mail.Session, javax.mail.URLName)
you should install java mail components, I installed:
geronimo-javamail-1.3.1-api-1.1-4jpp
sun-mail-1.4-3jpp
classpathx-mail-1.1.1-4jpp.2
And the problem was solved.
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk]
java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.
you should install java mail components, I installed:
geronimo-javamail-1.3.1-api-1.1-4jpp
sun-mail-1.4-3jpp
classpathx-mail-1.1.1-4jpp.2
And the problem was solved.
Tuesday, September 23, 2008
jdk installation
when installing jdk depenging on the version for JRE to work correctly as well
java-sun-compat
has to be installed too.
for example for jdk-6u6-linux-i586.rpm to work along with tomcat you need to install java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm as well, otherwise tomcat and the applications that need jre 1.5 upwards will not work.
java-sun-compat
has to be installed too.
for example for jdk-6u6-linux-i586.rpm to work along with tomcat you need to install java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm as well, otherwise tomcat and the applications that need jre 1.5 upwards will not work.
Friday, September 05, 2008
Strange Linux PPTP problem
When using Linux PPTP service web pages fail to load completely [freeze] (aka common PPTP MTU problem) all one has to do is to:
> cat /etc/ppp/ip-up.local
#!/bin/bash
/sbin/ifconfig $1 mtu 1400
> cat /etc/ppp/ip-up.local
#!/bin/bash
/sbin/ifconfig $1 mtu 1400
Subscribe to:
Posts (Atom)