<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2709810261023880769</id><updated>2012-02-16T16:29:20.865+01:00</updated><category term='sugarcrm'/><category term='lead'/><category term='Mono'/><category term='Ubuntu'/><category term='blogger'/><category term='BlogEngine.NET'/><category term='Apache'/><category term='wsdl'/><category term='soap'/><category term='php'/><category term='Linux'/><category term='ASP.NET'/><title type='text'>meehav on the net</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.meehav.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default'/><link rel='alternate' type='text/html' href='http://www.meehav.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>meehav</name><uri>http://www.blogger.com/profile/15121261260478927334</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2709810261023880769.post-4783710069167059945</id><published>2011-07-27T11:50:00.001+02:00</published><updated>2011-07-27T11:51:02.826+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lead'/><category scheme='http://www.blogger.com/atom/ns#' term='soap'/><category scheme='http://www.blogger.com/atom/ns#' term='sugarcrm'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='wsdl'/><title type='text'>Create new lead - SugarCRM + SOAP + PHP</title><content type='html'>Below is PHP code to create new lead in SugarCRM using SOAP API, PHP and WSDL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush:php"&gt;function createNewLead($first_name, $last_name, $email, $phone, $company, $description, $website)&lt;br /&gt;    {&lt;br /&gt;        $connection_options = array(&lt;br /&gt;            "location" =&gt; 'http://example.com/soap.php',&lt;br /&gt;            "uri" =&gt; 'http://www.sugarcrm.com/sugarcrm',&lt;br /&gt;            "trace" =&gt; 1&lt;br /&gt;        );&lt;br /&gt;&lt;br /&gt;        $sugar = new SoapClient(NULL, $connection_options);&lt;br /&gt;&lt;br /&gt;        $result = $sugar-&gt;login(array(&lt;br /&gt;            'user_name' =&gt; 'login',&lt;br /&gt;            'password'=&gt; md5('password')&lt;br /&gt;            ),__FILE__);&lt;br /&gt;&lt;br /&gt;        if ( -1 == $result-&gt;id )&lt;br /&gt;                return false;&lt;br /&gt;&lt;br /&gt;        $user_guid = $sugar-&gt;get_user_id($result-&gt;id);&lt;br /&gt;&lt;br /&gt;        $set_entry_params = array(&lt;br /&gt;            array('name' =&gt; 'first_name', 'value' =&gt; $first_name),&lt;br /&gt;            array('name' =&gt; 'last_name', 'value' =&gt; $last_name),&lt;br /&gt;            array('name' =&gt; 'phone_work', 'value' =&gt; $phone),&lt;br /&gt;            array('name' =&gt; 'account_name', 'value' =&gt; $company),&lt;br /&gt;            array('name' =&gt; 'description', 'value' =&gt; $description),&lt;br /&gt;            array('name' =&gt; 'email1', 'value' =&gt; $email),&lt;br /&gt;            array('name' =&gt; 'website', 'value' =&gt; $website),&lt;br /&gt;            array('name' =&gt; 'status', 'value' =&gt; 'New'),&lt;br /&gt;            array('name' =&gt; 'assigned_user_name', 'value' =&gt; $user_guid)&lt;br /&gt;        );&lt;br /&gt;&lt;br /&gt;        $sugar-&gt;set_entry($result-&gt;id, 'Leads', $set_entry_params);&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2709810261023880769-4783710069167059945?l=www.meehav.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.meehav.net/feeds/4783710069167059945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.meehav.net/2011/07/create-new-lead-sugarcrm-soap-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/4783710069167059945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/4783710069167059945'/><link rel='alternate' type='text/html' href='http://www.meehav.net/2011/07/create-new-lead-sugarcrm-soap-php.html' title='Create new lead - SugarCRM + SOAP + PHP'/><author><name>meehav</name><uri>http://www.blogger.com/profile/15121261260478927334</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2709810261023880769.post-5159614633820032489</id><published>2010-08-31T20:39:00.003+02:00</published><updated>2010-08-31T23:10:25.826+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='BlogEngine.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Mono'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>How to install BlogEngine.NET on Linux?</title><content type='html'>&lt;div style="text-align: justify;"&gt;I will try to explain how to install BlogEngine.NET in open-source environment. We will use Ubuntu 10.04 and Apache with mod_mono.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Let's start with installing required packages. (&lt;i&gt;every command you should execute as a root!&lt;/i&gt;)&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;$ apt-get install apache2 libapache2-mod-mono mono-apache-server2 asp.net2-examples&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;After installation mod_mono should be enabled in Apache by default. Check if there is a symlink to &lt;i&gt;mod_mono.conf&lt;/i&gt; and &lt;i&gt;mod_mono.load&lt;/i&gt; in &lt;i&gt;/etc/apache2/mods-enabled&lt;/i&gt;.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now run the server and check if mod_mono is configured properly:&lt;/div&gt;&lt;br /&gt;&lt;b&gt;$ apache2ctl start&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;If there are no errors, open your webbrowser and check &lt;i&gt;http://localhost/samples&lt;/i&gt; address. You should see some asp.net examples provided by Mono. If it doesn't work, read &lt;i&gt;error_log&lt;/i&gt; and check your mod_mono configuration file (&lt;i&gt;/etc/apache2/mods-enabled/mod_mono.conf&lt;/i&gt;).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now download the latest version of BlogEngine.NET from &lt;a href="http://blogengine.codeplex.com/"&gt;http://blogengine.codeplex.com/&lt;/a&gt; . We're using version 1.6.1. Let's do some console dance!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Copy downloaded package to your server's document root directory (&lt;i&gt;/var/www by default&lt;/i&gt;).&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;$ cp BlogEngine.NET\ 1.6.1\ \(web\).zip /var/www/&lt;br /&gt;$ cd /var/www&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Decompress files:&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ unzip BlogEngine.NET\ 1.6.1\ \(web\).zip&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;And move them to &lt;i&gt;blog/&lt;/i&gt; directory:&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ mkdir blog&lt;br /&gt;$ mv BlogEngine.Web/* blog/&lt;/b&gt;&lt;br /&gt;&lt;b&gt;$ cd blog/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;We should also create &lt;i&gt;App_Data/files&lt;/i&gt; directory for images and files which would be uploaded with our entries and pages:&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;$ mkdir App_Data/files&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Otherwise, while uploading files, we will get an error like:&lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Message : Access to the path "/var/www/blog/App_Data/files" is denied&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The &lt;i&gt;App_Data&lt;/i&gt; directory should have write permissions (only for Apache):&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$ chgrp -R www-data App_Data/&lt;/b&gt;&lt;br /&gt;&lt;b&gt;$ chmod -R g+w App_Data/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Now we will add our application to Apache. We can use Apache mod_mono configuration tool - &lt;a href="http://go-mono.com/config-mod-mono/"&gt;http://go-mono.com/config-mod-mono/&lt;/a&gt; . As I'm not using Apache on my Desktop, I can configure server to host only BlogEngine.NET. This is my configuration (&lt;i&gt;/etc/apache2/sites-available/default&lt;/i&gt;):&lt;/div&gt;&lt;blockquote&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp; ServerName localhost&lt;br /&gt;&amp;nbsp; ServerAdmin web-admin@localhost&lt;br /&gt;&amp;nbsp; DocumentRoot /var/www/blog&lt;br /&gt;&amp;nbsp; # MonoServerPath can be changed to specify which version of ASP.NET is hosted&lt;br /&gt;&amp;nbsp; # mod-mono-server1 = ASP.NET 1.1 / mod-mono-server2 = ASP.NET 2.0&lt;br /&gt;&amp;nbsp; # For SUSE Linux Enterprise Mono Extension, uncomment the line below:&lt;br /&gt;&amp;nbsp; # MonoServerPath localhost "/opt/novell/mono/bin/mod-mono-server2"&lt;br /&gt;&amp;nbsp; # For Mono on openSUSE, uncomment the line below instead:&lt;br /&gt;&amp;nbsp; MonoServerPath localhost "/usr/bin/mod-mono-server2"&lt;br /&gt;&lt;br /&gt;&amp;nbsp; # To obtain line numbers in stack traces you need to do two things: &lt;br /&gt;&amp;nbsp; # 1) Enable Debug code generation in your page by using the Debug="true" &lt;br /&gt;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; page directive, or by setting &amp;lt;compilation debug="true" /&amp;gt; in the &lt;br /&gt;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; application's Web.config&lt;br /&gt;&amp;nbsp; # 2) Uncomment the MonoDebug true directive below to enable mod_mono debugging&lt;br /&gt;&amp;nbsp; MonoDebug localhost true&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; # The MONO_IOMAP environment variable can be configured to provide platform abstraction&lt;br /&gt;&amp;nbsp; # for file access in Linux.&amp;nbsp; Valid values for MONO_IOMAP are:&lt;br /&gt;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; case&lt;br /&gt;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; drive&lt;br /&gt;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; all&lt;br /&gt;&amp;nbsp; # Uncomment the line below to alter file access behavior for the configured application&lt;br /&gt;&amp;nbsp; MonoSetEnv localhost MONO_IOMAP=all&lt;br /&gt;&amp;nbsp; #&lt;br /&gt;&amp;nbsp; # Additional environtment variables can be set for this server instance using &lt;br /&gt;&amp;nbsp; # the MonoSetEnv directive.&amp;nbsp; MonoSetEnv takes a string of 'name=value' pairs &lt;br /&gt;&amp;nbsp; # separated by semicolons.&amp;nbsp; For instance, to enable platform abstraction *and* &lt;br /&gt;&amp;nbsp; # use Mono's old regular expression interpreter (which is slower, but has a&lt;br /&gt;&amp;nbsp; # shorter setup time), uncomment the line below instead:&lt;br /&gt;&amp;nbsp; # MonoSetEnv localhost MONO_IOMAP=all;MONO_OLD_RX=1&lt;br /&gt;&lt;br /&gt;&amp;nbsp; MonoApplications localhost "/:/var/www/blog"&lt;br /&gt;&amp;nbsp; &amp;lt;Location "/"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonoSetServerAlias localhost&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetHandler mono&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetOutputFilter DEFLATE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary&lt;br /&gt;&amp;nbsp; &amp;lt;/Location&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;IfModule mod_deflate.c&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript&lt;br /&gt;&amp;nbsp; &amp;lt;/IfModule&amp;gt;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;This is the end! Restart Apache:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;$ apache2ctl restart&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;And go to the http://localhost . Yes, that's it! Your new BlogEngine.NET installation, it's working! The default user and password is &lt;i&gt;admin:admin&lt;/i&gt; .&lt;u&gt; &lt;b&gt;Remember to change it as soon as possible!&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2709810261023880769-5159614633820032489?l=www.meehav.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.meehav.net/feeds/5159614633820032489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.meehav.net/2010/08/how-to-install-blogenginenet-on-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/5159614633820032489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/5159614633820032489'/><link rel='alternate' type='text/html' href='http://www.meehav.net/2010/08/how-to-install-blogenginenet-on-linux.html' title='How to install BlogEngine.NET on Linux?'/><author><name>meehav</name><uri>http://www.blogger.com/profile/15121261260478927334</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2709810261023880769.post-7255158232820691111</id><published>2010-08-31T16:13:00.000+02:00</published><updated>2010-08-31T16:13:17.742+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blogger'/><title type='text'>I'm back again!</title><content type='html'>&lt;div style="text-align: justify;"&gt;Hello everybody once again! Today I wanted to reactivate my blog and I realised that Blogger doesn't support FTP publishing since May, so I decided to create new one instead of migrating back to Google's servers. I want to place here some useful tips &amp;amp; tricks (mini articles and tutorials) for programmers and sys-admins. That's enough for a 'hello world' post. Back to work...&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2709810261023880769-7255158232820691111?l=www.meehav.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.meehav.net/feeds/7255158232820691111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.meehav.net/2010/08/im-back-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/7255158232820691111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2709810261023880769/posts/default/7255158232820691111'/><link rel='alternate' type='text/html' href='http://www.meehav.net/2010/08/im-back-again.html' title='I&apos;m back again!'/><author><name>meehav</name><uri>http://www.blogger.com/profile/15121261260478927334</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
