All posts by manatails

Getting the SteamID of current user using Steam_API

This is the code I used when integrating ManaGuardian with Steam.
I could not find any other posts regarding this so I am publishing my code for reference. I hope it helps

Steam API header files from valve SDK are required

https://github.com/ValveSoftware/source-sdk-2013/tree/master/sp/src/public/steam

//Initialize Steam API

InitResult irResult = g_oSteamAPI.Initialize(g_szAppPath);

if (irResult != IR_SUCCESS)
    return EXIT_FAILURE;

//Open Steam User Interface
ISteamUser* pSteamUser = g_oSteamAPI.GetSteamUserInterface();

if (!pSteamUser)
    return EXIT_FAILURE;

CSteamID sSteamID = pSteamUser->GetSteamID();
uint64 uSteamID = sSteamID.ConvertToUint64();
char cSteamID[64];
sprintf(cSteamID, "%lld", (long long)uSteamID);
printf("User SteamID : %s\n", cSteamID);

The code is pretty much self-explanatory.

Interesting domain spam

Yesterday I registered my new domain manatails.com.

But I was quite surprised to see this spam mail in my mailbox today claiming that I needed to pay a fee for registering my domain to internet search engines. Are they really checking each new domain registration just to spam everyone registering a new domain?

Oh dear,

spam

 

 

Regarding battery wear on laptops

After having used the laptop for 4 months. I opened up the battery info to check how much of life the battery has lost.

The results were much better than what I expected :

battery

Before calibration it showed 0.3% wear rate.

battery2

After calibration battery wear was completely gone.

The calibration is done by fully discharging and charging the battery 2 consecutive times.

I kept the charger plugged all the time whenever I put my laptop on my desk and I took my laptop very often in weekends. People say that using the charger after full charge can severely cut the battery life, but from these results, at least I won’t worry about it again.

GeForce vs Quadro SPECviewperf 11.0 benchmark

Computer specs

GeForce box:

i7-3970x, Geforce GTX690, 32GB RAM

Quadro laptop:

i7-820QM, Quadro FX880M, 8GB RAM

SPECviewperf_11

As can be seen in the graph, even a 3-year old mobile Quadro card can easily beat a high-end desktop Geforce card in pretty much every benchmark, except for CEI Ensight which I believe does not rely heavily on double-precision floating point computations.

It was quite surprising contemplating on the fact that Geforce box had all the superior parts and still couldn’t even compete with old Quadro.

W230SS no headphone sound fix.

Everything happy with my new laptop, but it had a problem that was quite irritating.

I could not get the headphones to work after my laptop wakes up from sleep mode.

I just figured out why, it was that the sound card of W230SS had a different way of handling sound traffic. It had a proprietary method of switching between channels and the default windows driver wasn’t handing them correctly.

I found that Clevo Control Center app was capable of handling them. Do this and you will get working headphones.

1. Download and install Clevo Control Center

2

2. Select the profile of your choice, and click on Gaming tab

1

3. Switch the headphone mode to Direct mode

4. Voila, your headphones will be working like a charm like before