jQuery bind/unbind not working on firefox or in some other browsers

So, your jQuery bind is working OK on all browsers and not in firefox?

At least in my case, it worked on chrome and not on FF.

Let me put it using example:

let’s say we want to assign click event to some item with id = ‘bindable’


$('#bindable').bind('click', function(){
      alert ('From the truth and search of truth, I would prefer the later..');
});

this snippet works fine in chrome and others. but in firefox it is NOT.

The culprit is in passing the ‘event’


$('#bindable').bind('click', function(event){//look mom, i pass the event here..
      alert ('From the truth and search of truth, I would prefer the later..');
});

See mode javascript stuffs

URL encoding in XSLT and php

want to url encode the value you are having in the xsl? do the follwoing two liner and you are done.

1. add the name space xmlns:php=”http://php.net/xsl on the xsl part first
2. then use php:functionString(‘urlencode’, “the text/node/orwhatever to be encoded here”);

DONE

Changes made in new revision of SVN. How to see changes in revision in SVN

Working on SVN? I am sure these days we are on the era of DVCS ( Decentralized Version Control System ) like that of git and mercurial but still, we will be using svn..

To see the changes you made on the current revision vs the previous one, use:

svn diff -r PREV:COMITTED file_name_goes_here

or if you have specific revision numbers then plug them in place of the prev and committed above and it will list the changes you made on that file.

Date Picker in jQuery misses next and prev arrow. How to add arrow on jQuery date picker

jQuery date picker missing navigation arrow

Did you add the date picket and it is missing the arrow for next month/year navigation?

I have been there – yea, jQuery missing the arrow for year and month navigation.

If you add the date picker on your project and for some reason you are not seeing the arrow for navigation, do the following:

  1. Go to the site jqueyrUI and download the file.
  2. Then in the css folder you will see the theme
  3. inside the theme, there is an images folder.
  4. Copy the whole folder and put it in you project in the same folder where the jQuery ui css resides and that will take care the problem.

The above is the solution for missing the arrow image in jQuery navigation.

Recommended for You:

You want to learn nodeJs and Angular in minutes? See this step by step guide

Selecting an element with multiple classes? Check this out

Did you upgrade and production is broken? Here is the fix

Ubuntu 12.04 display problem – it shows application windows like winxp classic

How is the ride with ubuntu 12.04 precise so far? I love it.
But I added one more monitor to it and played a bit with xorg.conf> and with nvidia settings.
All worked perfect. But, when I try to view my applications like netbeans or even firefox it shows them like an old classic windows xp thing..

I solved the problem by using gnome classic :(.
Here is all you have to do to get it working

Go to your terminal and type

sudo apt-get install gnome-session-fallback

Then log out.
When the log in screen comes, click the little circle on the right top corner of the login screen and select gnome classic

DO-NE

How to View WIFI password in Mac

Here is step by step way to see the wifi password on your mac. It is customary to usually forget the wifi password and, of course, seeking it for our other gadget.

1. Go to Applications folder – it sits the far right of the dock [if you have the default setting of the dock]
2. Go to Utilities
3. Open Keychain Access
4. You would see the name of the wifi on the list – open it. You can open it by doulbe clicking on it or just select and hit enter.
5. On the opened window, there is a show password checkbox. When you click on the checkbox to select it, you would be provided with another window asking you your administrator password.
6. Enter your password and hit enter. You will see your wifi password next to the show password checkbox.

Happy Passwording…

localhost shows 403 forbidden in snow leopard mac

In mac, to set up your apache all you have to do is:
Go to terminal and type

sudo apachectl start

– you can get the terminal by going to Application folder and then to utilities and by clicking terminal.

Then go to your browser and type http://localhost.

Now if you get the error 403 forbidden then:
Open /etc/apache2/extra/httpd-vhosts.conf file and make sure you have proper directory setting for example:


    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/Library/WebServer/Documents"
    ServerName local.com
    ErrorLog "/private/var/log/apache2/local.com-error_log"
    CustomLog "/private/var/log/apache2/local_access_log" common

In the above example, the document root is in Library/WebServer/Documents. Which means if I want to create a website, then the website folder has to be inside that and will be accessd as http://local.com/website

**if you name server as localhost, then you can access it as http://localhost

Finally, check if hosts file has correct ip-servername mapping by looking into the file /etc/hosts
Then reload your apache

sudo apachectl restart

EnJoY!

Invalid command VirtualDocumentRoot perhaps misspelled apache failur error

So you got the above error ha? I have been dealing with that as well. Here is the solution.
The root of the problem is mod_vhost_alias.so file.
This file would be used to enable the the mod_vhost_alias. Once this is enabled you are done.

Step 1.
go to

/usr/lib/apache2/modules

and verify the file mod_vhost_alias.so exists. If not, google that file and put it there

Step 2.
go to

/etc/apache2/mods-enabled 

and create a file named vhost_alias.load

vi vhost_alias.load

and put the following inside it

LoadModule vhost_alias_module /usr/lib/apache2/modules/mod_vhost_alias.so

Step 3.
Do step 2 inside mods-available
Step 4.
restart apache

sudo /etc/init.d/apache2 restart

Step 5
Show 🙂 face!!
This analogy can be used for errors like

Invalid Command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration. Action ‘configtest’ failed’
and for
Invalid Command ‘rewriteengine’, perhaps misspelled or defined by a module not included in the server configuration. Action ‘configtest’ failed’

Enabling MMS on iPhone – can not send accept picture text/sms messages

**You will use this method on your own risk. Even though it has worked for me, I can’t guarantee that it could work for you**

I have been using iPhone for a while and I was not able to send/receive picture and video messages though. Since I have started to mess with my phone badly, I have fixed that problem and I will share it with you in a easier way.

Step 0. Make sure you are connected to the internet through the wi-fi connection.
Step 1. You need to have an access to the inner files of the iPhone.
This can be done thru a lot of softwares like iFuse and the like. But I prefer the ssh method

Step 1.2 Install ssh. Openssh is available for iPhone from the cyndia, it is an effortless process to install. Don’t forget to change your root password and to REALLY REALLY remember your root password. If you forgot it, the damage is huge as to reinstall your ios..

Step 2. Once you install openssh, you can ssh to your iPhone to access the files. Being on the ubuntu/Linux terminal do:

sudo ssh root@YOUR-IPHONE-IPADDRESS

Followed by your root password
Your iPhone ip can be found from your iPhone settings->General->Network: go to the wi-fi and click on the network you connected. There you would get the ip-address.

Once you are on the directory navigate to

private/var/mobile/Library/Prefrences

The file of our interest is com.apple.mms_override.plist.
The config for this file could be a bit different per carrier. For example the T-Mobile one can be found at t-mobile along with the instruction on t-mobile instruction

Hope it helps a bit… you can post your questions on the comment section and I will try to help you based on your questions