Tag Archives: ios

Fix iOS picture orientation after upload PHP

Questions: Is there a way to rotate a picture with PHP only if it is not correctly positioned after uploaded from iOS? Some pictures are rotated 90 degrees while others upload correctly. Answers:

Uploading an image from iOS to PHP

Questions: I’ve been working on uploading an UIImage to an webserver. The problem is, that the image never appears on the Server. A normal POST from an HTML file works. I think it’s an issue in my objective-c code. Here is my objective-c code: NSData *imageData = UIImagePNGRepresentation(delegate.dataBean.image); NSString *urlString = [NSString stringWithFormat:@”%@test.php”, delegate.dataBean.hosterURL]; NSMutableURLRequest… Read More »

stringByEvaluatingJavascriptFromString (iOS method, what is Android equivalent?)

Questions: In an iOS app, I used stringFromJavaScript = [webView stringByEvaluatingJavascriptFromString:@”document.getElementById(\”image\”).getAttribute(\”src”)”]; To get the src directory of the image that was being displayed on the webView. I want to do the same for Android. What are my options? Basically the intent is to capture the path so that I can email this same picture… ie.… Read More »

how to write data to an Excel file in iOS App?

Questions: I found a sample project named DHlibxls could read file from Excel. But… the problem is, I wanna write data to Excel file. My idea is store an excel file template in the app, and write data to the excel file by actions user did in the app and thus create a new excel… Read More »

iOS easy way to convert and store large table

Questions: I have Excel file with table ~100×100 and need to get access to this values from iOS app. At first, I’ve try to make json in Mr.DataConverter and then it’s not a problem to read to array. But! Some float values didn’t recognized properly, and I’d got numbers without quotes: At the time other… Read More »

VBA to find Install Date and Bios Date for remote machines

Questions: I am trying to get some VBA code working to return a computers Ping result, Installation Date and BIOS Version (to get the date). For i = 1 To lRow Debug.Print i addr1 = ActiveSheet.Cells(i, 1).Value ‘this contains my IP/Computer Name cmdPing = “C:\Windows\System32\PING.EXE ” & addr1 Set shPing = CreateObject(“Wscript.shell”) Set runPing =… Read More »

Integrate with Office from iOS applications

Questions: We want our app to be able to open an Excel document in the Excel app for editing and then be able to come back and see the changes when sent back to our application. I have not been able to get it to work with OneDrive or SharePoint links although it says that… Read More »

iOS MDM push notification using Php, not working

Questions: i know it’s duplicate of this, but this one is not working for me. My Php code to send notification is // Put your device token here (without spaces): $deviceToken = ‘6hPQc2HvdA20XGlQkznJxlappCrzm3kJccljjOsgF2k=\n’; #base64 encoded // Put your private key’s passphrase here: $passphrase = ‘Temp1234’; $ctx = stream_context_create(); stream_context_set_option($ctx, ‘ssl’, ‘local_cert’, ‘./Certificates_push_dev_new.pem’); stream_context_set_option($ctx, ‘ssl’, ‘cafile’,… Read More »

iOS push notification does not work when using crontab scheduler

Questions: I have implemented a sample push notification service for my App. Right now I test in a sandbox environment. I get notifications when I manually call the PHP script to push notifications through APN. When I write a scheduler using crontab to automate the delivery of notifications I dont get the notifications. The error… Read More »