I bought a new MSI laptop, it had Atheros Communications, Inc. AR3012 Bluetooth 4.0 hardware installed. But it was not working at all. I checked lsusb and could find that it is there. After that I checked with the command dmesg on terminal and found out that there seem to be some problem loading the Bluetooth driver. Continue Reading
Well, its been a problem not loading Alexa Spary on my browser after I got an update to Firefox 20.0. Well, this was real pain for me because I used to just a website using that tool and declared to visit or not. Continue Reading
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.
Strict Standards: Only variables should be passed by reference in WebSocket.class.php on line 30
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:
$changed = $this->sockets;
socket_select($changed, $write=NULL, $except=NULL, NULL);
If you want the solution, the solution is:
$changed = $this->sockets;
$write = NULL;
$except = NULL;
socket_select($changed, $write, $except, NULL);
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.
phpwebsocket(websocket.class.php) is a HTML5 WebSocket server that enables user to directly connect to the socket from the browser. It is specially designed for the PHP server as the script is a PHP script and client can be any website with a browser. I was just having some research on it and got loads of error. Different errors I got are:
1) First I got the error as the client(My browser) could not connect to the server because of handshaking thing. And I sorted the reason that the newer version of Browser have only one Secret key sent to the server so, I removed two keys and only implemented 1 key. Then I got the key to $key. As from the wiki, the returning secret “Sec-WebSocket-Accept” was the sha1($key.”258EAFA5-E914-47DA-95CA-C5AB0DC85B11″) and base64 encode of it. Its a “.(dot)” not the “,(comma)”. And returned by writing to the socket as socket_write.
2) Next my brain couldn’t worked when the message received was just unwanted. And I searched all along and was messed up with some framing thing. I was lazy finding that. So, I just copied from some source for some kind of decryption thing.
3) Similarly, I did something for sending the message by the encryption thing. And I finally made the class work.
I will be happy to share my part of work and hope it will work on your system. You can copy and do anything with the code. You can research on each function changes that I have done.
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:
1 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to:
1 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save and close the window and type this in the terminal:
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.