Posts tagged with: problem

[SOLVED] Strict Standards: Only variables should be passed by reference in file.php on line 30

Hi, I am currently developing a project on socket and I got simple warning that needed to be fixed. Though the problem is caused on my project related to socket but on further research, I found that it can be applicable on any problem that is found regarding the title.

So, I took a look on each and every references but couldn’t find what exactly it is but tried some random things. My line of code where:

If you want the solution, the solution is:

Explanation:

The variable needs to be passed but I just passed the direct value to the function and it required variable which was not fixed. So, I just defined all the variables that might be needed and got the solution. If you got any problem with this, please first define the variable and pass it to the variable as the variable is sent as a pointer and needs to be changed by PHP function.

Same problem might occur on “end()” function so, you need to declare and $array = [“a”,”b”,”c”]; or explode(“.”,$fileName); and then pass it to the function as end($array).

Whew!!! Problem solved.


[SOLVED] Brightness problem in Ubuntu 12.04 Precise Pangolin

Well my friends have been facing brightness problem in Ubuntu 12.04 Precise Pangolin. And every one were facing and asking me to help me out with it. So, I viewed all over the Internet and helped them out. I helped with it myself too in Dell XPS 13. And for friends Acer Aspire, HP Pavilion DV6. So it might work on most of all the PCs.

My friends were just trying the xrand solution that just decreases the Contrast which had no effect on the power consumption. So, this solution was the most to be kept. I am feeling quite when the Fn(Function key) and the Brightness Up and Down are working great. You can follow up the procedure that I have kept in an easy steps.

Open terminal ( Ctrl+Alt+T ) and type:

sudo gedit /etc/default/grub

You will find this line in the new opened window:

Change it to:

Save and close the window and type this in the terminal:

sudo update-grub

This will update your grub and while rebooting your PC, it will set an extra parameter on the grub menu during boot. This problem might have occur on due to the upgrade on kernel.

Enjoy the power saving system.


[SOLVED] [EDIT] Dell XPS 13/15 Problem (Brightness, Single Tap, Touch Scroll)

Well, I just bought a whole new XPS 13 and installed Ubuntu 12.04 Precise Pangolin 64 bit. But I was having some problems like the brightness didn’t worked as I expected, single tap that used to click made me a sad guy and Touchpad scroll weren’t working. But I love to know that there are people who love to solve problems that quick. I would like to thank to Kamal Mostafa who has been contributing us for the Drivers/Kernel patch for XPS versions. Continue Reading


[SOLVED] Drupal 6.x/7.x not installing

Dear friends, I was installing Drupal 6.x in my brother’s PC today and I was sticked at the minor problem. I could not complete the “Third step”, though I enter the correct information the database wouldn’t install properly and get me to the same page again and again. Then I tried lots and lots of things and searched web, but I didn’t got the solution. I thought it was problem with my brother’s PC but I rechecked the steps and found the solution.

Continue Reading