Battlefield 4 & Battlefield 1 Bluetooth Headsets gives no sound

 

 

 

 

 

 

There’s a problem with Battlefield 4 and Battlefield 1 where you get no sound if your playing with a bluetooth headset.  After a bit of googling and research i found the solution;

1. Goto; control panel->Hardware and Sound->Devices and Printers

2016-09-18-9

 

 

 

 

 

2. Select Properties on your Bluetooth headset and go to the services section.

3. Uncheck “Handsfree Telephony”.

2016-09-18-8

 

 

 

 

 

 

 

Note this works on Windows 10 cant say if it work on Windows 7 or 8.

Cakephp 3 Plugin – Changelogs

Ive finally gotten around to releasing this little app i was working on for Cakephp3.  I decided a while ago to abandon Cakephp 2 and go with the new version 3.

Its been a steep learning curve so i wanted to learn as much as i could.  So thats where this app/plugin came in.

The Aim:
The goal of the plugin was to allow a way to simply log tasks, changes or articles about the cakephp project your working on.

If your working on a website/project on your own you need a way to record your changes and tasks so i thought this would be an ideal way to learn and release something. Sure you could do the same with Github and better but i think its better to have something like this integrated into your application.

Screenshot: Version 1
2016-05-25

 

 

 

 

 

Version 2 Screenshot:
changelogseditv2

 

 

 

 


Github & Source:

https://github.com/gerrymcdonnell/cakephp-changelogs

Cakephp 3- How to read a remote Xml file

23666One of the great things about CakePHP is that it has a lot of built in librarys.  Heres an example of how to read a remote XML file.

 

 

 

The result will print out the list of items from the feed;
http://store.steampowered.com/feeds/newreleases.xml

cakexml

 

 

 

 

 

 

More info here;
http://book.cakephp.org/3.0/en/core-libraries/xml.html#importing-data-to-xml-class

CakePhp3 – Date Formating

23666Quite simply this is a pain to set right, as it seems to default to the american time zone despite several efforts to configure it to european time in both Cakephp3 and the Php.ini file.

But you can display the needed time format as follows in your view action;

Below the field “created” is a date field in a MySQL Database.

 

No Mans Skys PC Possable Stutter/Hitching Fixes

Found this fix for the game on reddit which seems to fix the terrible stutter problems that people are having;

https://www.reddit.com/r/NoMansSkyTheGame/comments/4xgw82/pc_users_incredible_fps_fix/

The Fix:
Is to create a shortcut to the games executable file “NMS.exe”.  Then in the target window paste the following;

C:\Windows\System32\cmd.exe /c start “Process Monitor” /High “E:\GOG Games\No Man’s Sky\Binaries\NMS.exe”

Note:
Replace “E:\GOG Games\No Man’s Sky\Binaries\NMS.exe”with the path to game on your system.

EDIT:
This fix doesn’t work for me and in fact seems to make the game perform even worse, its best to update to the “BETA / Experimental” Patches available on Steam and GOG.

Cakephp3 Pagnation Conditions

23666Heres a simple example of how to pagnate a controller action in Cakephp3;

 

Cakephp3: Installing Cakephp3

23666Cakephp 3 depends a lot on using composer, so youll need to get that first.; http://getcomposer.org/

Once youve set up composer you can create a brand new cakephp3 app by;

  1. Going to your web servers “htdocs” folder. I.e if your using xammp it should be; C:xampphtdocs
  2. Open a command windows here and type;
  3. Cakephp will create a folder in your htdocs folder called ” my_app_name”
  4. Open http://localhost/my_app_name

Cakephp 3 installation:
http://book.cakephp.org/3.0/en/installation.html

cakephp3 – fixing the index method for admin and normal user

23666Say for example you dont want normal users being able to see a list of items in this example lets say its questions.  But at the same time you want an “admin” user to be able to see them.

The following function might help;

What it does:
basically if does a different pagnate depending in the user’s role.

Cakephp3-form methods GET and POST

23666GET:
to set the method your form is send in cakephp3 as GET;

to get the Data sent via get in controller;

POST:

 

Forms in cakephp3:
http://book.cakephp.org/3.0/en/views/helpers/form.html

Cakephp3-Creating custom queries

23666In your object table;

In your controller method;

So what does it do?
It will return the results where the artist field is like eg.”U2″ and where the title is like “U2”.
It also has an order clause in there and will contain the related records set “mp3files”.

Reference:
http://book.cakephp.org/3.0/en/orm/query-builder.html