Archive for the ‘Fighting the system’ Category

Facebook – you failed me again… and again… and…

Facebook, how do expect anyone to develop anything for you if: your code samples provided don’t work your documentation page is broken and not accessible for over 6 hrs already there is no way of contacting anyone about issues above And to prove all above: And PHP SDK error page: https://github.com/facebook/facebook-php-business-sdk/issues/464 Full day wasted. Thanks a […]

Posted on July 25, 2018 at 18:59 by arte · Permalink · Leave a comment
In: English, Fighting the system

Craft CMS & Twig Snippets

Some samples dumped here Related Entries (aka “entries” type field) {% set authors = craft.entries.section(‘newsAuthors’).relatedTo(entry) %} {% set auth = authors.first() %} Current Page URL {{ url(craft.request.path) }} How to get NEO/ Matrix Field in template {{entry.textWithSubtitle.first().subtitle}} Loop entire section {% for key,job in craft.entries.section(‘jobs’) %} OUT {% endfor %} Neo/Matrix fields with block types […]

Posted on October 18, 2016 at 16:00 by arte · Permalink · Leave a comment
In: Craft CMS + Twig, English, Fighting the system

How to resize (make it bigger) partition on Ubuntu 14.04 in Command Line

Let’s assume you have new virtual Linux Server box running and you “suddenly” out of space. Shit. Well, you stopped your VM and increased the size of you hard drive from 20Gb to 40Gb, started VM again and… nothing changed. This is what I did: Sttep1: First i run cfdisk and removed swap (yes, you […]

Posted on March 8, 2016 at 13:09 by arte · Permalink · Leave a comment
In: English, Fighting the system, Linux

MS’SQL on Ubuntu Linux via PHP

Hi Folks, today we are going to install & use MS’SQL on Ubuntu Linux! Yay! Well, in fact installation is very simple with a tiny twists 😉 Installation (very simple): sudo apt-get install php5-mssql Now how to use it? PHP Code below: // Connect to MSSQL $link = mssql_connect($db[‘from’][‘server_ip’], $db[‘from’][‘username’], $db[‘from’][‘password’]); if (!$link) {     […]

Posted on September 10, 2013 at 15:21 by arte · Permalink · Leave a comment
In: English, Fighting the system, Linux, MS'SQL, Ubuntu

MS NAV Web Services to/from PHP, receiving and sending data

Some time ago I came across a project where I had to connect MS’NAV and Drupal, two completely different systems one is proprietary (hello MS) and another is PHP & MySql (welcome, open source!) There where few options how both systems could communicate automatically, but unfortunately REST was not available as an option on the […]

Posted on April 2, 2013 at 17:51 by arte · Permalink · 32 Comments
In: Drupal, English, Fighting the system · Tagged with: , ,

Sendmail alternative – postfix on ubuntu (when PHP doesn’t send emails) in a few easy steps

Imagine you have your new shiny Ubuntu server. You installed your php, apache & mysql and everything seems fine until… you realised your system doesn’t  send emails. If there is a problem – there must be a solution! In our case it’s either install good (… not so in fact) sendmail or postfix. We decided […]

Posted on March 28, 2013 at 12:20 by arte · Permalink · 2 Comments
In: Fighting the system, Linux, Ubuntu · Tagged with: , , , ,

Problems with mysql installation on Windows 7? Have been there…

Hi Folks! Today I run into an interesting problem with installation of MySQL on my new Windows 7 / 64bit. MySQL just didn’t want to be installed! And stopped during confuguration process. Tried many things, googled for solution, but in most of the cases people said something like this “as this is not your first […]

Posted on February 14, 2012 at 21:33 by admin · Permalink · Leave a comment
In: English, Fighting the system, mySQL

RPM’s on Red Hat 5 and “yum”

RPM on Reh Hat Linux seems like a good solution, but sometimes it just gives you headakes and nothing else. Here are few good comand samples to use with RPM’s: To list all installed modules with “mysql-” name: rpm -qa | grep -i ‘^mysql-‘ Forced Update: rpm -Uhv –force MySQL-server-community-5.1.34-0.rhel5.i386.rpm And one more thing… don’t […]

Posted on May 7, 2009 at 12:01 by admin · Permalink · Leave a comment
In: English, Fighting the system · Tagged with: , ,

Changing Your System Path in Windows Vista

One of the things I didn’t find easily in Windows Vista help was how to change my system path permanently. For the temporarily session you may use my good old method of running commands in Command Prompt: Type “echo %PATH%” in CMD copy/paste into editor, add whatewer you need there, for example “c:\net\php5\ and c:\net\php5\ext\” […]

Posted on December 10, 2008 at 18:37 by admin · Permalink · Leave a comment
In: English, Fighting the system · Tagged with: , , , ,

Installing PHP & Apache on Vista

Everybody, who tried it, knows – installing PHP5 & Apache2.2 on Vista might be a little bit tricky (on Linux it might take a lot less time sometimes). Let’s assume we have Administrator access and latest versions of Apache. In my case it’s apache_2.2.10-win32-x86-no_ssl.msi & php-5.2.6-Win32.zip (note: I am not using .msi or anything similar […]

Posted on November 7, 2008 at 09:58 by admin · Permalink · 2 Comments
In: English, Fighting the system · Tagged with: , , , , , , ,