IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label Problems. Show all posts
Showing posts with label Problems. Show all posts

Monday, March 3, 2014

problems with UIImage imageWithCIImage and CIImage imageWithCGImage

Hi,

 

At some point in my phto/video processing, I have a CGImage that I need to convert to CIImage to apply some CIImage adjustments. Eventually, need to convert it to UIImage for display.

 

The code below seems to be the efficient way of doing it:

CIImage *outputImage = [CIImage imageWithCGImage:cgImage]

...do some processing with CIImage...

UIImage *finalImage = [UIImage imageWithCGImage:ref scale:1.0 orientation:imageOrientation];

 

However, it seems to rescale image introducing various artifacts, pretty much messing up the image.

 

On the other hand, if I create another copy of CGImage with:

 

CIImage *outputImage = [CIImage imageWithCGImage:cgImage]

...do some processing with CIImage...

IContext *context = [CIContext contextWithOptions:nil];

    CGImageRef ref = [context createCGImage:outputImage fromRect:outputImage.extent];

    CGImageRelease(cgImage); 

  UIImage *finalImage = [UIImage imageWithCGImage:ref scale:1.0 orientation:imageOrientation];

CGImageRelease(ref)

 

 

the photo is good - i.e. it doesn't mess up the image, but does double allocation causing huge memory spike for a full res photo - it may even crash the app.

 

1. Why is the CGImage to CIImage to UIImage as in the first example broken ?

2. What is the fix?

 

Thx.


View the original article here

Saturday, March 1, 2014

Re: problems with UIImage imageWithCIImage and CIImage imageWithCGImage

I am quite sorry - made a silly copy/paste mistake:

 

I am already using [UIImage imageWithCIImage] - which is where the problem is.

As posted in the question, the problem is with going from cgimage -> ciimage -> uiimage

It works fine if I make an extra conversion from ciimage back to cgimage.

 

The first part of the example code {that doesn't work well} is actually as folllows and not as shown above {copy/paste mistake}

 

CIImage *outputImage = [CIImage imageWithCGImage:cgImage]

...do some processing with CIImage...

UIImage *finalImage = [UIImage imageWithCIImage:outputImage scale:1.0 orientation:imageOrientation];


View the original article here

Saturday, August 17, 2013

Jar Bundler Problems

Hi, I'm learning Java and I have my own application. It works perfectly when I open the jarfile, but when I use Jar Bundler to convert it to an app, it quits before it opens. The icon appears in the Dock and then disappears. Also, when I try to choose "Main class" the file never appears after I choose it. Does anyone know how to fix this or any other alternatives? Thanks.


View the original article here

Sunday, August 11, 2013

Re: Problems compiling C in XCODE using VISA / NI

Friday, August 9, 2013

Problems compiling C in XCODE using VISA / NI

Hi,

 

I'm developing a program in C to communicate with my Tektronix oscilloscope. I inherited this project from a friend (who is currently incommunicado), so I can't talk to him about it.

 

Basically, my problem is that my program will not build due to a linker problem. I am using functions from the NI-VISA 5.4 package for OS X 10.8. However, the linker cannot seem to find the correct functions for my system:

 

Undefined symbols for architecture x86_64:

  "_viClose", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

      _closeInstr in oscilloscope.o

  "_viOpen", referenced from:

      _setupVI in oscilloscope.o

  "_viOpenDefaultRM", referenced from:

      _setupVI in oscilloscope.o

  "_viRead", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

  "_viStatusDesc", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

  "_viWrite", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

These are all pretty basic VISA functions. I struggled in just including the correct header file, as

#include

didn't work. When I went to the verbose form, it worked:

#include "/Library/Frameworks/VISA.framework/Versions/A/Headers/visa.h"

 

However, then the problem started happening that I'm having now -- the object linker can't find the code for the VISA functions. I've tried changing build architctures from x86_64 to just x86, without avail. I'm currently building in i386 x86. I've also tried (under Build Phases -> Link Binary with Libraries) to link the VISA.framework to the project, but this simply gives the linker error "cannot find VISA".

 

I feel like I am missing something very obvious. I'm still operating under the notion that either NI-VISA did not install to the correct location, or that my build settings are incorrect.

 

Does anyone have any insight to lend? I've been searching through different forums for help for almost 2 days now, with no avail.




View the original article here

Re: Problems compiling C in XCODE using VISA / NI

Are you using Xcode or doing it from the command line?

 

You need to tell the compiler the library and where it is.  In Xcode you would do this in the Build Phases window of the project under the Link Binary with Libraries area.

 

Just saw you say you tried this. Ar you sure you are setting the right path.

 

Where did you get the librsry from? Did you compile it on the Mac or was it compiled?


View the original article here

Re: Problems compiling C in XCODE using VISA / NI

Are you using Xcode or doing it from the command line?

 

You need to tell the compiler the library and where it is.  In Xcode you would do this in the Build Phases window of the project under the Link Binary with Libraries area.

 

Just saw you say you tried this. Ar you sure you are setting the right path.

 

Where did you get the librsry from? Did you compile it on the Mac or was it compiled?


View the original article here

Thursday, March 28, 2013

Anyone else experiencing problems accessing correct sales data for their App sales?

Please get back to me if you have any information on this.Have downloaded sales data for February but all weeks not showing and figures.One set of graphs show figures in 10's and 20's and 30's.

Apple then got back to me with totally different figure from mine and a graph that goes up in single figures.I asked them to escalate the query as I needed February's sales figures to be sent to me to check.Apple say they are"not responsible for any discrepancies in sales data".And are not supplying me with them.Seems wrong to me.


View the original article here

Friday, March 22, 2013

Re: Anyone else experiencing problems accessing correct sales data for their App sales?

Thank you KT.very helpful.makes sense.will try that.


View the original article here

Re: Anyone else experiencing problems accessing correct sales data for their App sales?

Thank you KT.very helpful.makes sense.will try that.


View the original article here

Wednesday, March 20, 2013

UITextView attributedText with NSStrokeColorAttributeName problems

Hello there, I want to add stroke to UITextView's text in iOS 6.

As iOS 6 add support attributedText to UILabel, UITextField, UITextView, I create a NSMutableAttributedString and set it to UITextView's attributedText. Code is below:

 

- (void)viewDidLoad {

    [super viewDidLoad];

    NSMutableAttributedString *title;

    title = [[NSMutableAttributedString alloc] initWithString:@"Visual comparison"];

    int length = title.length;

    [title addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Noteworthy-Bold" size:36] range:NSMakeRange(0,length)];

    [title addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(0,length)];

    [title addAttribute:NSStrokeColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,length)];

    [title addAttribute:NSStrokeWidthAttributeName value:@-3.0 range:NSMakeRange(0,length)];

   

    UITextView *label = [[UITextView alloc] initWithFrame:self.view.bounds];    label.attributedText = title;

    [self.view addSubview:label];

}

 

But it take no effect, UITextView's text is not stroked or filled. Replace UITextView with UILabel or UITextField everything will be right.

 

And if you set NSStrokeWidthAttributeName's value to @3.0 and comment one line like this:

 

- (void)viewDidLoad {

    [super viewDidLoad];

    NSMutableAttributedString *title;

    title = [[NSMutableAttributedString alloc] initWithString:@"Visual comparison"];

    int length = title.length;

    [title addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Noteworthy-Bold" size:36] range:NSMakeRange(0,length)];

    [title addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(0,length)];

//    [title addAttribute:NSStrokeColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,length)];

    [title addAttribute:NSStrokeWidthAttributeName value:@3.0 range:NSMakeRange(0,length)];

   

    UITextView *label = [[UITextView alloc] initWithFrame:self.view.bounds];    label.attributedText = title;

    [self.view addSubview:label];

}

 

UITextView's text is stroked exactly.

 

If you add these lines:

 

- (void)viewDidLoad {

    [super viewDidLoad];

    NSMutableAttributedString *title;

    title = [[NSMutableAttributedString alloc] initWithString:@"Visual comparison"];

    int length = title.length;

    [title addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Noteworthy-Bold" size:36] range:NSMakeRange(0,length)];

    [title addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(0,length)];

    if (length % 2 == 0)

    {

        length = length / 2 - 1;

    }

    else

    {

        length = length / 2;

    }

    [title addAttribute:NSStrokeColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,length)];

    [title addAttribute:NSStrokeWidthAttributeName value:@-3.0 range:NSMakeRange(0,length)];

   

    UITextView *label = [[UITextView alloc] initWithFrame:self.view.bounds];    label.attributedText = title;

    [self.view addSubview:label];

}

 

and then UITextView's text will be correct again.

 

Anyone know why?


View the original article here

Monday, March 4, 2013

UIImagePickerController and UITextfield keyboard problems.

I am using a UINavigationController... from within one of my UIViewController, I present a UIIMagePickerController... when I press cancel... and return to my UIViewController, and press on a UITextfield... the keyboard no longer appears...

 

The issue seems to carry to all the UIViewControllers within my navcontroller... If I don't present the UIImagePickerController, I have no issues... seems like presenting UIImagePickerController is causing some issues as to when the keyboard renders.

 

When I have the cursor on my textfield (and the keyboard is not showing)... if I present the UiImagepickerController at this point... the keyboard appears for an instant before being covered by the image picker.

 

Does anyone know of this problem and how to solve it? Would appreciate any help. Thanks.


View the original article here

UIImagePickerController and UITextfield keyboard problems.

I am using a UINavigationController... from within one of my UIViewController, I present a UIIMagePickerController... when I press cancel... and return to my UIViewController, and press on a UITextfield... the keyboard no longer appears...

 

The issue seems to carry to all the UIViewControllers within my navcontroller... If I don't present the UIImagePickerController, I have no issues... seems like presenting UIImagePickerController is causing some issues as to when the keyboard renders.

 

When I have the cursor on my textfield (and the keyboard is not showing)... if I present the UiImagepickerController at this point... the keyboard appears for an instant before being covered by the image picker.

 

Does anyone know of this problem and how to solve it? Would appreciate any help. Thanks.


View the original article here

Sunday, March 3, 2013

Saturday, March 2, 2013

Im using xcode 4.6 and im having problems reading files using the fopen function in c


Im using xcode 4.6 and im having problems reading files using the fopen function in c


View the original article here

Im using xcode 4.6 and im having problems reading files using the fopen function in c


Im using xcode 4.6 and im having problems reading files using the fopen function in c


View the original article here

Sunday, February 3, 2013

Problems with ARC

Ive doing a tutorial over using opengl es in an app, but i come across errors whenever i attempt to use auto release, and i do not know how to fix this. I assume its necessary because the tutorial is telling me to use the autorelease command, but i dont know how to get rid of these error. Any help would be appreciated!


View the original article here

Problems with new MacBook Pro

In my new MacBook Pro (delivered 7/10/12) I've had continual problems with an invasion of others that have turned my Apple world upside down.

My new 10.7.4 OS, I found out that I  was under a 10.6 system.(impossible, I've never owned a Mac Computer before this one!!

Then my mail and apps had problems plus I've recieved constant phone calls at my home that affected my new system.."marketing" calls.

I've been working with my Florida WiFi provider for almost a year and I've only been able to afford a home phone, which they've taken over!

I have never given my phone number out to anyone but my family and don't belong or engage social networks, so these invasions have been alarming!

Then my iPad 2, after a restoration, displayed a problem on my new MacBook, an "iPhone error" oh, I have never owned an Apple iPhone either just to throw that possibility out....excuse me..another marketing call!!

 

Then last night on my Usage and Data logs in my iPad 2, I saw "purplebuddy" in my iAds (again!) my stats sent to Apple.

I saw in those logs that I was having my "voice recorded" with a download of time described..who did that?

Once again, I saw more "game kits" in my iPad 2..which can enable a "microphone set up" on it, then I saw a mobile phone listed, again... I don't have one.

It's shocking and devasating...like having peepers and it's been a year now of this constant battle

I've lost my trust..in my computer life and I'm continually looking under my apps and I'm careful about my choices..in EVERYTHING!

This has affected my personal life and health completely.

To make things worse, my new MacBook Pro just "crashed" and I'll be visiting my nearest Apple Store to fix it as well as my iP(again! done it constantly since my first one...September 26, 2011!!!)

This has been an incredible and computer "experience" that no one should go through and my new Apple base station has been affected by these Remote Invaders..AssistiveWare.


I called the police twice, have legal representation, endless calls to my Network here in Florida, tossed out the new computer I started out with in September 2011 and Apple helped by replacing my iPad 2's (I'm on my third since last year)

Even my 2nd generation iTouch was used with a "iphone-elite "google code" to a port on Wiki without my knowledge in order to to "sync" with my iPads so "other's" could see what I was developing on it, with "Accessibility" work, creative concepts (heard) as well as keeping up with my work I've continued to do in regards to bringing human voice to the forfront of our disabled.

 


Apple has been absolutely amazing during this time and has helped me through this alarming "remote" invasion by others who think "Tech" means "I Got You!"

This is a very brief overview of my nearly year long "surprises" no one wants to find...continually.

Since September 26, 2011..I have lived with this nightmare..even recieving 2 "tele-marketing" calls that my Wi Fi provider is now pursuing.

 

Has anyone else been through this?

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 


 



 

 

 


 

 

 

 

 


 



View the original article here

Wifi Problems Macbook Air


****. I have a previous generation BAse station extreme.



We have iPad, iPhones (2), Macbook Pro Retina, and this summer my wife finally got a Macboor air 11 inch on my recommendation.



She encounters a recurring problem where the WiFi icon gets a exclamation point and she can,t connect to any wireless network. It'll take a few minutes, sometime sa restart, and it will come back. I had never encountered this problem with my Mac... until last week. At first I thought it was her MBA which had a hardware problem, but sicne mine has encountered it once... I figured maybe it's the Airport Base station? Should I buy a new router?



Just to give you as much detail as possible: I have ADSL Internet, and the base station is configured as bridge since the router handles the rest. The computers connect to the network broadcast from the base station, not the Bell Speedstream router.



thanks for any help


View the original article here