Saturday, July 31, 2010

No sound in SUSE Linux

It took me 1 hour to fix this problem. I hope this will come handy to you. To fix this issue you need to have the superuser/root access to your system. Because the file which needs be changed is a read only if you are not the super user.

Let us see what solves this issue:

If you are a new user follow the commands. If you arean advanced user pardon the details.

1) xx:~>su
On the prompt Password: enter your password

2)your su username:~> vi /etc/modprobe.d/sound

This will open the file using vi. If you are not comfortable with vi use any of the text editors.
press "dd" and this will delete all the lines.
Now press "i" and type following lines.

options snd slots=snd-hda-intel
options snd-hda-intel enable_msi=1 model=hp-m4
alias snd-card-0 snd-hda-intel

Try your sound now. Chances are more that this will work now.

Sunday, July 25, 2010

Drupal Calendar showing wrong dates for anonymous users

If you are here reading this article it means your anonymous users are seeing wrong dates, probably a back date. However, when you log in as an admin it shows you the correct date. As a drupal administrator you might care less about admin user but you care more about your readers that is your anonymous users. As all things in life there is a simple solution to this one too.

Understanding how to solve

Before I walk you through the solution can you make a guess what could be wrong? The dates for admin are correct but for anonymous users it is wrong. That means Drupal reads the correct dates from system (that is why admin gets correct dates) but it is displaying a back date for anonymous users. My first guess was that it is a permission issue. However, there are no such permissions to revoke or allow. Also, since the anonymous users can see the dates they do not have any such restrictions. Right? Looking at the facts once more I realized that the dates are from past that means there is a way where I am reading the data from the past.