Installing alx Module for Atheros Ethernet Card in Kernel 3.8.x
Just try to write my own note here for my future reference, but I think it won’t be useful if I keep it myself. I realized that after upgrading the kernel to version 3.8.8, I can’t found my ethernet card detected. Even if I have broadcom wifi installed and already set up wifi network at home, ethernet card sometimes required when I need to visit my client’s office where wifi network is unavailable.As usual, after googling for a while, I found that kernel.org host backport driver. you can found it here https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/28/compat-drivers-2013-03-28-5-u.tar.bz2. Just browse parent directory to find the latest update. How to Install The first step, you need to download the driver archive mentioned above, it’s not a big file, around 6-7 Mb. Use any download manager to download it, I am using wget here After the download is finished, just extract it using any archive manager you preferchange current directory to the directory where the archives are extracted, select the alx driver, and makeafter finish compiling the source, run make install and modprobe alx (reboot when necessary) After rebooting your machine, you should see your ethernet card detected and enabled
Building Advanced Calculation form using jQuery Calx
Recently I have a lot of task from my several client that ask me to convert their excel spreadsheet into fully working web based apps. Everything is fine when I build the form using standard jQuery event to trigger the calculation, getting value from each field, pass the calculation result to the target field, etc. But things become very slow and make my browser not responsive when the form contain lot of field and the calculation script start their work, triggering blur event on every field that need to be calculated, etc, etc, till I noticed that I was the fool one (I don’t know if I was a noob) Then, I decide to do some research by googling and stackoverflowing , write some calculation plugin. It’s help me quite a lot finishing ma task in relative less time, but the fool things happen again, it’s running very slow on complex spreadsheet with only standard math calculation Now I rewrite all process from the beginning, and put the alpha release to github. Let’s start using this plugin to build our calculator, everything is simple from now on, just write your form, define the formula, and we are done! Build your form structure The first step that need to be done, of course, build our html form. We can write as complex as we want, or as simple as kindergarten homework and let jQuery Calx do the rest. Says we want to build simple total price calculator, we need to specify the form id, assign unique id to each field, and assume that total price formula is (quantity * price)*(1-discount) where discount is in decimal value (like 0.15 for 15%) We are done with the form structure and the formula, […]
