Techbirds | Knowledge Hub | Page 33

Posted on: April 28, 2014 /

Categories: PHP / Author Name: Anand Kumar

Problem: Images are not shown in websites and images are not upload in post and pages. Solution : Access website folder using ftp . go to wp-content -> uploads. Try to change the permission of uploads folder from 755 to 777.It works for me. 491 total views, no views today

491 total views, no views today

The current version of jQuery Mobile supports iOS (iPhone, iPad, iPod Touch), Android, Blackberry OS6, HP’s webOS, Mozilla’s Fennec and Opera Mobile. In the future, other platforms will be added including Windows Mobile, Symbian, MeeGo and more. One of the goals of the project is to extend the reach of jQuery to aid in building

Read More →

608 total views, no views today

Step1:Making the sprite at the angle where we want to place the b2body:Assuming rX and rY are the scaling factors

CCSprite *rect=CCSprite::create(“rect.png”); rect->setScaleX(rX); rect->setScaleY(rY); rect->setRotation(-7); rect->setPosition(ccp((winSize.width*0.5)/PTM_RATIO, (winSize.height*0.5)/PTM_RATIO)); this->addChild(rect,1);

CCSprite *rect=CCSprite::create(“rect.png”);

rect->setScaleX(rX);

rect->setScaleY(rY);

rect->setRotation(-7);

rect->setPosition(ccp((winSize.width*0.5)/PTM_RATIO, (winSize.height*0.5)/PTM_RATIO));

this->addChild(rect,1);

Step2:Then make the corresponding b2body.Here i am loading the body from the physics editor,therefore adding it using the GB2ShapeCache by adding the plist file.

GB2ShapeCache::sharedGB2ShapeCache()->addShapesWithFile(“dummy.plist”); void class_name::add body() { b2BodyDef bodyDef; bodyDef.type=b2_dynamicBody; bodyDef.userData = rect; MyPhysicsBody *body=(MyPhysicsBody*)world->CreateBody(&bodyDef); body->setTypeFlag(1); body->SetTransform(b2Vec2((winSize.width*0.5)/PTM_RATIO,(winSize.height*0.5) /PTM_RATIO), rect->getRotation()); // add the fixture definitions to the body GB2ShapeCache *sc = GB2ShapeCache::sharedGB2ShapeCache(); sc->addFixturesToBody(body,”body_name in plist file”, rect); rect->setAnchorPoint(sc->anchorPointForShape(“body_name in plist file”)); }

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

GB2ShapeCache::sharedGB2ShapeCache()->addShapesWithFile(“dummy.plist”);

void class_name::add body()

{

b2BodyDef bodyDef;

bodyDef.type=b2_dynamicBody;

bodyDef.userData = rect;

MyPhysicsBody *body=(MyPhysicsBody*)world->CreateBody(&bodyDef);

body->setTypeFlag(1);

body->SetTransform(b2Vec2((winSize.width*0.5)/PTM_RATIO,(winSize.height*0.5) /PTM_RATIO), rect->getRotation());

// add the fixture definitions to the body

GB2ShapeCache *sc = GB2ShapeCache::sharedGB2ShapeCache();

sc->addFixturesToBody(body,”body_name in plist file”, rect);

rect->setAnchorPoint(sc->anchorPointForShape(“body_name in plist file”));

}

Step3:Now make some changes in the update function which

Read More →

1,645 total views, no views today

Posted on: April 28, 2014 /

Categories: PHP / Author Name: Anand Kumar

If you are doing development for Shopify or want a test site to experiment with, you can create a free test site. There is no way to run Shopify locally on your machine so you would need to create the test site using Shopify. Sign up for a free account here( https://www.shopify.com/partners) . The partner

Read More →

843 total views, no views today

Key hashes : required for Facebook login in order to perform security check. every Android app you’ll create will be signed, and you will need to register each app’s key hash with Facebook as a security check for authenticity – as we’ll see later. But to bypass this check for the SDK samples and to

Read More →

426 total views, no views today