Email Sending Failed - objective-c

I am developing an application for sending emails. I have used the EDMESSAGE framework. I developed the application in MAC OS X 10.6.7 and i got it working. When i installed the application in MAC OS X 10.7.2, email sending is failed.
The error that i am getting is:
Host (null) (() ())has no IPV4 address
Can anybody help me with a solution?

On the EDMESSAGE forum there is this EDMessage on 10.7 Lion / IPv6
Basicly it looks like EDMESSAGE does not support connection via IPV6 which is what your 10.7 Mac may be trying to do.
By the way that info was not hard to find, about 30 seconds of using google. Even with this being the first time hearing about EDMESSAGE. ;-)

Related

Bluetooth LE on iOS cannot work with many services and characteristics

I develop a BLE application, using Core Bluetooth in my iPhone app.
My iPhone communicates with linux with bleno launched.
The problem is that it cannot work with more than one characteristic or service, though just one characteristic works nice.
Here is my code for iOS and .js code for Node.js:
http://pastebin.com/k5pUrbLt
http://pastebin.com/biCWLmJ3
Thank you!
P.S. That's what i get in console:
2014-07-24 13:18:02.819 lexy[142:60b] didDiscoverPeripheral
2014-07-24 13:18:04.503 lexy[142:60b] didDiscoverServices
2014-07-24 13:18:04.506 lexy[142:60b] D61191C0-FCE8-4F5A-912C-15EE39D927B4
I.e. I successfully discover and connect to the peripheral, but I do not find any characteristics. In that case I have one service with many characteristics.
iOS can work with multiple characteristics and multiple services on a remote device.
Your ObjC code seems okay (1 service with 2 characteristics).
Console output suggests that you send a discoverCharacteristics request but that it hangs and never returns. You could add logging to the didDisconnectPeripheral delegate method to see if there is a disconnect happening.
What you could also do is to look at the logs of the Bluetooth stack and to compare them to how the logs look like if you access a TI Sensor Tag (those tags are the hello world of BLE).
iOS 7.1 instructions for Bluetooth logs are located here, for iOS 8 you'll have to resort to Apple's official way to get the logs (installation of a configuration profile) but their logs contain less information than the ones by BluetoothCompanion.
Apparently, it works on Ubuntu 14.04, but doesn't work on OpenSuse 13.1.

chrome.socket UDP API useless on Chromebook?

I am working on a Chrome packaged app that requires multicast communication over the local network and is specifically targeting Chromebook users. The 'Network Communication' documentation on the packaged app site is outdated and the chrome.socket API documentation is lacking. I was able to get some idea of how to get multicast working by looking through Chrome's 'multicast' sample app (https://github.com/GoogleChrome/chrome-app-samples/tree/master/multicast).
I tested my app by loading it into the Chrome browser on my Mac and everything worked great. I loaded it onto my Chromebook and multicast did not work. I then tried the 'multicast' sample app on my Mac and Chromebook with the same result. The 'multicast' sample app is a chat app. When loaded on both computers on the same network, everything works as expected on the Mac - I can send chat messages out and receive chat messages. On the Chromebook I can send chat messages but not receive them - including the ones that the Chromebook sent.
According to this post - Chrome Sockets API Behaves Differently on Chrome OS (vs. Ubuntu, Windows)? - it looks like Chromebook has a restricted firewall that is blocking UDP packets. I followed the instructions on the post to turn on developer mode and allow UDP packets and that allowed my app to run as expected, but that is not a solution for me. I can't expect Chromebook users to run in developer mode to run my app.
Anyone know if it is possible to allow UDP packets on the Chromebook without going into developer mode? Is there an undocumented permission I can add to my manifest to override the Chromebook UDP restrictions (this seems possible since the 'udp-multicast-membership' permission included in the 'multicast' sample app is undocumented)? This seems like a long shot but chrome.socket.create can be given optional socket options which don't appear to be documented anywhere. Maybe there is something I can add there? And why have Chrome sample apps that don't run on a Chromebook???
---UPDATE---
In case someone is having a similar problem, it looks like this has already been filed as a bug and been looked at just within the past couple of weeks.
https://code.google.com/p/chromium/issues/detail?id=275737
I have no idea when it will actually make its way to a Chromebook update.
Regarding:
I have no idea when it will actually make its way to a Chromebook
update.
usually ChromeOS follows the same release schedule as desktop chrome, with new stable versions coming out about every 6 weeks. But because of the holidays in December when lots of people are on vacation, there is sometimes a hiccup. You can give the dev channel a try and see if the fix showed up there yet: https://support.google.com/chromebook/answer/1086915?hl=en

Getting MAC Address in Windows 8 app

I am creating a windows 8 app. I have a requirement to save MAC address of my device but I could not find a way to get the MAC Address.
Can anybody help me out??
This thread says that it is not possible from a Windows Store app, by design. The comments offer some alternatives:
List of WIN32 and COM API that can be accessed from Windows Store apps: http://msdn.microsoft.com/en-us/library/windows/desktop/br205757.aspx
Use ASHWID a unique identifier, using this you can make per device logic for apps: http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx
Sample from Microsoft for download that successfully gets information like the system model and system manufacturer: http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169

Sync iOS & Mac OS X data

Friends I am working on an app with two versions i.e. iOS & Mac OS X. Currently I am exploring my options to sync core data of iOS version to Mac OS X and vice versa.
Could someone suggest me regarding right tools/apis for the same. Or someone have some tips on how to do the same.
The only condition is we can't use cloud/webservice based syncing.
--- Update 01 ---
While working towards the solution, I explored towards syncing via HTTPServer inline/embeded in an app.
http://cocoawithlove.com/2009/07/simple-extensible-http-server-in-cocoa.html
This allows iOS app to share data but via its IP. I am confused how an OS X app would be able to detect the IP or is there any iPhone connected with the Mac OS.
Just to clarify what I am exactly looking for is ---
User work on any one of the app iOS app OR Mac OSx app. Then user connect the iPhone with Mac machine and sync the data.
I hope someone would be able to guide me accordingly.
I recommend to create a Status Menu Bar Application on Mac and sync your data with libimobiledevice.
The syncing itself is not so easy (if it's directly iOS<->Mac or not iOS<->Cloud<-Mac/iOS->). You might start here.

How to write a Ping method in Cocoa/Objective-C?

Method from this question "How to write a Ping method in Cocoa/Objective-C" wasn't helpful, because it only assesses if there is a pathway out of the machine by which the target domain is potentially reachable. So basically almost each host which you testing will be showing as reachable, even if it's not.
Check out the Apple same code for SimplePing
SimplePing demonstrates ping (ICMP) send and receive. The sample runs
on Mac OS X 10.5 and later, although the core code works just fine on
all versions of iPhone OS and the underlying approach works on earlier
versions of Mac OS
X