buffering the bytes

Subscribe to RSS feed

Sticky post

import blog

, ,

  • My own Opera Log : Log
  • Opera/My Opera Wishlist :Wishlist

Installing Java plugin for firefox in Fedora

, , , ...

Installing java alone/open jdk doesn't solve the problem of trying to open java/java applet files. You will require the java plugin.
To install it on fedora type the following in a terminal
$ yum -y install java-1.7.0-openjdk-plugin 

, , , ...

Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/msjnc line 53.
BEGIN failed--compilation aborted at /usr/bin/msjnc line 53.

This error occurs if you don't have www module for perl
to install it type

$ yum install perl-libwww-perl

Installing ATI driver on Fedora

, , , ...

Once you have all the 3rd party repository setup in fedora all you need to do is ;

 $ yum --enablerepo rpmfusion-nonfree-updates-testing install kmod-catalyst


This should resolve one or more of the following problems with ATI graphics cards:
-Flckering screen
-Brightness control not working
-broken screen

Getting JDBC working with Mysql in Archlinux

, ,

If you are getting the following error while trying to connect to mysql using JDBC driver

Connecting to database...
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2209)
	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)
	at java.sql.DriverManager.getConnection(DriverManager.java:579)
	at java.sql.DriverManager.getConnection(DriverManager.java:221)
	at Test_Mysql.main(Test_Mysql.java:22)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2132)
	... 12 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
	at java.net.Socket.connect(Socket.java:579)
	at java.net.Socket.connect(Socket.java:528)
	at java.net.Socket.<init>(Socket.java:425)
	at java.net.Socket.<init>(Socket.java:241)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 13 more
Goodbye!



you just need make an adjustment to the mysql configuration file.
type the following in a terminal

 $netstat -tlnp | grep 3306 (default port no. of mysqld)



if it doesn't return anything that means that your mysql daemon isn't listening on that port for which you need to make a small edit to /etc/mysql/my.cnf in archlinux
Edit the my.cnf file:

 $ vim /etc/mysql/my.cnf



search for "skip-networking" and comment it out.

...
#skip-networking
...



Restart mysqld :

 $ systemctl restart mysqld



Hopefully that should have solved the problem for you too.

Mousepad 0.3 :Enabling tabs by default

, ,

Good news for all XFCE fans + users, after a long time a new version of mousepad is out and it has undergone a complete rewrite. You can read more about that on XFCE website.
By default when a single file is opened using mousepad it doesn't show tabs, however if you do want tabs by default there is a way to do it:
1- Go to ~/.config/Mousepad/
$ cd ~/.config/Mousepad/


2- Open mousepadrc file
 $ vim ~/.config/Mousepad/mousepadrc


3- search for MiscAlwaysShowTab and change its value from false to true
 MiscAlwaysShowTab=true


4- if mousepad is open, close it and then restart the app.
You should see tabs ! :-)

Project SHIELD !

,

http://www.engadget.com/2013/01/07/nvidia-project-shield-hands-on/

the best news in 2013 as far as gaming is concerned smile

Google: king of search engines ?

,


PS: I didn't per say search for that, it was an accidental discovery wink

, ,

programming languages, infographic
Source: Udemy Blog

Twitter adds "Email tweet" option

, , ,

Recently i realized that twitter has added a new option to the tweets which is "Email tweet".
This option allows users to email their own tweets as well as tweets from others. For the past 20 minutes I have been trying really hard to come up with a use case for this feature and haven't had any success. faint
Edit: This option allows you to share / email tweets by other people through mail.
May 2013
M T W T F S S
April 2013June 2013
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31