Friday, November 20, 2015

Changing debug highlight color in Eclipse


Enjoy.

Thursday, September 10, 2015

Battlelog "Waiting For Game To Exit" Solution

Solution

I am not sure if this is the only solution, but this has worked for me so far. 

1. I am using Firefox to launch the game. I have my Use plugin-free game launching set to OFF


2. Battlefield 4 is set to use the 64 bit exe to launch the game


3. This is probably the most important step. I basically "deleted" the 32 bit web helper for Battlefield 4


At this point I am able to play the game like I did before, and I haven't had any problems joining the game. 

Full credit goes to this reddit user - https://www.reddit.com/user/clatch22

Battlelog, EA Support were of no help so far. 


Description of the problem


After the Summer 2015 patch was released for Battlefield 4 on 09/01/2015, Battlelog switched to plugin-free game launching - Battlefield 4 can be launched without the battlelog plugin. This is because Google Chrome discontinued support for NPAPI, and it is not possible to enable this starting with Chrome 45. 

After this update, Battlelog has made joining games very painful, especially when there is a queue. This happens regardless of the browser I use. 

Here is the behavior I am observing - 

- More often than not, when I click on a server with a queue, and its time for me to join, I get this message:



- At this point, BF4 consumes around 200MB, and then disappears:


- Now, if I click on the join button again, depending on how the stars align, either I join the game, or the following three messages appear - 






All executable files are running as Admin (Webhelper & BF4)

Here are my system specifications - 

Operating System
    Windows 7 Professional 64-bit SP1

CPU
    Intel Core i7 4790K @ 4.00GHz 44 °C
    Haswell 22nm Technology

RAM
    32.0GB Dual-Channel DDR3 @ 666MHz (9-9-9-24)

Motherboard
    Gigabyte Technology Co., Ltd. Z97X-UD7 TH-CF (SOCKET 0) 28 °C

Graphics
    ROG PG278Q (2560x1440@144Hz)
    Acer K272HUL (2560x1440@59Hz)
    Acer K272HUL (2560x1440@59Hz)
    NVIDIA GeForce GTX 980 (EVGA) 42 °C

Storage
    232GB Samsung SSD 840 EVO 250G SCSI Disk Device (SSD) 38 °C
    223GB TOSHIBA MKNSSDEC 240GB SCSI Disk Device (SSD) 34 °C
    931GB Western Digital WDC WD10EZEX-08M2NA0 SCSI Disk Device (SATA) 34 °C
    3725GB Western Digital WD Elements 107C USB Device (USB (SATA)) 34 °C

Optical Drives
    HL-DT-ST DVDRAM GH24NS90 SCSI CdRom Device

Audio
    Creative X-Fi Audio Processor (WDM)

Sunday, May 10, 2015

How To Remove Files & Folders From an SVN Repository

Disclaimer - I am not an expert on SVN. After struggling for many hours to figure out the exact process, I narrowed it down to these steps. There may be an easier way to do this, but I couldn't figure it out. These particular steps work all the time for me. If there is a better way to accomplish this, feel free to post it in the comments section. 

This is an example on removing a folder from an SVN repository without deleting it from the disk. Doing this incorrectly will lead to the parent folder showing the modified icon.

Consider the following repository - C:\svn_repository\trunk\java\removeThisFolder\removeThisFile.txt

We wish to remove - removeThisFolder\removeThisFile.txt from the SVN repository.

The directory and the file inside it need to be removed

Right click on the folder and click on Unversion and add to ignore list and then select the folder
Commit the changes

Navigate to the parent folder, and click on SVN Update

Now Commit the changes

This would make the Modified icon disappear


Tuesday, March 17, 2015

Setup a simple website using a Namecheap domain and XAMPP

Disclaimer - I am not a web developer and I do not have any authority on creating web content. This was an exercise for me on learning how hosting works. I couldn't find a tutorial online that explained all the steps I needed to so, so I am putting together this tutorial. 

Here are the steps to setup a very simple website using xampp and a Namecheap domain.

1. Obtain your external IP address

Go to http://whatismyip.com and get "Your IP" address
Take note of the external IP address

2. Configure URL forwarding

Go to the URL forwarding section in Namecheap domain configuration. 

Now set the values for the IP Address/URL and Record type as follows - 


A (Address) - Your IP

URL Frame - http://<your_ip>:8080/mysite
URL Forwarding section in Namecheap domain configuration

3. Obtain your internal IP address

Open the command prompt window and type - ipconfig and hit enter
Identify your network adapter and take note of IPv4 Address

4. Configure port forwarding

Log into the router configuration by going to this address in the browser - http://192.168.0.1/

Go to the Port Forwarding section, and add an entry to forward HTTP traffic for port 8080

Router port forwarding configuration

5. Configure Apache to serve on port 8080

Open the Xampp control panel, and click on Configure and then on Apache (httpd.conf)
XAMPP Control Panel
This should open the config file in notepad. Change the line Listen 80 line to Listen 8080
Apache httpd.conf 
After this change is saved, restart the Apache server. The control panel should now look like this -
XAMPP Control Panel after listen port change

6. Create your website directory

Now, create a folder called mysites in the server directory. The path will be as follows - 
D:\Program Files (x86)\xampp\htdocs\mysite
mysites folder in htdocs

7. Access your website

Now try accessing in the following URL in the browser -

http://localhost:8080/mysite/

Website access on the local server
This should display the index.html in the browser


Now access your Namecheap domain. For me, its www.patchrowcester.com. This should serve the index.html page in the server directory. 
Access website using domain name

Tuesday, January 27, 2015

ASUS ROG Swift (PG278Q)

Purchase Process

I ordered the ASUS Rog Swift (PG278Q) from B&H Photo on January 17, 2015 for $799.

At the time, my only options were B& H Photo and BestBuy. I did not like the shipping options on BestBuy and decided to see what B&H has to offer.

I was very pleased with their free expedited shipping, but having never purchased anything on this website, I hesitated. It also appears that it is only possible to check out items at specific times during the day. This is the first time I've ever encountered a website have some kind of business hours for purchasing items. Attempting to check out during "non business" hours would result in a cryptic error.

Error when trying to check out an item from B& H Photo during "non business" hours

At this point, I sent out a tweet to the company, and a representative informed me that check out resumes at 6:15PM on Saturday.

Response from a B&H Photo representative
I thought this was very odd, and decided to wait for the item to be available on Amazon. However, my patience ran out by that evening, so I decided to take a chance and purchase it from B&H Photo.

Once I completed the purchase, it was the usual routine. I was given an order confirmation, and soon enough my item was shipped and it was delivered on time. 

Unboxing













General Impressions

I am very satisfied with the monitor. The pixel density is obviously higher, and this makes makes everything in Windows look really sharp.  

Also, one feature I thought was very nice was the response when the power button is pressed to turn on the monitor - the image comes up almost immediately. I have not seen this in any of the other monitors I have previously used. This may not mean much, but I like the fact that exists. 

Games look absolutely amazing. I would recommend turning off anti-aliasing because at this resolution, I do not find any noticeable difference in games (this is of course subjective), and the performance gains with AA off is fairly significant. I am using EVGA GeForce GTX980, and this card struggles to keep up at times in BF4 multiplayer (64p conquest). Turning off AA gave me much better frame rates. 

Here is a video of footage Battlefield 4 multiplayer on ultra settings. The frame rate counter is on the upper right 



On certain maps like Operation Firestorm 2014 and Pearl Market, the frame rate dips into the 40s when playing with AA on. So now I run the game with all settings on Ultra except with AA and Ambient Occlusion, which are turned off. This is giving me excellent performance with frame rates going up to 120 on certain maps. 


GSYNC

I noticed the biggest impact of GSYNC when frame rates tend to drop between 50-60 fps. When the fps drops below that, GSYNC doesn't really do much, at least from my experience. 

Final Thoughts

I personally feel this monitor is worth the money I paid for it. The reason for buying a new monitor in the first place for me is because I needed to setup a work machine. I thought about buying a very cheap monitor from craigslist, but on second thoughts, I decided to buy a new monitor instead. The reason for this being, my Acer P243WAid monitor which I purchased in March 2009 is still functioning perfectly. So I figured if I purchased a high end monitor and if it lasted for the next 6 years, I would absolutely get my money's worth. Therefore I started researching monitors late last year, and the general consensus in the gaming community is that the ROG Siwft is about as good as its going to get for gamers right now. 

After having used the monitor for a few days, I think I agree. This is an excellent monitor, and I think my money is well spent. 

If you are looking for a high end gaming monitor, and price is not particularly an issue, then I definitely recommend the ROG Swift. If you are not particularly discerning about refresh rates etc., but want the extra real estate, then I wouldn't recommend this monitor, instead one of the Korean made monitors which cost probably less than half the price will do the job just fine.