Monday, November 5, 2012

Installing SqLite on Windows 7 Error ( Could not load file or assembly 'System.Data.SQLite,)



I got this error while installing SQLite on windows 7

Could not load file or assembly 'System.Data.SQLite, Version=1.0.80.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solution :

Project -> <project_name>_properties -> Build -> Platform target (Change it from Any PC to x86)

This solve the issue

Wednesday, October 31, 2012

To Configure AsteriskNow with FreePBX, point your browser to http://10.0.2.15

While installing AsteriskNow on my Virtual Machine i get this text before asking for login . Please note that it says this when installation went smoothly .

Usually it shouldnt give that ip as its not your network ip . problem is with the VM Ware I use the Oracle VM Ware .

Solution:

Select specific Virtual Machine Right Click and select Settings
Go to Networks
Choose atached to -> Bridge Adopter
and than it will show you either eth0 or wlan0 choose from where you want to connect to internet

Monday, October 29, 2012

Network problem (Eth0 Ubuntu 12.04 Lenovo G Series)

Hi

After purchasing new laptop of Lenovo my wireless network work fine but when i try to connect with ethernet cabel it didnt work for me

so the solution is with network driver . Please use below file to run your internet from cabel smoothly

http://www.linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-02-28-p.tar.bz2

After untar go to the folder

cd compat-wireless-2012-02-28-p
scripts/driver-select alx
sudo make
sudo make install
sudo modprobe alx
 
I am sure this will work for you  

Tuesday, October 16, 2012

Missing libv4l2 error: ./configure failed for mediastreamer2

I get this error while installing linphone 3.5.2

Missing libv4l2. It is highly recommended to build with
libv4l2 headers and library. Many camera will won't work or will crash
your application if libv4l2 is not installed.
If you know what you are doing, you can use --disable-libv4l2 to disable
this check.

configure: error: ./configure failed for mediastreamer2

Solution :

sudo apt-get install libv4l-dev

Could not find eXosip2 library with version >= 3.5.0 !

I face this problem while installing linphone 3.5.2

Solution:

sudo apt-get install intltool gtk+-2.0 gtk+-2.0-dev libswscale-dev libspeex-dev libspeexdsp-dev libavcodec-dev  libx11-dev libortp-dev libasound-dev libtool libexosip2-dev libreadline-dev libxv-dev libtheora-dev libgsm1-dev
 
wget http://ftp.gnu.org/gnu/osip/libosip2-3.6.0.tar.gz
tar xvzf ./libosip2-3.6.0.tar.gz
cd ./libosip2-3.6.0
./autogen.sh
./configure
make
sudo make install
 
wget http://download.savannah.gnu.org/releases/exosip/libeXosip2-3.6.0.tar.gz
tar xvzf ./libeXosip2-3.6.0.tar.gz
cd ./libeXosip2-3.6.0
./autogen.sh
./configure
make
sudo make install  

error: Could not find osip2 headers !

I find this error while installing linphone 3.5.2

Solution :
sudo apt-get install libexosip2-dev
sudo apt-get install libosip2-dev

No package 'gtk+-2.0' found No package 'gthread-2.0' found

I found this error while installing linphone 3.5.2 .

Solution :

Please run these commands

sudo apt-get install libgtk2.0-dev
sudo apt-get install libperl-dev

Wednesday, June 6, 2012

change calendar from arabic/Spanish/Greek/French to english gmail

Hi

Mostly Gmail change the default language when you change your location and some time its annoying that you dont even know that language and you have to use gmail with that i face same problem and being a programmer :D  i thought to solve in this way as we dont know that language so

Simple Solution

Putt this on the url ?hl=en

example
https://www.google.com/calendar/render?tab=mc&pli=1&

so new url should be this

https://www.google.com/calendar/render?hl=en

After that Do remember to change your default language by going to settings and than in general Change Language to English . I hope its easy now :D

Thursday, May 24, 2012

Eclipse Loading Error of missing files libswt-gtk-3730.so

After Installing Eclipse when i run it at always give me pop up to see the log file when i see the log file it says two files are missing  .

Can't load library: /home/xxx/.swt/lib/linux/x86/libswt-gtk-3730.so
        Can't load library: /home/xxx/.swt/lib/linux/x86/libswt-gtk.so
Simple quick solution is that you run this command on terminal and then launch the eclipse from terminal
export LD_LIBRARY_PATH="/usr/lib/jni" 

Wednesday, May 16, 2012

Installing php apache mysql phpmyadmin on ubuntu 12.04

Here are the steps to install php mysql apache and php myadmin.

  1.  sudo su
  2. apt-get install mysql-server mysql-client
  3. apt-get install php5 libapache2-mod-php5
  4. apt-get install apache2
  5. /etc/init.d/apache2 restart
  6. apt-get install php5-mysql php5-curl php5-intl
  7. /etc/init.d/apache2 restart
  8. apt-get install phpmyadmin





Tuesday, May 15, 2012

Showing Date in Ubuntu 12.04

After Installing Ubuntu 12.04 , i was wondering where the date gone it only shows you time , To show date i found this solution

Please run that on terminal

gsettings set com.canonical.indicator.datetime show-date true

Tuesday, April 24, 2012

List of devices attached ???????????? no permissions

Solution :



cd android-sdk-linux-linux/tools
su or sudo su
./adb kill-server
./adb start-server
./adb devices

OR

cd andriod-sdks  ( This might be at your home directory )


cd platform-tools
sudo su
./adb kill-server
./adb start-server
./adb devices



Monday, April 23, 2012

Installing Eclipse 3.7 on Linux

1) Download Eclipse. I got eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz
2) Extract it
tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz
Or just be lazy and Right Click > Extract Here
3) Move to /opt/ folder
mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
4) Create an eclipse executable in your path
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse
copy this into nano
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)
5) Create a gnome menu item
sudo nano /usr/share/applications/eclipse.desktop
copy this into nano
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
save and exit nano
6) Launch Eclipse for the first time
/opt/eclipse/eclipse -clean &

Installing Java on Linux

Download java from here
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html


Install the JDK

  • Download he 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension i.e. "[java-version]-i586.tar.gz" for 32bit and "[java-version]-x64.tar.gz" for 64bit
  • Uncompress it
    tar -xvf jdk-7u2-linux-i586.tar.gz (32bit)
    tar -xvf jdk-7u2-linux-x64.tar.gz (64bit)
JDK 7 package is extracted into ./jdk1.7.0_02 directory. - Now move the JDK 7 directory to /usr/lib
sudo mv ./jdk1.7.0_02 /usr/lib/jvm/jdk1.7.0
  • Now run
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
  • Run
sudo update-alternatives --config java
You will see output similar one below - choose the number of jdk1.7.0 - for example 3 in this list:
$sudo update-alternatives –config java
There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3 /usr/lib/jvm/jdk1.7.0/jre/bin/java 3 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jdk1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.
Check the version of you new JDK 7 installation:
java -version
java version “1.7.0”
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode) 
Repeat the above for:
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
Enable mozilla firefox plugin:
32 bit:
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

64 bit:
ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

requires 'org.eclipse.core.runtime 3.6.0' but it could not be found

Hi

I face this problem while installing ADT Plugin for Eclipse .

Solution :

Using Eclipse 3.7 .

1) Simply go to "Help -> Install New Software" and add an entry http://download.eclipse.org/releases/indigo.

2) Then install the package with the name of web something (sorry i forget the name but know that it has web word)

3) After installing that  , go and download the ADT Plugin http://developer.android.com/sdk/eclipse-adt.html and then

4) Repeat step 1 with  title "ADT Plugin" and click on archive button and select the zip file which you downloaded (ADT Plugin)

5)Install