Friday, January 25, 2008

Bug 1341 - wlan0 disappears after running for a while

remove driver and install again causing wlan0 authenticated and associated (don't need reset system) do this:
modprobe -r iwl4965 (verify by modprobe -l | grep -i iwl4965)
modprobe iwl4965
------------------------upgrade driver iwlwifi.1.2.23 see if it fixes the problem.
tar xvf iwlwifi.1.2.23
cd iwlwifi.1.2.23
make
make install

mm-applet

It popups 2 windows:
This has nothing to do with root privileges, you are prompted this message because nm-applet wants to use the wifi key (WEP i guess) stored in the keyring. What is the gnome-keyring?

mm-applet
Passphrase required by wireless network – A passphrase or encryption key is requred to access wireless network linksys

to disable by delete /home/YOUR NAME/.gnome2/keyrings/default.keyring

if connect to other AP then mm-applet and Passphrase may appear again then you can do from terminal

you could ignore it and enter

iwconfig wlan0 ESSID " " mode Managed key .... and it's still working

in case the icon for wireless disappear can bring it back by Computer > Filesystem > usr > bin"
then double click to run "nm-applet

http://www.linuxquestions.org/questions/linux-general-1/keyring-problem-415928/
http://ubuntuforums.org/showthread.php?t=622066

Thursday, January 24, 2008

If your PC has 2 connections: wire and wireless where the data will go

It will go to wire first then wireless after.
It seems to me when connect to wireless router and wire to another PC. The dhclient will write into resolv.conf with the info of nameserver and domain of the wire network. Therefore, the data will flow into wire.
dmesg:

ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mobile IPv6
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:16:b6:c0:0d:e9
wlan0: RX authentication from 00:16:b6:c0:0d:e9 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:16:b6:c0:0d:e9
wlan0: RX AssocResp from 00:16:b6:c0:0d:e9 (capab=0x401 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
r8169: eth0: link up
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
ip_tables: (C) 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (8192 buckets, 65536 max)

dhclient-resolv.conf

dhclient writing my /etc/resolv.conf so here how to add extra stuff into resolv.conf
gedit /etc/dhcp3/dhclient.conf and add
prepend domain-name-servers 192.168.1.1 (router)
then run
dhclient
check /etc/resolv.conf for 192.168.1.1
(ubuntu run dhclient from /etc/dhcp3)
man dhclient-script for more details

if wlan0 then resolv.conf
search phub.net.x.x.com
nameserver 192.x.2.1 (cable modem)
nameserver 192.x.1.1 (router)
nameserver 64.71.255.x

if eth0 then resolv.conf (via XP)
search mshome.net
nameserver 192.x.1.1
nameserver 192.x.0.1

all done automatic by dhclient
kill -9 dhclient (if want to run again it shows error already pid file /var/run/dhclient.pid)

Wednesday, January 23, 2008

wifi 4965AGN - iwlwifi system LED's blinking and hang - P205-S6267

There are 3 parts for wifi to work:
- mac80211 subsystem must be installed
- tar xvf iwlwifi-4965-ucode-4.44.17.tgz (firmware)
- iwlwifi-1.2.23.tgz (driver)

Fixed by using mac80211-8.0.1 instead of mac80211-10.0.0, the lastest version of MAC802.11 has bugs causing the crash.
http://intellinuxwireless.org/?p=iwlwifi&n=howto-iwlwifi
-----------------------Build mac80211 for kernel
% wget \
http://intellinuxwireless.org/mac80211/downloads/mac80211-10.0.4.tgz
% tar xvf mac80211-10.0.4.tgz
mac80211-10.0.4/origin/GIT
mac80211-10.0.4/origin/net/mac80211/Makefile
...
% cd mac80211-10.0.4
% make
Building modified version in 'modified/' directory:
Copying modified/ from origin/...done
Applying patches and scripts from pending/.
+ Applying: pending/14-d46...0bb780bba2b5db.patch
...
% make patch_kernel <-- You need to be root for this
Patching from compatible/ to /lib/modules/2.6.18-gentoo-r6/build/:
+ Replaced 43 files
% cd /lib/modules/$(uname -r)/build
% make menuconfig
...

Networking --->
Generic IEEE 802.11 Networking Stack (dscape)
...
% make modules && make modules_install
% make all
% make install

% modprobe mac80211
----------------------Firmware
For Intel Wireless WiFi 4965AGN users:
% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.17.tgz
% tar xvf iwlwifi-4965-ucode-4.44.17.tgz
% cp iwlwifi-4965-ucode-4.44.17/iwlwifi-4965.ucode /lib/firmware/
For Intel PRO/Wireless 3945ABG/BG Network Connection users:
% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-2.14.4.tgz
% tar xvf iwlwifi-3945-ucode-2.14.4.tgz
% cp iwlwifi-3945-ucode-2.14.4/iwlwifi-3945.ucode /lib/firmware/
-----------------------Driver
-------------------------------------------------------
http://bughost.org/bugzilla/show_bug.cgi?id=1477


------- Additional Comment #1 From Zhu Yi 2007-09-24 20:51 [reply] -------
1.1.0 (stable) or 0.1.16 (development) fix the problem.


% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1.1.0.tgz
% tar xvf iwlwifi-1.1.0.tgz
% cd iwlwifi-1.1.0
% make
% make install

-------------------------
http://gentoo-wiki.com/HARDWARE_Toshiba_Satellite_P200-141
# Install mac80211
tar xvf mac80211-8.0.X.tgz
cd mac80211-8.0.X
make
# Patch the kernel
make patch_kernel
cd /usr/src/linux
make menuconfig
# Enable Networking/Improved wireless configuration API/
# Enable Networking/Improved wireless configuration API/cfg80211 Wireless Extensions compatibility
# Enable Networking/Improved wireless configuration API/ nl80211 new netlink interface support
# Enable Networking/Improved wireless configuration API/
# Enable Networking/Generic IEEE 802.11 Networking Stack (dscape)
# Maybe disable Device Drivers/ Network device support/Wireless LAN (non-hamradio)/Wireless Extension API over RtNetlink
make
make modules_install
update-modules

# reboot your system with the new kernel
# Install the microcode
wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.14.tgz
tar xvf iwlwifi-4965-ucode-4.44.14.tgz
cp -a iwlwifi-4965-ucode-4.44.14/* /lib/firmware/
# Install the module
tar xvf iwlwifi-0.0.X.tgz
cd iwlwifi-0.0.X
make
make install
-------------------------

Sunday, January 20, 2008

answers.com

A dictionary version 2 options: install as add-on for firefox or install in PC for all applications get the definition by ALK-click at the same time. It is nice to read the news in the morning with the coffee before work and has answers just a click away. If you are working on web apps or graphic design, surfing the webs like: nbc, cnn, abc, msnbc, abc or other websites is the best way to get the ideas.
It is used voice plugin for dictionary from QuickTime and after installed make sure its property for compatible is unchecked for XP otherwise it will hang when try using this plugin.
Like comments/video

Saturday, January 19, 2008

OOP

Object:
Objects are the basic run-time entities in an object-oriented system. Every object is associated with data and functions which define meaningful operations on that object.


Features of OOPs are the following:



Encapsulation
Data abstraction
Inheritance
Polymorphism
Message
passing
Extensibility
Persistence
Delegation
Genericity
Multiple Inheritance

Sunday, January 13, 2008

Create RSS widgetbox

Write PHP program to create XML file depending on the post. This file can be updated periodic. Choose widgetbox then embedded the XML file i.e. rss.xml or using feeder name http://feeds.feedburner.com/gatherx