Recently I installed a new version of the iOS. First impression could be probably described as “what the hell is this”. But quite soon I get used to it. It is definitely a step forward, it is modern, it has good new ideas. UI is also a bit buggy, but this is totally OK for a beta release. Nasty thing is that a man has to do quite some job to make an app (especially an app which uses custom stuff like icons, buttons or gradients) look OK for the iOS 7.
Quite often I create simple or test apps using native Win32 project (WINAPI). This time I wanted an output of Box2D world. No ready-to-copypaste implementation was found in the Net, so I had to make my own, and now I can share it
And here is the source code:
// Created by PavlAl on 06.05.2013
// Copyright (c) 2013 tatalata, http://talatala.com
class DebugDrawGDI : public b2Draw
/// Initialize drawing of a whole world.
void Begin(RECT & winRect, HDC hdc, b2World *world);
/// Initialize drwaing in a certain AABB.
void Begin(RECT & winRect, HDC hdc, b2World *world, const b2AABB & aabb);
/// Unintialize drawing.
/// Draw a closed polygon provided in CCW order.
virtual void DrawPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color);
/// Draw a solid closed polygon provided in CCW order.
virtual void DrawSolidPolygon(const b2Vec2* vertices, int32 vertexCount, const b2Color& color);
/// Draw a circle.
virtual void DrawCircle(const b2Vec2& center, float32 radius, const b2Color& color);
/// Draw a solid circle.
virtual void DrawSolidCircle(const b2Vec2& center, float32 radius, const b2Vec2& axis, const b2Color& color);
/// Draw a line segment.
virtual void DrawSegment(const b2Vec2& p1, const b2Vec2& p2, const b2Color& color);
/// Draw a transform. Choose your own length scale.
/// @param xf a transform.
virtual void DrawTransform(const b2Transform& xf);
/// Setup current brush and pen.
void SetColor(const b2Color& color);
/// Delete current brush and pen.
/// Reference to a HDC set in Begin method.
/// Last used brush, owned by DebugDrawGDI.
/// Last used pen, DebugDrawGDI.
/// Last used color.
- 4 new playable ships with different weapons.
- Health bonus in easy level.
- Improved graphics: dynamic lights and details on level backgrounds.
- New music themes and sound effects created by Mark Braga specially for The Last Mission.
- Brand new secret level with bonus ship at the end.
- Integration with the Game Center (worldwide leader board).
- Game status is saved between app runs.
- Updated GUI with a little help on the game.
- Adjusted controls positions for iPad, iCade support (bluetooth joystics).
Now game is finally playable and fun, I am very happy with results and can continue with my other project
Meanwhile, the author of the remake, Dmitry Smagin is planning to continue development and release the new version for Windows and open-source portable systems. I’m looking forward for it.
I had a problem using Cisco VPN connection when I was online via USB LTE modem (that was Huawei): no access to mapped drives was possible, no Outlook connection as well. I had not found any solution in the Internet, and my system administrator solved the problem only after discussion with provider customer service.
Last week, in ICE train I met guys discussing the very same issue, so it seems quite a useful hint. Here it is:
1. Open the folder with software installed from stick (in my case it was: C:\Program Files (x86)\T-Mobile\InternetManager_H\)
2. Locate there a file named SysSetting.xml and edit it
3. Find the following part in the file: <Connect> <type>NDIS</type> and replace NDIS with DUN
4. Save the file and restart the software.
I used the same trick with T-Mobile an O2 sticks as well, worked fine. I wish you a joyful mobile surfing in corporate networks