make CAlayers using for loop

sorry for the simple question but how do you make a CAlayers using a for loop? I have this now but what is the proper way of doing this? for (int n = 1; n <= 6; n++) { NSString *theCloud =...

Changing a ongoing animation

Basically, what i'm trying to do is animate a cloud, and then change it's speed and/or direction mid-animation if the wind changes. If it matters, i am controlling the whole thing from a...

UIButton not interacting during animation

I'm trying to animate a UIButton. But during it's animation, there is no interaction with the UIButton. Expected behavior is to be able to click on the button while it's moving. Here's the code...

Windows phone 7.1 can I change font size on a shell tile?

I'm trying to display a tweet on the backside of a live tile, when I set it as BackContent it's way too big.... Is there any way to lower the font size? EDIT: Claus, Now i'm having trouble getting...

Tiling a UIImageView using resizeableImageWithCapInsets:resizingMode?

I'm using the following code to try to create a tiled image with cap insets, and seeing the image below as the results in the simulator. My source image is 145x83 pixels in size, and shown here...

Retrieve string from vector

I stuck in how to retrieve string from vector. My code as following. in my .h file: vector<string>cloudsImages; in my .m file: cloudsImages = FileOperation::readFile(); for (int i = 0; i <...

Rules for managing CGImageRef memory?

What are the rules for managing memory for CGImageRefs with ARC? That is, can someone help me to the right documentation? I am getting images from the photo library and creating a UIImage to...

Add effect to existing video in iOS

Hy I want to make a simple application which creates a video with special effect. The following code manipulates the loaded video from gallery and place images and text of the bottom of the...

iOS animate continuous background?

I'm creating an application for iOS6 and 7. I need to make a continuos background, meant: i got 2 pictures i want to loop, and make the "infinity" view. I have tried a lot of code examples, but...

Pygame throws "TypeError" when creating a custom sprite class

I am trying to create a scenery with images moving in different speeds from one side of the screen to the other, creating a parallax effect. I use a sprite class I called BackgroundObject, but...

Save a sliced point cloud- Matlab

I have sliced a point cloud(30%) from original cloud(.ply image) using Matlab R2015b Image Processing Toolbox. When i save that sliced cloud as a new point cloud. sliced and background of original...

Cannot read property 'rotation' of undefined - Three.js

The code is executing what it is supposed to do but I'm getting 2 errors in the console: "Cannot read property 'rotation' of undefined". Confused as to why it's throwing errors since the two...

How to execute a raw union SQL query on several tables with Entity Framework Core

I'm programming a web application with intentionally implemented vulnerabilities for a CTF competition and I'm using ASP.NET Core and Entity Framework Core with a SQLite database. I want to make a...

is there any way to convert video to image using php or javascript?

i want to display a 360 video en screen, like this example https://scaleflex.github.io/js-cloudimage-360-view/ i have an idea to shoot a video and convert it to image, for every second a frame...

Assign static/DHCP IP from the hosts network to KVM VM provosioned by Terraform

I have a testserver connected to my home network with static IP address, virtualized with KVM/Libvirt. To test some services inside my network (e.g. with cell phones), I'd like to assign those VMs...