Monday, February 22, 2010

Installation of Curb

Monday, February 22, 2010
Again, this morning i had a problem in installing the curl library onto my desktop@office. Thanks for not bringing the power charger for Ellen, Achiq.

But it was good anyways. Since now i figured out the exact commands to install curb, not like yesterday when installing it on the laptop. So many installation commands had been used yet errors kept flooding in, till finally a miracle (?? ahaha) happened. :D

So, basically when you typed;

$ sudo gem install curb

And this produced error like;

Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
"-fno-strict-aliasing -g -g -O2 -fPIC $(cflags)"
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.


Then, do this where you will type in;

$ sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev

and,

$ sudo gem install curb

Nanikore?? TBC.

Sunday, January 10, 2010

JavaScript

Sunday, January 10, 2010
JavaScript; people usually mistake it as same as Java programming language. Actually, both of Java and JavaScript are completely different. JavaScript is in fact another programming or computer language which is used to make the web pages interactive to users.

There is no special program required for you to be able to create usable code. Any plain text editor such as Notepad is quite satisfactory for being able to write JavaScript. For a beginning, let us try writing some code to look at. :)

1) Open the Notepad or any other text editor.
2) Write the code as below (Remember that JavaScript must always have the 'script' tags):



3) Save it as test.html.
4) Try to run the file in any browser. Would you get it appear like this?



See, the pop-up box appears as the result of the JavaScript code.

So, that is an example of how interactive a web page can be. :)

Thursday, January 7, 2010

Using Huawei E1762 in Karmic Koala

Thursday, January 7, 2010
I'm now happily using Huawei E1762 of broadband modem in my newly Jaunty-upgraded-to-Karmic. :D

After having problems configuring it in Jaunty (and that i surrendered from trying it there), my senior colleague asked me to try doing the configuration in Karmic, instead. Actually it has been one or almost two weeks after the instructive command made, but only this evening i pulled the will to give it some more try. I NEED to use my Ubuntu anyway, and of course with the Internet connection available.

I googled about Huawei E1762 in Karmic Koala and, yes, i got some helpful manuals for installing it. Perhaps the problem of using this new model of Huawei modem has just been fixed, because i remember during the past weeks when i was still having Jaunty Jackalope on my laptop, there were not much information on installing it on neither Jaunty nor Karmic.

So now, what i did previously today was that;

1. I downloaded a new usb_modeswitch.conf, and put it in /etc
2. I opened the terminal, and typed;
sudo usb_modeswitch idProduct=1446 idVendor=12d1
(this was when the modem seemed not to give any response, so after i typed the command, i unplugged the modem and then replugged it again and yeay, 'Mobile broadband connection 'Maxis E1762' active'!)

Thanks to Br. Umarzuki Mochlis! :)

Special for Technical Writings (?)

Assalamu'alaykum.
Welcome to my new blog, specially created for other than personal thingies to be written here. Hopefully there will be lots of beneficial posts uploaded in the future, insyaAllah. (^_^)
 
@Chiq & Stuff © 2008. Design by Pocket