Wednesday, January 16, 2008
MintWifi
Here's the link to Wikimint's HowTo for WiFi:
http://www.linuxmint.com/wiki/index.php/MintWifi
http://www.linuxmint.com/wiki/index.php/MintWifi
Powered by ScribeFire.
Running Compiz-Fusion in Lenovo Y410 with LinuxMint 4.0 codename Daryna
My laptop (Lenovo Y410) comes with the integrated Intel GMA X3100 GM965 video card. When I installed LinuxMint Daryna and tried to enable Desktop Effects (Preferences > Appearance), error message was thrown stating "Desktop Effects could not be enabled".
Although the correct video driver was installed out-of-the-box, Compiz-Fusion would not work. After a little research, I found out that I needed to comment out
the following line (that is, put a “#” in front of it) on the
“/usr/bin/compiz” file:
Although the correct video driver was installed out-of-the-box, Compiz-Fusion would not work. After a little research, I found out that I needed to comment out
the following line (that is, put a “#” in front of it) on the
“/usr/bin/compiz” file:
T=”$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12″ # intel 965
So, in the end it should look like this:
#T=”$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12″ # intel 965
This is the case because the Compiz developers decided to black list
this card for the time being due to some limitations with the current
Intel driver. I think this is related to video playback, although I
have not had any problems. I guess if I do, I will simply disable the
special effects temporarily to get around the issue.
Powered by ScribeFire.
Bash script to automate compiling ALSA in Ubuntu
Here are the scripts (for any kernel, not just 2.6.22):
alsa_1.sh
----------------------------
alsa_2.sh
------------------------
alsa_1.sh
----------------------------
#!/bin/sh
#
#install necessary stuff
apt-get install build-essential ncurses-dev gettext
apt-get install linux-headers-`uname -r` checkinstall
/bin/rm -f /usr/src/alsa
mkdir -p /usr/src/alsa
cd /usr/src/alsa
echo "downloading alsa packages..."
ver=`wget -O - ftp://ftp.alsa-project.org/pub/driver/|grep driver/alsa-driver|sort -n|grep -v '[0-9]rc[0-9]'|tail -1|sed 's/^.*alsa-driver-//;s/.tar.*//'`
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-${ver}.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${ver}.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${ver}.tar.bz2
echo "extracting alsa packages..."
tar -xjf alsa-driver*.tar.bz2
tar -xjf alsa-lib*.tar.bz2
tar -xjf alsa-utils*.tar.bz2
rm alsa*.tar.bz2
#alsa-driver
cd /usr/src/alsa/alsa-driver*
./configure --with-cards=hda-intel
make
#make install
mkdir ./doc-pak
echo "alsa-driver-${ver}" > description-pak
dpkg -r alsa-driver*
checkinstall -D --pkgname alsa-driver --pkgversion ${ver}-cust
#alsa-lib
cd /usr/src/alsa/alsa-lib*
./configure
make
#make install
mkdir ./doc-pak
echo "alsa-lib-${ver}" > description-pak
dpkg -r alsa-lib*
checkinstall -D --pkgname alsa-lib --pkgversion ${ver}-cust
#alsa-utils
cd /usr/src/alsa/alsa-utils*
./configure
make
#make install
mkdir ./doc-pakecho "alsa-utils-${ver}" > description-pak
dpkg -r alsa-utils*
checkinstall -D --pkgname alsa-utils --pkgversion ${ver}-cust
echo "now reboot your machine, and run alsa_2"
#end of alsa_1alsa_2.sh
------------------------
#!/bin/sh
#for after reboot
cp -v /lib/modules/`uname -r`/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/`uname -r`/ubuntu/media/snd-hda-intel/snd-hda-intel.ko
cp -v /usr/src/alsa/alsa-driver*/modules/* /lib/modules/`uname -r`/kernel/sound/
depmod -a
#end of alsa_2Powered by ScribeFire.
Change bootup and console resolution
640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200
--------+--------------------------------------------------------------
4 bits | ? ? 770 ? ? ? ?
8 bits | 768 769 771 773 353 775 796
15 bits | ? 784 787 790 354 793 797
16 bits | ? 758 788 791 355 794 798
24 bits | ? 786 789 792 ? 795 799
32 bits | ? ? ? ? 356 ?
Powered by ScribeFire.
Saturday, January 12, 2008
Javascript APIs
- MooTools, is a compact, modular Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.
- sIFR is meant to replace short passages of plain browser text with text rendered in your typeface of choice, regardless of whether or not your users have that font installed on their systems. It accomplishes this by using a combination of javascript, CSS, and Flash.
- Prototype is a JavaScript Framework that aims to ease development of dynamic web applications. Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.
- jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.
Powered by ScribeFire.
Subscribe to:
Posts (Atom)