jr@Ellen:~/Desktop/Finalized$ ruby finish.rb -f ~/Desktop/Malwarefortest/test3.\{OVL\}\{PE\}
./ssdeep.rb:8: uninitialized constant Ssdeep (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from finish.rb:6
I renamed my older file in the same directory with "finish.rb" from "ssdeep.rb" to "newly.rb". :)
Or i could have just dumped that "ssdeep.rb" to trash. :D
Tuesday, March 29, 2011
Saturday, March 12, 2011
Errors with 'require' in Ruby - Ubuntu 10.04
Saturday, March 12, 2011
I encountered some errors when running my code, just out of the blue; so i googled but didn't manage to find answers for the problem.
./curb.rb:17:in `gets': No such file or directory - 6fd9c1c6b63137c7d93139472696b2e3 (Errno::ENOENT)
from ./curb.rb:17
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from main.rb:18
I had a hunch though, that it might have something to do with my gem, that i tried my luck updating it using the command;
$ sudo gem update -- system
And here is the list of newly updated gems;
$ gem list
*** LOCAL GEMS ***
aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.5, 2.3.5, 2.3.4)
actionpack (3.0.5, 2.3.5, 2.3.4)
activemodel (3.0.5)
activerecord (3.0.5, 2.3.5, 2.3.4)
activeresource (3.0.5, 2.3.5, 2.3.4)
activesupport (3.0.5, 2.3.5, 2.3.4)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.10)
chronic (0.3.0, 0.2.3)
columnize (0.3.2, 0.3.1)
curb (0.7.12, 0.6.6.0)
erubis (2.6.6)
gemcutter (0.7.0, 0.3.0)
haml (3.0.25, 2.2.17)
hoe (2.9.1, 2.5.0)
hpricot (0.8.4)
i18n (0.5.0)
json_pure (1.5.1, 1.2.0)
linecache (0.43)
mail (2.2.15)
mime-types (1.16)
mysql (2.8.1)
parseconfig (0.5.2)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.5, 2.3.5, 2.3.4)
railties (3.0.5)
rake (0.8.7)
RedCloth (4.2.7, 4.2.2)
ruby-debug (0.10.4, 0.10.3)
ruby-debug-base (0.10.4, 0.10.3)
rubyforge (2.0.4, 2.0.3)
rubygems-update (1.6.2, 1.5.0)
sprockets (1.0.2)
system_timer (1.0)
thor (0.14.6)
tlsmail (0.0.1)
treetop (1.4.9)
tzinfo (0.3.24)
whenever (0.6.6, 0.4.1)
And taraaa... Everything works fine now~ :)
./curb.rb:17:in `gets': No such file or directory - 6fd9c1c6b63137c7d93139472696b2e3 (Errno::ENOENT)
from ./curb.rb:17
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from main.rb:18
I had a hunch though, that it might have something to do with my gem, that i tried my luck updating it using the command;
$ sudo gem update -- system
And here is the list of newly updated gems;
$ gem list
*** LOCAL GEMS ***
aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.5, 2.3.5, 2.3.4)
actionpack (3.0.5, 2.3.5, 2.3.4)
activemodel (3.0.5)
activerecord (3.0.5, 2.3.5, 2.3.4)
activeresource (3.0.5, 2.3.5, 2.3.4)
activesupport (3.0.5, 2.3.5, 2.3.4)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.10)
chronic (0.3.0, 0.2.3)
columnize (0.3.2, 0.3.1)
curb (0.7.12, 0.6.6.0)
erubis (2.6.6)
gemcutter (0.7.0, 0.3.0)
haml (3.0.25, 2.2.17)
hoe (2.9.1, 2.5.0)
hpricot (0.8.4)
i18n (0.5.0)
json_pure (1.5.1, 1.2.0)
linecache (0.43)
mail (2.2.15)
mime-types (1.16)
mysql (2.8.1)
parseconfig (0.5.2)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.5, 2.3.5, 2.3.4)
railties (3.0.5)
rake (0.8.7)
RedCloth (4.2.7, 4.2.2)
ruby-debug (0.10.4, 0.10.3)
ruby-debug-base (0.10.4, 0.10.3)
rubyforge (2.0.4, 2.0.3)
rubygems-update (1.6.2, 1.5.0)
sprockets (1.0.2)
system_timer (1.0)
thor (0.14.6)
tlsmail (0.0.1)
treetop (1.4.9)
tzinfo (0.3.24)
whenever (0.6.6, 0.4.1)
And taraaa... Everything works fine now~ :)
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.
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. :)
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! :)
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. (^_^)
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. (^_^)
Subscribe to:
Posts (Atom)