Wargweb
WordPress Facebook Open Graph protocol
April 3rd, 2012 | admin
<a title="OGP plugin download" href="http://rynoweb.com/wordpress-plugins/ ">http://rynoweb.com/wordpress-plugins/</a> A nice OGP plugin for wordpress. Install it, add a facebook user-id as the admin, a default image and it'll automatically set the correct OGP in each post with the correct image attached.
PhysX 3.2 PVD (PhysX Visual Debugger)
March 19th, 2012 | admin
If you are trying to connect to your PVD in you application and are having a crash or a nullptr at the line where you:
physx::debugger::comm::PvdConnectionManager* pvdConnection = mSDK->getPvdConnectionManager();
if(pvdConnection != nullptr)
{
physx::PxExtensionVisualDebugger::connect(pvdConnection, “127.0.0.1.”, 5425, 1000);
}
If you corresponding pvdConnection variable is null it míght be due to that you didn’t link against the debug version PhysX, i.e. you didn’t link to the CHECKED libs. I was linking to almost all CHECKED versions but I had missed one of them, PhysX3CHECKED_x86.lib.
PhysX 3.2 debug build
March 19th, 2012 | admin
When you compile your PhysX 3.2 application using Microsoft Visual Studio 2010 you might get an error saying:
mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ’0′ doesn’t match value ’2′
My solution was that I had my project build in debug mode. Usually in debug mode you have the _DEBUG macro defined in your preprocessor either in a file:
#define _DEBUG
Or in VC++ Project->Settings->C/C++->Preprocessor->Defines.
So, when you build your application in debug mode, make sure to link against the CHECKED versions of the PhysX SDK’ lib, eg. PhysX3CHECKED_x86.lib instead of PhysX3_x86.lib. I’m used to that libs usually use *_debug.lib or *_d.lib as suffix so it wasn’t obvoius for me.
For release build, you just define NDEBUG instead of _DEBUG and link against the non-CHECKED versions of the PhysX3 libs.
2 nice Google Analytics plugins
October 13th, 2011 | admin
If you are using WordPress and want to use Google Analytics there are two plugins which works great together.
Google Analytics for WordPress
Google Analytics Dashboard
The dashboard plugin only displays a short version of your statistics on your dashboard while Google Analytics for WordPress kicks in the Analytics tracking code for you. All you need is an google account.
Have a look on watermelon.
September 22nd, 2011 | admin
Watermelon juicebar is a nice place for lunch and drinks. They serve fresh juices, smoothies, shakes, sandwiches. Me and my companions build the minimalistic website in order to enhance the business face on internet. Go vists them at
Brogatan 11B in Malmö
or at
Wrap std::vector with boost.python
August 30th, 2011 | admin
In avocada, I have a class method that returns a std::vector of GameObject* pointers. When I wrapped the function using
class_<std::vector<GameObject*>>("GameObjectList")
.def(vector_index_suite<GameObject*>);
But I kept getting error message when I used that list in python
> TypeError: No to_python (by-value) converter found for C++ type:
> GameObject*
My solution was to to do a wrapper around the method who return the std::vector and make it a boost::python::list instead.
boost::python::list getGameObjects(Spelprj::GameObjectManager* gmgr)
{
using namespace boost::python;
using namespace Spelprj;
typedef std::vector<GameObject*> ObjList;
ObjList gameobjs = gmgr->getGlobalGameObjects();
boost::python::list pylist = boost::python::list();
ObjList::iterator it = gameobjs.begin();
for(; it != gameobjs.end(); it++)
pylist.append(ptr(*it));
return pylist;
}
class_<GameObjectManager>("GameObjectManager", init<Ogre::Log*>())
.def("getGameObjectName", getName1, return_value_policy<copy_const_reference>())
;
Windows 7 and Simon are now friends
June 21st, 2011 | admin
This is the first time I install Windows on my machine without having to reinstall it 40 minutes later. My install record is about ~20 times within two days before I got that piece of software working on my last machine. Windows 7 is a lot nicer than Vista and so far everything has moved on smoothly. 25 minutes install and poof, it works. Amazing!
Managing pure-ftp
June 6th, 2011 | admin
I’m using pure-ftpd on my server to handle ftp connections. It allows you to create multiple users in ftpd and you can connect ftpd users to any linux user(s). When ftpd is installed use the following command:
sudo pure-pw useradd [choose-ftpd-username] -d [directory-of-ftp-files] -uid [linux-username]
Then you will be asked to set a password for the user. To view your user information, enter the following:
sudo pure-pw show [ftpd-username]
To set a new password for an existing user, use:
sudo pure-pw passw [ftpd-username]
To change other information and settings for an existing user, type:
sudo pure-pw usermod [ftpd-username] [...parameters...] (see official docs)
All the above commands doesn’t take affect until you commit the changes by typing:
sudo pure-pw mkdb
To stop the pure-ftpd service, enter:
sudo /etc/init.d/pure-ftpd stop
To start pure-ftpd service, type:
sudo /usr/sbin/pure-ftpd – j -lpuredb:/etc/pure-ftpd/pureftpd.pdb &
Replace /etc/pure-ftpd/pureftpd.pdb if your .pdb file is located elsewhere
How to create a SVN repository
May 8th, 2011 | admin
When SVN is installed, run this command:
sudo svnadmin create /home/svn/myproject
Then your repository should be created. To apply authorization, go to your repository folder and go into the conf folder. There’s a file called svnserve.conf. Open it and find the line
password-db = passwd
Uncomment it. If you want your respository only to be viewed and read by authorized users then add or uncomment the line:
anon-access = none
In your passwd file, you can set username and password for your repository.
Have a look on la-casita.
May 7th, 2011 | admin
La Casita is a restaurant in Malmö, serving spanish dishes. Me and Jakob Warg at Redwall Movement made the website using a custom template designed by Jakob and HTML’ed by me. The website is powered by WordPress in a simple format featuring a dish menu, and a blog from the kitchen.

