понедельник, 13 января 2014 г.

Собор и базар

 Прочувствовал на себе, что значит работать с пропритарным кодом и API: довелось использовать Python API и SDK для Parallels Server. В целом, всё просто, примеры есть. Но примеры в большей мере размазаны по кусочкам и для Python все же хуже описано, чем для Си. Порой приходилось читать доки по Си и адаптировать знания к пайтону.
Получился такой код:

Но и тут злоключения с проприетарным кодом не завершились. Программа завершалась с сообщением

prlsdkapi.PrlSDKError: SDK error: 0x80000036: The configuration file you specified is invalid. Make sure that the specified file is a valid Parallels virtual machine configuration file and it is not corrupt, or select another file.

Оказалось, что управлять можно лишь обновленной виртуальной машиной. Т.е. как только сервер обновляется, необходимо обновлять и шаблоны, из которой создаются виртуальные машины. Пришлось отказаться от использования Parallels SDK и использовать для создания и управления виртуальных машин обычный Fabric. Но это уже совсем другая история.

4 комментария:

  1. Tagged "Titan - Titanium Legs - TITanium-arts
    T-Titanium-arts is a combination of gold, copper, 2016 ford focus titanium platinum, yellow, titanium rod in leg red, and titanium gr 5 a combination titanium hair dye of black, gold, titanium bar stock platinum and yellow.

  2. On average, we find a new Titanium Trim coupon code each 5 days. Due to the handmade nature of this product, slight variations to the sample and color from the displayed pictures are anticipated. No two acetates are the same and this must be embraced as a mark of the artisan and the individuality of every frame. Featuring bevelled titanium temples, titanium nose-bulbs and a titanium metals supply fang-like nostril bridge, the Chateau is a light-weight frame with unbelievable consideration to detail. Find one of the best selling sensible and helpful merchandise which have been marketed on tv. Many of these as seen on television items are at present airing and are scorching sellers.

  3. The game is frequented 카지노 by high rollers, who might wager tens or lots of of thousands of dollars on a single hand. Minimum bets are relatively high, typically starting at $100 and going as high as $500. Posted most bets are sometimes arranged to properly with|swimsuit} a participant.

  4. Among the 56 slots, additionally, you will discover some thrilling jackpots with breathtaking quantities. To present extensive variety|all kinds} of games 우리카지노 계열 that are be} artistic, truthful, and rewarding, providers of pill on line casino apps partner with quantity of} software creators. Throughout our list, you’ll come throughout a few of the the} best Betsoft and RTG casinos the place you can see nearly all of of} games released by these developers. You will also discover plenty of different games from different providers. There are tons of of tablet-friendly on line casino games available at MyB Casino.