Archive

Archive for September, 2017

#Car #Registration #API in #Chile launched today

September 30, 2017 Leave a comment

r_1_med_MD9YWKPE

Chile, a nation of 17.91 Million people, and 4.26 million cars (Source: WHO), has now been added to our rapidly growing list of support for international vehicle APIs. With this API, you can determine the make, model, age, and even the owner’s name and RUT (Rol Único Tributario) number.

You can sign up to the API here; http://cl.matriculaapi.com/

Car registration plates in Chile use the /CheckChile endpoint and return the following information:

  • Make & Model
  • Age
  • Owner information
  • Representative image

Sample Registration Number:

DKCZ90

Sample Json:

{
 “Description”: “BMW 116 M 1.6”,
 “RegistrationYear”: “2012”,
 “CarMake”: {
   “CurrentTextValue”: “BMW”
 },
 “CarModel”: {
   “CurrentTextValue”: “116 M 1.6”
 },
 “MakeDescription”: {
   “CurrentTextValue”: “BMW”
 },
 “ModelDescription”: {
   “CurrentTextValue”: “116 M 1.6”
 },
 “ImageUrl”: “http:\/\/cl.matriculaapi.com\/image.aspx\/@Qk1XIDExNiBNIDEuNg==”,
 “DriverRut”: “18145092-4”,
 “DriverName”: “LUIS EDUARDO SALINAS FARR\u00c1N”,
 “ValidSince”: “2015-04-01”,
 “Expiry”: “2016-03-31”,
 “VehicleType”: “AUTOMOVIL”
}

Advertisements
Categories: Uncategorized

#Car #Registration #API in #Argentina just launched

September 29, 2017 Leave a comment

trinity-buenos-aires-skyline

http://ar.matriculaapi.com/ is an API that allows developers determine the make, model, age and region from a Argentinian number plate. It is the latest country to be added to our growing global coverage, and the first south american country to be supported.

Argentina has a population of 43 million people, and a driving percentage of 31.5%, giving a total volume of 13.8 million vehicles registered in Argentina.

To try out the API, head over to the website, and create a free account, then call the web service using the /CheckArgentina endpoint to return the following information:

  • Make & Model
  • Age
  • Region
  • Representative image

Sample Registration Number:

NOD441

Sample Json:

{
 “Description”: “FIAT PALIO ATTRACTIVE 1.4 5 P “,
 “RegistrationYear”: “2014”,
 “CarMake”: {
   “CurrentTextValue”: “FIAT”
 },
 “CarModel”: {
   “CurrentTextValue”: “PALIO ATTRACTIVE 1.4 5 P “
 },
 “MakeDescription”: {
   “CurrentTextValue”: “FIAT”
 },
 “ModelDescription”: {
   “CurrentTextValue”: “PALIO ATTRACTIVE 1.4 5 P “
 },
 “Region”: “Ciudad de Buenos Aires”,
 “ImageUrl”: “http:\/\/ar.matriculaapi.com\/image.aspx\/@RklBVCBQQUxJTyBBVFRSQUNUSVZFIDEuNCA1IFAg”
}

Categories: Uncategorized

госномер.com #API now includes #SovietUnion registration numbers

September 28, 2017 Leave a comment

@SXpoIDQxMtCY0K0tMDI4

госномер.com is an API that returns data on Russian-registered cars, and is designed primarily for current Russian vehicles. However, thanks to a partnership with Avto-Nomer.ru, the API now includes Soviet Union registered vehicles, which are pre-1991.

The format of the data returned for a Soviet Union Registered car is much reduced, but the image returned is of the car itself, rather than being representative.

Here is a sample response;

 
“Description”:“Izh 412ИЭ-028”,
“CarMake”: 
“CurrentTextValue”:“Izh”
},
“CarModel”: 
“CurrentTextValue”:“412ИЭ-028”
},
“MakeDescription”: 
“CurrentTextValue”:“Izh”
},
“ModelDescription”: 
“CurrentTextValue”:“412ИЭ-028”
},
“ImageUrl”:http://www.госномер.com/image.aspx/@SXpoIDQxMtCY0K0tMDI4”
}

Categories: Uncategorized

#jQuery.ScrollTo broken in #Chrome 61

September 26, 2017 1 comment

c52d4c33f775370e1447155f049566c7

If you use the jQuery.scrollTo, or a plugin dependant on it, such as

/**
* SmoothScroll
* This helper script created by DWUser.com. Copyright 2013 DWUser.com.
* Dual-licensed under the GPL and MIT licenses.
* All individual scripts remain property of their copyrighters.
* Date: 10-Sep-2013
* Version: 1.0.1
*/

/**
* jQuery.ScrollTo – Easy element scrolling using jQuery.
* Copyright (c) 2007-2013 Ariel Flesler – aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* @author Ariel Flesler
* @version 1.4.3.1
*/

Then you may find on Chrome 61, the page refuses to scroll.

The solution, I found was to use these CSS classes for HTML and BODY

html {
    overflow: hidden;
    height: 100%;
}
body {
    height: 100%;
    overflow: auto;
}
Categories: Uncategorized

#Popcorntime remote for #iOS @popcorntimetv @giacomocerquone

September 25, 2017 Leave a comment

popcorn-time

Getting off your sofa is far too much exercise some days, and if you have popcorn time running on the mac, and just slightly out of reach, you really need something to remotely control it.

I found an app on the Android app store to control it, but I didn’t find an equivalent on the IOS. So I decided to write my own.

Which you can download here:

https://itunes.apple.com/us/app/popcorn-remote/id1290119967?ls=1&mt=8&at=1000l9tW

 

So, first, pairing. The easiest way to do this is to go to Settings > Show Advanced Settings > Remote Control, Create Pairing QR code. this generates a code like this

Untitled

To Save you running a QR scanner on that, it decodes to {“ip”:”192.168.1.249″,”port”:”8008″,”user”:”popcorn”,”pass”:”popcorn”} – obviously the IP is dependant on your network.

Then I downloaded a Javascript library by Giacomo Cerquone, called Butter_remote.js

And wrote a little HTML like this;

http://butter_remote.js
https://code.jquery.com/jquery-1.12.4.min.js

$(init);
function init()
{
butter_remote.init(
{
username: “popcorn”,
password: “popcorn”,
ip: “127.0.0.1”,
port: “8008”,
debug: “false”
}
);
$(“#btnPlayPause”).bind(“click”,function playPause(){
butter_remote.toggleplaying();
});
$(“#btnForward”).bind(“click”,function playPause(){
butter_remote.right();
});
$(“#btnBack”).bind(“click”,function playPause(){
butter_remote.left();
});
}

Play/Pause
Forward
Back

Then just to wrap that in a Cordova/Phonegap app, and install it on my phone 🙂

Categories: Uncategorized

OLE DB provider “SQLNCLI10” for linked server returned message “No transaction is active.”

September 19, 2017 Leave a comment

Harnessing Linked Servers_1

When you set up a linked server environment between two SQL servers, that are not on the same network, and you try to run a transaction that includes a reference to a linked server; by running a SQL statement like

BEGIN TRANSACTION
update LINKED_SERVER.MY_DATABASE.dbo.MY_TABLE set MY_COLUMN = 1
COMMIT TRANSACTION

and you get an error message like

OLE DB provider “SQLNCLI10” for linked server “myserver” returned message “No transaction is active.”.

Msg 7391, Level 16, State 2, Line 2
The operation could not be performed because OLE DB provider “SQLNCLI10” for linked server “myserver” was unable to begin a distributed transaction.

Then the solution turned out to be – after two days of head-scratching – to : put the Net BIOS name (computer name) for each server involved in the transaction into the hosts file at both sides of the transaction.

The hosts file is in c:\Windows\System32\Drivers\etc\hosts – and you’ll need administrator access to change it.

 

Categories: Uncategorized

Our new #JobSearch #App, powered by @reedcouk #API

September 19, 2017 Leave a comment

392x696bb (1)

Thanks to @reedcouk ‘s API we’ve just relaunched our Job Searcher App on iOS with a new version. 

It’s a £0.99 download, and well worth it, if it helps land your next job !

https://itunes.apple.com/gb/app/job-searcher-app/id464568239?mt=8&at=1000l9tW

Categories: Uncategorized