Monthly Archives: January 2007

PHP / Windows Task scheduling from command prompt

schtasks /create /tn “My Scheduled Jobs” /tr “php-win.exe D:\Program Files\xampp\htdocs\somefile.php” /sc minute
make sure that php-win.exe is in path while giving this command

Setting up a Linux Proxy server using Fedora core 5

Assumption:
- eth0 is the external interface (Connected to internet)
- eth1 is the internal interface (local network) (Fixed IP)
Edit /etc/sysctl.conf to enable ip forwarding permanently.
net.ipv4.ip_forward = 1
Edit /etc/sysconfig/iptables-config and make following changes:
IPTABLES_MODULES=”ip_conntrack_netbios_ns ip_conntrack ip_conntrack_ftp ip_conntrack_irc iptable_nat ip_nat_ftp ip_nat_irc”
IPTABLES_SAVE_ON_STOP=”yes”
IPTABLES_SAVE_ON_RESTART=”yes”
# To clear out any existing rules and set default policy,
# run following commands on command prompt
iptables -P INPUT [...]

Aloha and slotted Aloha protocols

Pure ALOHA protocol
Pure ALOHA protocol is a random access protocol used for data transfer.
User accesses a channel as soon as a message is ready to be transmitted. After a transmission the user waits for an acknowledgement on either the same channel or separate feedback channel. In case of collision (i.e. when a NACK is received), [...]

TCP/IP and OSI

Transmission control Protocol (TCP) was developed before OSI model. Therefore, the layers in the TCP/IP protocol do not match exactly with those in the OSI model. The TCP/IP protocol is made of 5 layers: physical, data link, network, transport, and application. OSI has 7 layers.

Here follows the comparison:
Application layer of TCP/IP = Session, presentation, and [...]

fastcgi lighttpd rubyonrails Error: getcwd no such file or directory

I got this error today while deploying rails application on running lighttpd server.
Errno::ENOENT (No such file or directory – getcwd)
I replaced application directory without stopping lighty and got error while trying accessing app via browser.
I went off by merely restarting lighthttpd
Seems like server creates/uses some file “within” rails app folder which got erased [...]