How to check if the user has internet? - macos

I'm making an app for OSX and i would like to know how can i check if the user has internet connection?
I've been searching around on the internet for this, but what i've tried is not working.
Any example code would be very nice! Thanks

Here you can find a drop-in, ARC compatible version of Reachability.
Another version is available here.

Related

How to detect the presence of app in universal Windows plateform

I try to find a way to detect dynamically if an app is installed on a computer inside of another UWP. Is there a way to access user app list or is there a workaround ?
You can use the other app's URI to detect it.
Here's an article I found from 2015 that discusses it.
http://www.c-sharpcorner.com/UploadFile/6f0898/inter-app-communications-in-windows-10-uwp535/
Let me know if that doesn't work for some reason or if you need newer info, then I do some more digging to provide more info.
All the best!

Cloud9 offline mode

The first two links from a quick google search indicate that it's possible to work on a project via cloud9 while offline.
Is this possible to do, and has anyone had any experience with it? There doesn't seem to be anything mentioned in the docs.
I'm working on a chromebook and was hoping that this could be a possibility.
Thanks.
Note, the two links I found were:
http://googlecode.blogspot.co.uk/2011/05/working-offline-with-cloud9-on-google.html
https://www.youtube.com/watch?v=cbZBuxBdT24
Sadly this is not possible yet. There are new offline APIs being designed and we hope to make use of them in the future.

How to implement spotlight like search in Windows?

I need to enable the users to do a livesearch of the contents of a folder from my app. On OS X, I can do it by using the Spotlight APIs which have been exposed. Is there a way in which I can do it on Windows? Does Windows Search SDK help me accomplish this? As far as I know, Windows doesn't index the files until the user explicitly gives permission. So does that mean I've to index the files myself? Are there any open source libraries which do this? How can I go about implementing my own library? Too many questions, I know. I appreciate answers to any of them.
Search SDK is good, but can be switched off by user.
Also try Googel Desktop - do the same thing, but also expects user action on installing it.
Ok. I decided to go with CLucene because I found it more reliable, easier to use and to have a much more active community than Windows Search. And of course I can use it on both Windows and Mac.
Take a look at Xapain. CLucene development seems to have stagnated.

PECL OAuth-1.2.2 for Windows

I'm trying to get PECL OAuth to work on a Windows dev box (using WAMP). I found two dlls for older versions at Pierre's site but neither of them seem to work.
Adding the DLL to the relevant wamp\bin\php\php5.x.x\ext directory and then ticking the option in the PHP extensions flyout does not add anything OAuth related to the output of phpinfo() and if I try to instantiate an OAuth object I get a "Class 'OAuth' not found" error.
Is there anywhere (or any way) that I can get hold of working DLLs (ideally for the latest 1.2.2 version of OAuth, but any 1.0 or higher stable version will do). The maching in question is running 32bit Windows (Vista).
I hope somebody can help where Google has failed me so far...!
Thanks in advance,
Christian
I'm just barely beginning to delve into this whole thing, so I'm not quite sure which way is up, but does this article on oAuth, Xampp, and Windows, scroll down for the English, do the trick?
Let me know as I'm eager to figure all this out too!
And/or would one be able to build it with windows?

How do I get TiddlySnip to work in Firefox?

Since Google stopped supporting Notebooks, I decided to look for alternatives and so I gave TiddlyWiki + TiddlySnip a shot. However, when trying to install TiddlySnip2.1, I'm getting this error:
"TiddlySnip" will not be installed because it does not provide secure updates
I followed the procedure specified in the site which is to add tiddlysnip.com in the Allowed sites-Add ons list but it still won't work.
And to add insult to injury, the support for the extension has been stopped as well.
My final workaround is to use an older version(1.21-beta), which I was able to find, but I'm finding it a bit unstable.
Did anyone have any success with this?
Thank you.
Eureka! Google has saved me! Their google group has a post on how to shoehorn it into Firefox 3.5.x: http://groups.google.com/group/tiddlysnip/browse_thread/thread/e5edef97dec18a17/ce49452f6397083a?lnk=gst&q=does+not+provide+secure+updates#ce49452f6397083a
Right Stumproot, however I just feel the need to look for alternatives.
OT, I went as far as going into the irc channel of tiddlywiki to find out and it seems that there's no other way around this issue than to use the older version.
I think that the TW community still plans to continue developing TiddlySnip but for now it's on hold so TW users will just have to make do with the beta version.

Resources