Archive

Archive for February, 2017

#Webcam on your #Wrist- monitor your house at a glance.

img_1528

App Download link:

https://itunes.apple.com/us/app/mobile-webcam/id652758590?mt=8

Got a webcam or IP cam at home, and you’d like to check up on your pets / kids or just to check that everything is OK? This new update to our Mobile Webcam App – gives you the ability to check out your webcam from your wrist.

It’s a first version, so the image stream is slow, but it’s a practical application of WatchOS, paired with an existing app.

A quick WatchOS tip; you can’t use the following code to download an image on a real device, even through it works on the simulator:

NSData * imageData = [[NSData alloc]
initWithContentsOfURL: [NSURL URLWithString: self.strUrl ]];
[self.imgOutput setImage:[UIImage imageWithData: imageData]];

Instead, you have to use asynchronous code as follows;

NSURL *url = [NSURL URLWithString:
@”http://upload.wikimedia.org/wikipedia/commons/7/7f/Williams_River-27527.jpg”%5D;
NSURLSessionDownloadTask *downloadPhotoTask = [[NSURLSession sharedSession]
downloadTaskWithURL:url completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error) {
UIImage *downloadedImage = [UIImage imageWithData:
[NSData dataWithContentsOfURL:location]];
[self.imgOutput setImage:downloadedImage ];
}];
[downloadPhotoTask resume];

Hope this helps! 🙂

Categories: Uncategorized

#Startcom #SSL certs no longer valid in Chrome 58 & Firefox

startcom

StartCom was a popular SSL cert issuer before the days of LetsEncrypt, as it was one of the few providers that offered SSL certs for free, and thus was very popular. However, after failing to play ball with Mozilla, and were using the obsolete Hashing cypher SHA-1.

This means, if you have an SSL cert issued by StartCom, then you better get a new cert quickly. I personally recommend LetsEncrypt, since it’s free, but others are available. – Otherwise Google Chrome, and Firefox will say your website is insecure.

Mozilla’s official word is:

Mozilla has discovered that a Certificate Authority (CA) called WoSign has had a number of technical and management failures. Most seriously, we discovered they were backdating SSL certificates in order to get around the deadline that CAs stop issuing SHA-1 SSL certificates by January 1, 2016. Additionally, Mozilla discovered that WoSign had acquired full ownership of another CA called StartCom and failed to disclose this, as required by Mozilla policy. The representatives of WoSign and StartCom denied and continued to deny both of these allegations until sufficient data was collected to demonstrate that both allegations were correct. The levels of deception demonstrated by representatives of the combined company have led to Mozilla’s decision to distrust future certificates chaining up to the currently-included WoSign and StartCom root certificates.

Categories: Uncategorized

#Sentry #JS #Error reporting @getsentry

sentry

Ever had an idea, and thought, I wonder does this already exist. You do a quick search on Google, and you find someone has done it really well. That’s what I found with Sentry.io

I’ve always been plagued with clients or customers saying vague things like, “this form doesn’t work”, when the fact was, that they put a hyphen in the mobile phone input box – which seems normal to them, but you didn’t think of it. It’s those type of “non-reproducible”  errors that cause most heartache, because you can’t see them, but the client can.

With two lines of code (yes, honestly, 2), Sentry.io can capture these errors and report them on a screen that even highlights the exact line of code where the error happened. Even better than the console window.

Looks a great bit of kit!

 

Categories: Uncategorized

#Subtitles app now available on Apple #WatchOS

Categories: Uncategorized

First Apple #Watch #App now live

btc

Now Live on the app store:

https://itunes.apple.com/us/app/get-bitcoin/id1072062149?mt=8

Yes, our first app with an Watch App extension. It lets you track the value of Bitcoin against USD at a glance. Whilst the main app on the iPhone lets you earn free bitcoin as you go. – Check out the website http://www.freebiebitcoin.com 

It took about a month to develop – on and off, of course. With some hiccups along the way;

https://blog.dotnetframework.org/2017/01/28/framework-coremedia-not-found-error-watchos-cordova/

and, some early successes – https://blog.dotnetframework.org/2017/01/08/a-simple-watchkit-app-in-objectivec/

I had said to myself that I’d get this done by the end of January, and I almost made it. Still happy. The next watchOS app should be out later this week.

Categories: Uncategorized

Making a HTTP request from objective C

f58bb86caadcc1cda081a893f5c35b6e

I don’t normally write about objective C, since I’m not experienced in programming in that language, but I thought I’d post this really crucial, yet simple way to make a HTTP request in objective C, and get a string (NSString) back

NSString *dataUrl = @”https://yourAPI.com/something”;

    NSURL *url = [NSURL URLWithString:dataUrl];

    NSURLSessionDataTask *downloadTask = [[NSURLSession sharedSession]

    dataTaskWithURL:url completionHandler:^(NSData *data, NSURLResponse *response, NSError *error)

    {

        if (error)

        {

           // report  error.localizedDescription to the user.

            return;

        }

        NSString *content = [[NSString alloc]

            initWithData:data

            encoding:NSASCIIStringEncoding];

       // Now Content contains the returned data.

    }];

    [downloadTask resume];

Categories: Uncategorized

#Free #Whois #API in #PHP

Categories: Uncategorized

Use your own #domain on free-site providers without paying extra DomainDeflect.com

banner

Use your own domain on free-site providers without paying extra

Have you Just designed your new website on a free website provider like Weebly, then find out they want to charge to use your own domain? Not any more!

SEO friendly site on your own domain

So, you don’t want your your website to be you.weebly.com, and you want your-cool-name.com instead? but guess what? they want money to set this up for you, and you’ve already paid for your domain name. What a rip-off!

Domain Deflect lets you use your own domain, and “deflect” it to the rubbish name that your free-site provider has allocated you. It’s free, and SEO friendly, so Google won’t know the difference.

What is Domain Deflection?

This is not URL masking, it’s not a redirect, and no, it’s not just limited to Weebly – it works with other free site providers too. A domain deflection is where we download your website, and serve it up on your own domain, not the one that Weebly has allocated to you.

You can still make changes to your site, as you usually do, and you can stop using this service whenever you want

How to get started?

Ok, you want to try this out?, ok, so the first thing you need to do is log into the website where you bought your domain name, go to the DNS settings, and add a “CNAME” record on “www” to point to “host.domaindeflect.com”. You should also add an A record on “@” to point to 95.154.244.106. Click here for a handy guide from Google on how to do this.

SEO Tips

Understanding what’s so important about your domain name

Your domain name should be considered as important as your business name. It is how people refer to your business on-line, and no self-respecting business would want to be referred to as SomeCompany.freewebsite.com – it instantly looks unprofessional and cheap.

Choosing a domain name shouldn’t be taken lightly, it should be the right balance between being brandable, and matching what your potential customers may search for online. For example, if you are a dog walking business based in Chicago, then DogWalkingChicago.com exactly matches what your customers would search, whereas SuperDooperK9.com does not match the search at all. However, If you do alot of printed advertising, then a short memorable name would be better, since there is no SEO gain in printed adverts.

 

If you’re not going to spend mega-bucks hiring a web designer, and want to design the site yourself, then the obvious place to start is one of the many free-website companies available, like Weebly, or the many others.

But once everything is finished, and you want to go live, you’ll quickly find out that they want money from you in order to have your own domain name, rather than the rubbish one they have allocated you.

This service allows you to stay on the “free plan” with your free website provider, but we do the mapping between your domain name and the free website. If you have more than one domain name, then you can use all of them if you want.

Categories: Uncategorized

AvatarAPI .com now includes @DandyID and #Flickr

AvatarAPI

Want to pre-fill a contact form with the full name of the person contacting you?, got a database of email addresses that don’t include names? AvatarAPI.com solves that for you!

It’s even fun if you just want to put a face to that last email you were sent. Try it out! 🙂

We’ve now added extra sources, outside of Google, including Flickr and DandyID. Both significantly smaller than Google, but every little helps.

The DandyID API is quite niche, so I thought I’d share the c# implementation here:

var strUrl = “http://www.dandyId.org/api/return_profile/{APIKEY}/{0}/public”;
strUrl = string.Format(strUrl, email);
var wc = new WebClient { Encoding = System.Text.Encoding.UTF8 };
var strXml = wc.DownloadString(strUrl);
if (!strXml.Contains(“userId”)) throw new Exception(“DandyId lookup failed”);
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strXml);
var strRealName = xmlDoc.SelectSingleNode(“userProfile/firstName”).InnerText;
strRealName += ” ” + xmlDoc.SelectSingleNode(“userProfile/lastName”).InnerText;
var strId = xmlDoc.SelectSingleNode(“userProfile/userId”).InnerText;
var Image = “http://www.dandyid.org/beta/avatar_image/” + strId;

 

Categories: Uncategorized