Windows Task Scheduler: Event - on connect to network

On Connect

  1. Open the Task Scheduler. You can find it by typing Task Scheduler into the start menu search box.
  2. In the Task Scheduler library, create a new task by clicking Create Task in the Actions panel on the right side.

    add task

  3. Give the task a name like “detect network connect” or whatever you choose

  4. On the Triggers tab, click New... and select On an Event from the dropdown box.

    dropdown trigger

  5. Choose the following settings:

    • Log: Microsoft-Windows-NetworkProfile/Operational
    • Source: NetworkProfile
    • Event ID: 10000
  6. Click OK, then go to the Conditions tab.
  7. Check the box for Start only if the following network connection is available and choose the network you want to run the script with
  8. Under the Actions tab, click New... and select Start a program. Enter the location of the script file you want to run, then click OK.
  9. Set any other task settings you want to, then click OK.

On disconnect

  1. Follow steps 2-4 above
  2. Use the following event trigger settings:
    • Log: Microsoft-Windows-NetworkProfile/Operational
    • Source: NetworkProfile
    • Event ID: 10001
  3. Skip steps 6-7, as you will no longer be attached to any network at all. This event will therefore runany time you disconnect from any network.
  4. Follow steps 8-9 again

Go Desk

Go Desk

Go Desk is a desktop rendering app, which supports interactive animations and high resolution wallpapers (1290*960 and above).

It’s just a simple step to make your desktop LIVE and personalised!

Download

(Источник: )

iPhone Development on Windows

Some time ago I decided to list a couple of options available for iPhone development on Windows and iPad development on Windows. Now, months later this is still something that has been brought up recently. So I have decided to expand the list, and include some of the other solutions that have cropped up since the original posting, and some upcoming that look interesting. Please note, that there is no official solution for developing for the iPhone SDK on Windows (and it’s doubtful there ever will be).

At this point you will need to compile your app on the official iPhone SDK running on Mac OS X if your goal is to get your app in to Apple’s iPhone app store, use Flash’s iPhone packager, the Airplay SDK, or send someone else your code for compilation. Now, I know there is the obvious “hackintosh” solution, but I won’t get into that, not only is it possibly illegal, but I’ve seen someone try it… and it was a major continuous hassle — every update of the OS and SDK cost them valuable hours, when they could just get a sub-$700 Mac Mini and avoid all hassles.

That being said there are ways to develop your iPhone app in windows. Let me repeat that there is no real iOS SDK Windows edition — and most certainly not any official options despite what the marketing material of some vendors might tell you. If you see a vendor posting false information suggesting their solution is an official Windows iPhone developer SDK then I suggest staying away.

Disclaimer: Everything on this page is subject to change. iOS development is in constant evolution. This page has been updated many times, but there is no guarantee that things will be 100% up to date at the time you read it. Deal with it.

I am limiting those shown here to those from which apps already available in the store have been created with, and some that appear to be exceptionally well done.

These Windows alternatives include game engines, html/javascript solutions for hybrid app development, and general iPhone/iPad app creators.

The iPhone Development On Windows Options

  1. Flash CS5.5 – Has become a very good solution with the Flash iPhone Packager. The packager for iOS allows you to compile apps on the windows platform. If you’ve been using flash you can rejoice in Apple’s latest policy, it performs ok, but don’t expect highest performance games, and Papervision to run in here. No mac required. Something that has been asked is if it is possible to create flash iOS apps in an evironment other than the official Adobe one.. absolutely, you can compile with the Flex compiler, and package your apps for iPhone as long as you follow the asme guidelines.

  2. Airplay SDK – The airplay SDK allows you to create games, and sign your app on Windows PC’s. A great solution for both 2D and 3D games and apps because of the free offer made to indie developers.

    Both these solutions can compile to code that is native to the iPhone right on your windows PC and many apps available in the app store have been created using them.

  3. Unity 3D – Game development engine and editor that utilizes Boo and C# and the editor works on both Windows and Mac.

  4. Stonetrip S3D – Game develop engine and editor utilizing LUA, the editor runs within Windows.

    These game engines allow you to develop your apps on Windows, but you’ll need a Mac to test/compile

  5. Appcelerator Titanium – This is a good solution, and has a very popular and vibrant community. Apps are limited in performance because while they can be compiled as native apps and sent into the app store they are html/javascript based.

  6. Genuitec MobiOne – This is an interface designer that uses the Phonegap framework to deliver native functionality. It only runs on windows. HTML/Javascript based.

    These solutions allow you to create apps using web technologies (HTML/CSS/Javascript) and then run them through an Objective-C framework that responds to actions within a UIWebView, thus allowing you to access native functionality on the iPhone. These frameworks are free. You will need a mac for native testing/compilation.

  7. Dragonfire SDK – An interesting option that allows you to develop apps using their SDK on windows. Then you send them your uncompiled source which they compile and you download the compiled iOS application file. You upload your code for compiliation on their server (as long as you have the Ultimate edition). I like the syntax and it’s pretty popular so I’ll mention it. It is a good wrapper with a nice simulator on Windows.

    There are a couple of other solutions that were either in testing, required payment without any form of trial (or in some cases even screenshots), or just aren’t out yet many of them seemingly lesser versions of the Dragonfire SDK that enable iPhone development on Windows by compiling your source code for you.. Airplay SDK is probably the most advanced “iOS SDK on Windows” available free at this stage.

iPhone Development On Windows Now A Real Possibility

My suggestion is that you are really set on windows iPhone development and rdon’t even want to buy a Mac Mini is that you create your app using an html/javascript solution such as Phonegap/Appcelerator or the Airplay SDK and then find someone with a Mac and hit them up to do the submission for you. Airplay SDK is the only free solution for creating high performance iPhone/iPad games using Windows. You can use the Flash builder, but there are currently some performance limitations – a new edition is coming out soon.

Update: Airplay SDK has unfortunately been renamed Marmalade SDK and no longer provides a free solution for indy developers.

Best of luck, if you know of any other alternatives that enable iPhone development on Windows or if any of the info above has changed that enable iPhone Development on Windows then please list them below.

Source: http://maniacdev.com/2010/01/iphone-development-windows-options-available/

iCamera HDR: All-in-One 2.4.0

p

iCamera HDR использует ультрасовременную технологию Everimaging, чтобы захватить, отредактировать, и создать красивые и профессиональные фотографии на вашем iPhone. Вы все видели другие приложения HDR в AppStore в последнее время. Но практически все они производят то, что обычно известно как Псевдо-HDR. iCamera HDR одно из первых приложений, которое будет включать наиболее передовые способы захвата, полный технологический процесс 32-битовой HDR обработки фотографий, удивительные спецэффекты и все в одном приложении. Приложение работает как с готовыми фотографиями, так и доаёт возможность сделать снимки прямо в приложении.

Скачать:

i

Особенности:

  • Автоматическая обработка HDR одним тапом
  • Отдельный режим захвата HDR в приложении позволяет, использовать только одну фотографию, чтобы создать фотографии HDR очень быстро
  • Нормальный режим захвата в приложении использует стандартную камеру, объединяя с другими особенностями захвата (стабилизация и коррекция света), сохраняет фотографии для более поздней обработки в приложении.
  • Передовой алгоритм выравнивания изображения точно выравнивает фотографии.
  • Различные уровни антишока гарантируют чистые снимки
  • Настройка тонов
  • Истинный 32-битовый технологический процесс HDR
  • Используйте вспышку iPhone 4, чтобы улучшить качество захвата фотографии
  • Инновационная технология E-Lighiting: iCamera HDR оборудован технологией Everimaging E-Lighiting, чтобы автоматически увеличить детали, цвет и контраст отдельных изображений с простой непринужденностью.
  • Возможность разделить свои фотографии с Flickr и Facebook

aa

MySQL Dump/Restore

Dump ALL MySQL Databases:

mysqldump --user=XXXXXXXX --password=XXXXXXX -A > /PATH/TO/DUMPFILE.SQL

Dump Individual or Multiple MySQL Databases:

mysqldump --user=XXXXXXXX --password=XXXXXXX --databases DB_NAME1 DB_NAME2 DB_NAME3 > /PATH/TO/DUMPFILE.SQL

Dump only certain tables from a MySQL Database:

mysqldump --user=XXXXXXXX --password=XXXXXXXX --databases DB_NAME --tables TABLE_NAME > /PATH/TO/DUMPFILE.SQL

I’m using MySQL 4.1.8 on my development server, but am behind a few releases on our production server. In order to make dumps compatible with the old MySQL version, add the following switch:

--compatible=mysql323

Use the following procedure to reload the contents of a database:

  • unzip the backup file you wish to use;
  • open it up and pull out only the information that you will need;
  • save this text file;
  • use the following command to feed back in the contents of a text file.

Общие сведения о паттерне Абстрактная фабрика

Описание паттерна абстрактная фабрика можно посмотреть в википедии. Если коротко, то это порождающий паттерн, который позволяет создавать целые семейства объектов. При этом, подобный подход гарантирует сочетаемость объектов, т.е. можно динамически менять одно семейство компонентов на другое при сохранении работоспособности приложения.

К плюсам паттерна относят:

  • изоляция конкретных классов
  • упрощение замены семейств продуктов
  • арантированная сочетаемость продуктов

Минус только 1:

  • сложно добавить поддержку нового вида продуктов.

UML диаграмма паттерна Абстрактная фабрика

uml_factoty

Если взглянуть на UML диаграмму паттерна, то минус становится очевидным. Если в системе присутствует 10 Конкретных фабрик, то, чтобы добавить новый продукт, придется обновить 10 классов фабрик и написать новые 10 классов продуктов.

На википедии есть пример реализации паттерна абстрактная фабрика на языке PHP. В нём описан подход к созданию GUI(графического интерфейса пользователя). Но PHP не предназначен для решения задач подобного рода. Это, прежде всего, язык разработки web-приложений. Поэтому, давайте рассмотрим возможности для активного использования паттерна в web - приложениях.

Применимость в web-приложенияx

Настраиваемые компоненты системы

Например, в php - фреймворке symfony можно в отдельном конфигурационном файле задать, какой класс следует использовать при создании какого либо компонента системы. Например, можно переопределить класс хранилища сессии. По-умолчанию, сессия лежит в обычном массиве $_SESSION. Можно создать свой класс, который, например, хранит данные сессии в базе данных, и прописать этот класс в настройки фреймворка. Можно использовать подобный подход, чтобы придать создаваемой вами системы большую гибкость и настраиваемость (данный пример будет рассмотрен более детально ниже).

Разработка собственной ORM

Допустим, необходимо реализовать ORM, которая будет поддерживать различные СУБД - MySQL, Oracle и т.д. Для решения это задачи можно разработать интерфейс фабрики, которая будет создавать все необходимые компоненты системы:

  • DBConnection - соединение с базой
  • DBRecrord - запись таблицы базы данных
  • DBQueryBuiler - конструктор запросов к базе и т.д.

А также написать фабрики, реализующие этот интерфейс (MySQLFactory, OracleFactory). При этом, каждая фабрика возвращает объекты, специфичные для каждой СУБД (MySQLDBConnection, MySQLDBRecrord, MySQLQueryBuilder). В результате, получаем ряд преимуществ:

  • можно абстрагироваться от конкретной СУБД, ведь всё взаимодействие с базой данных будет инкапсулировано внутри продуктов конкретных фабрик.
  • можно настраивать и динамически менять базу данных, с которой будет работать ваше приложение.

Пример с настраиваемыми компонентами системы

А теперь рассмотрим небольшой пример системы, компоненты которой можно настраивать, например, во внешнем конфигурационном файле и, тем самым, изменять её поведения.

/**
 * Описание компонентов, присутствующих в системе по-умолчанию.
 * Обычно конфигурацию выносят в отдельный yml или xml файл. Но, для простоты,
 * обойдёмся обыкновенным массивом.
 */
$g_defaultComponentSettings = array(
 'layout' => array(
  'class' => 'Layout'
 ),
 'content_container' => array(
  'class' => 'ContentContainer'
 ),
 'top_menu' => array(
  'class' => 'TopMenu'
 ),
);

/**
 * Описание нестандартных компонентов системы
 * или переопределения двефолтовых компонентов. 
 */
$g_componentSettings = array(
 'top_menu' => array(
  'class' => 'MyTopMenu'
 ),
);

class TopMenu
{
 public function render()
 {
  return '  [top_menu]It\'s a top menu[/top_menu]';
 }
}

class ContentContainer
{
 public function render()
 {
  return '  [content]Content[/content]';
 }
}

class MyTopMenu extends TopMenu
{
 public function render()
 {
  return "  [decorated_top_menu]\n  " . parent::render() . "\n  [/decorated_top_menu]";
 }
}

/**
 * Класс представляет собой общую разметку страницы.
 */
class Layout
{
 private $contentContainer = null;
 private $topMenu = null;

 public function setContentContainer($contentContainer)
 {
  $this->contentContainer = $contentContainer;
 }

 public function setTopMenu($topMenu)
 {
  $this->topMenu = $topMenu;
 }

 /**
  * Печатает страницу на экран.
  */
 public function display()
 {
  echo "[layout]\n";
  echo $this->topMenu->render() . "\n";
  echo $this->contentContainer->render() . "\n";
  echo "[/layout]\n";
 }
}

/**
 * Фабрика компонентов системы.
 */
class ComponentFactory
{
 private $defaultComponentSettings = null;
 private $componentSettings = null;

 public function __construct(array $defaultComponentSettings, array $componentSettings = array())
 {
  $this->defaultComponentSettings = $defaultComponentSettings;
  $this->componentSettings = $componentSettings;
 }

 /**
  * Создаёт компонент по его имени
  * @param string $componentName
  * @return object
  */
 public function createComponent($componentName)
 {
  $componentClassName = "";
  if (isset($this->componentSettings[$componentName]))
  {
   $componentClassName = $this->componentSettings[$componentName]['class']; 
  }
  else if (isset($this->defaultComponentSettings[$componentName]))
  {
   $componentClassName = $this->defaultComponentSettings[$componentName]['class']; 
  }
  if (empty($componentClassName))
  {
   throw new Exception("Component '$componentName' not found.");
  }
  return new $componentClassName();
 }
}

/**
 * Пример 1. Используем только дефолтную конфигурацию фабрики.
 */
$factory = new ComponentFactory($g_defaultComponentSettings);
$layout  = $factory->createComponent('layout');
$topMenu = $factory->createComponent('top_menu');
$content = $factory->createComponent('content_container');

$layout->setContentContainer($content);
$layout->setTopMenu($topMenu);
$layout->display();

/**
    На выходе получим:

 [layout]
   [top_menu]It's a top menu[/top_menu]
   [content]Content[/content]
 [/layout]
*/

/**
 * Пример 2. Используем дополнительные настройки фабрики.
 */
$factory = new ComponentFactory($g_defaultComponentSettings, $g_componentSettings);
$layout  = $factory->createComponent('layout');
$topMenu = $factory->createComponent('top_menu');
$content = $factory->createComponent('content_container');

$layout->setContentContainer($content);
$layout->setTopMenu($topMenu);
$layout->display();

/**
 На выходе получим:

 [layout]
   [decorated_top_menu]
     [top_menu]It's a top menu[/top_menu]
   [/decorated_top_menu]
   [content]Content[/content]
 [/layout]
*/

В результате, у нас получилась хорошо настраиваемая система. У неё есть дефолтовые компоненты, а, при необходимости, их можно переопределить и, тем самым, изменить поведение системы.

Источник: funny-prog.blogspot.ru

Migrate a Git repo to a SVN one

We often see the opposite, convert a SVN repository into a Git one and try the breeze of a DVCS, but what if you want to convert a Git repo into a SVN one?

  • The process is not easy (and you need a “straight” Git repo: no merge, too complex branches and so), and the result is quite raw, but you’re still able to convert the main part into SVN. Here are the steps:
  • create an empty SVN repository: svn mkdir svn://path/to/repo/project/{trunk,branches,tags}
  • clone it in a Git repo: git svn clone svn://path/to/repo/project —stdlayout . This will create a project directory, empty except for the .git information directory; master is the default Git branch created by git-svn that maps SVN trunk.
  • cd project
  • add the original Git repo as a remote: git remote add origin git://uri/to/git/repo/project.git
  • fetch from it: git fetch origin
  • create a local branch for the remote master: git checkout -b old_master origin/master . Note that master branch is already present, so we define another one.
  • being on old_master we rebase this branch onto master: git rebase —onto master —root . Doing this, we have “moved” all our commits from old_master to master
  • and push all the commits into the SVN repo: git svn dcommit
  • It’s not that elegant, but it gets it done. I’d like to know if someone is aware of a better method, also to import tags and branches, that this process doesn’t do.

FTP сервер на Mac OS X Lion

Вы наверняка заметили, что в Mac OS X 10.7 отсутствует опция включения FTP сервера. Непонятно, почему Apple выключили эту функцию в параметрах «Общего доступа», но если Вы хотите запустить локальный FTP сервер (или SFTP), мы покажем Вам как сделать это с помощью команды в Терминале.

i

Запускаем FTP сервер в OS X 10.7

Включаем Терминал и вводим следующую команду для запуска FTP сервера:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist 

Введите следующую команду, чтобы убедиться, что FTP сервер запущен:

ftp localhost  

Если Вы увидите примерно такие же строки, то все в порядке:

i

Включаем SFTP сервер в OS X 10.7

FTP – незашифрованный протокол и как результат пал в немилость по причинам безопасности. Включение SFTP, более безопасного протокола, состоит из еще 1 легкого шага.

Завершите пункты по включению FTP сервера, затем войдите в Системные Настройки > Общий доступ.

Поставьте галочку напротив «Удаленного Входа» для включения SSH (и SFTP)

i

Вы може убедиться в том, что SFTP запущен, введя следующую команду в терминале:

sftp localhost  

Внимание: Не смотря на то, что включен SFTP, FTP все равно будет продолжать работать.

Отключаем FTP сервер в OS X Lion:

Вводим в Терминал команду для отключения FTP сервера:

sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

источник www.iguides.ru

Online infographic generators

p

  • Easel.ly create and share visual ideas online. You may want to visit Visual.ly after creating your infographic to publish and share it with others.
  • Venngage helps you create and publish custom infographics, engage your viewers, and track your results. Venngage is the most powerful infographics publishing platform ever for marketers and publishers
  • Infogram We work with marvelous designers to bring you the best components and themes for your infographics. Simply pick whatever you like to build your own. i
  • Piktochart is among the first online web applications to autonomize the creation of infographics. Its vision is to allow non-designers/programmers to create interactive infographics to promote their cause/brand and educate in a fun and engaging manner. ii

Sublime Text 2 v2.0.1b2217

www.sublimetext.com

scr1

Package Controll

pscr1

wbond.net

http://wbond.net/sublime_packages/package_control/installation

This is accessed via the ** ctrl+` ** shortcut. Once open, paste the following command into the console:

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'

This command creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it.

Download

Other links