Text 22 Nov TIL About LocalStorage

This came in extremely handy, and was far less code for me than using cookies.  Thanks, HTML5.

http://coding.smashingmagazine.com/2010/10/11/local-storage-and-how-to-use-it

localStorage.setItem('favoriteflavor','vanilla');

var taste = localStorage.getItem('favoriteflavor');2// -> "vanilla"

localStorage.removeItem('favoriteflavor');

Photo 20 Jul Taken with instagram

Taken with instagram

Text 19 Jul Compile Qt for VS2010

Awesomely succinct writeup:

  1. Visual C++ 2010 contains all necessary SDKs for Qt compilation. However if you plan to use Qt with Phonon you need to install additional software from Qt for Windows Requirements list.
  2. Download and extract Qt 4.7.1 Source Code.
  3. Copy contents of the folder qt-everywhere-opensource-src-4.7.1 to the directory where you intend to install Qt. In our case this is C:\Qt\4.7.1.
  4. Set up environmental variables
    QTDIR=C:\Qt\4.7.1
    QMAKESPEC=win32-msvc2010
  5. Update PATH variable to include %QTDIR%\bin
  6. Download the latest version of jom.
  7. Extract jom files to C:\Qt\jom folder
  8. Start Visual Studio 2010 Command Prompt:
    Start > Programs > Microsoft Visual Studio 2010 > Visual Studio Tools > Visual Studio Command Prompt.
  9. Run following commands in it:
    cd c:\Qt\4.7.1
    configure -debug-and-release -opensource -platform win32-msvc2010
    ..\jom\jom.exe -j 4
  10. Download and install Qt Visual Studio Add-in.
  11. Run Visual Studio 2010. Integrate just compiled Qt to IDE using menu Qt > Qt Options

Original post here: http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

Photo 28 Jun Choochx: I earned this achievement: Port Scion Support! #Rift

Choochx: I earned this achievement: Port Scion Support! #Rift

Photo 28 Jun Choochx: I earned this achievement: In Your Kitchen! #Rift

Choochx: I earned this achievement: In Your Kitchen! #Rift

Text 24 Jun Using Win7 as a Symbol Server

Apparently, if you want to copy large amounts of files to a Win7 share (which in my case is a symbol server) you’ll need to use a quick registry hack to stop the machine from choking (and in my case, crashing):

http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

Set the following registry key to ’1′: 

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

…and set the following registry key to ’3′:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Photo 22 Jun Choochx: I earned this achievement: Icewatch Revenge! #Rift

Choochx: I earned this achievement: Icewatch Revenge! #Rift

Text 22 Jun Visual Studio 2010 Configuration-specific Project Dependencies

Given this issue:

  • Solution_Xbox.sln contains: app.vcxproj, xbox.vcxproj
  • Solution_PC.sln contains: app.vcxproj, pc.vcxproj

If your app.vcxproj contains references to both xbox.vcxproj and pc.vcxproj, both slns will produce linking errors for projects they don’t have included.  There is also, for some horrible reason, no interface in visual studio 2010 to fix this.  Here’s a workaround:

http://stackoverflow.com/questions/4137295/how-can-one-make-a-visual-studio-2010-project-dependency-be-configuration-specifi

Photo 5 Jun Choochxt: I earned this achievement: Favorful! #Rift

Choochxt: I earned this achievement: Favorful! #Rift

Photo 5 Jun Choochxt: I earned this achievement: Soulful! #Rift

Choochxt: I earned this achievement: Soulful! #Rift


Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.