Wednesday, October 19, 2016

Лиса живет в Ленинграде, Муравей ползает


Я отец 3х детей, преподаватель школы и университета.
Я верю в обучение сердца, так же как и в обучение разума.
Последние школьные перипетии, заставили меня написать этот пост.

Итак, на сцене проверочные работы и мой сын в качестве главного героя.

Задание 1: Ответить на вопрос:

Что делают эти животные осенью?
Аист, Муравей, Ежик, Белка.

С юридической точки зрения - вопрос НЕ требует ответа "по книжке". Но даже если это подразумевается (т.к. в школе ты обязан ответить "по книжке"), то давайте применим ту же самую педантичность к составителям обучающего материала.
Аист и муравей - не животные, а птица и насекомое.

Я соглашусь, что они все в лесу живут, помогают наверняка друг другу (лес, все-таки, не вертится сам по себе).
Но чем не угодили следующие ответы ?

Аист охотится

Очевидно незачет. На лягушек аисту нет необходимости охотиться (сарказм).

Муравей ползает

Правильный ответ наверняка "засыпает". Но я прошу прощения - он перед этим не ползает ?
Представим картину: 1 сентября муравей впал в спячку. А если не так - то может он все таки успел доползти до муравейника ?

Ежик ползет

Та же самая ситуация. Ежи осенью не ползают. Ну ладно, может он налегке бегает, хотя судя по всему такой ответ тоже незачетный.

Белка лазеет

Кроме орфографической ошибки - опять же не вижу проблемы. Лазит, прыгает по деревьям, еду на зиму собирает, прячет в дупла.
Что опять не так ?

Ну ладно, если с этими ответами более-менее понятно, то перейдем к следующим заданиям:

Задание 2: Закончить предложения.
Лиса живет...
В лесу громко кричат...

Ответы моего сына:

"Лиса живет в Ленинграде"

После того как мы полчаса над этим хорошо посмеялись, мы решили узнать у автора этих строк, что же он имел в виду на самом деле. Оказалось, сын подумал, что Лиса - это имя.

А ведь действительно - первое слово в предложении начинается с заглавной буквы.
Нет контекста для определения о какой "Лисе" идет речь. Задание напрямую не говорит о связи с предыдущим заданием- ударения также не наблюдается.

Мыслительный процесс моего сына ясен - у него есть тетя, которую зовут Елисавета или сокращенно - Лиса.

Но даже если мы говорим про животных - в Ленинграде что - лис нет ? А если они там есть, они там не живут ?

В Риге, например, живут Лисы и лисы - сам видел и тех и других.

Я как взрослый догадываюсь, что другой взрослый составитель наверняка "подразумевал" (опять это "подразумевал") нору. Но лиса необязательно живет в норе.
При теперешнем экономическом и политическом климате - она может жить, за неимением лучшего, извините, на помойке.

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

"В лесу громко кричат ручей"

Ладно, тут я согласен. Но опять же - при разговоре с сыном выясняется, что он по ошибке прочел "громко журчат".

Я думаю тут необходимо предоставить дополнительную информацию.

Сын до сих пор путает некоторые буквы русского алфавита, вследствие обучения в английской школе. Изучение письменного русского языка составляет всего лишь 1 год.
За это время мы прописали около 100 страниц прописей и уже отличаем подлежащее от сказуемого, но иногда путаем буквы и ударения.

Просто нужно немного времени. Но, похоже, у "школьной системы" нет времени помочь моему сыну вырасти уверенным человеком.

Почему "школьная система" не учит детей мыслить самостоятельно ? Есть у меня на этот счет свои соображения, но это отдельная тема.

Но поверьте, опыт показывает - хорошо выученный школьный материал- не сделает из моего сына достойного гражданина.

А вот отношение школы к этому вопросу - может очень даже испортить воспитательный процесс.

Итак, в сумме имеем следующее:

Даник использовал свою голову, чтобы решить поставленную перед ним задачу. Четко, коротко, ясно. Да, не по книжке.

Отличие работы Даника от многих других - думал головой. Тем самым мы вместе посмеялись, эти ответы вошли в семейную историю.

Правильные ответы других работ - в итоге пошли в мусорник как отработанные. Когда дома объяснили, что нужно было по книжке - сын без проблем предоставил "правильные" ответы.



Я уже не говорю о такой математике оценки домашних работ:

правильный ответ + неправильное оформление
=
неправильная работа + плохая оценка

В корпоративном мире - люди делятся на инженеров и дизайнеров - и никто не парится, что правильное решение некрасиво оформлено - на это есть команда дизайнеров, которые красиво это решение нарисуют.

Если с этим несогласны - поставьте 2 оценки. Например: Решение -10, Оформление -2.
Я хотя бы буду знать - мой сын инженер, не дизайнер. А то получается, что просто тупой.

А как вам такое ?

Случайно выполненное экстра домашнее задание + правильное оформление =
"но это не было задано" + 

"почему черной ручкой и не синей" + 

перечеркнуть + заставить переделать в классе


У меня не остается слов. На данном этапе, в моих глазах как отца, преподавателя и предпринимателя:

Даник - зачет ! Школа - неуд!



Friday, October 23, 2015

Back to the future

October 21, 2015


I didn't realise that on October 21, 2015 I will be returning to my future at 88 miles an hour. 



If we could somehow harness this lightning... channel it into the flux capacitor... it just might work. Next Saturday night, we're sending you back to the future!


Our story begins in Beirut, Lebanon. For 2 years my wife and I have worked as missionary family in Middle East University. During that time we have been able to minister to students, refugees and local people there.

Everything was going well until the time when budgets were reconsidered. 



Unfortunately, our budget was one of them. So instead of 5 expected years of service we have only served 2. It has shattered our hopes and ambitions.

We had to leave our friends, livelihood, education and had to move. Little did I know that God has already crafted the future. 

Wait a minute, Doc. Ah... Are you telling me that you built a time machine... out of a DeLorean?

Less than a month before leaving someone indicated that Newbold College is looking for IT Manager. Unwillingly I applied in secret hope it wouldn't work out. 

Through series of events I found myself right here at Newbold. I have eventually submitted to Lord’s will and worked the field that was in front of me.


I have promised Him that I will do the work needed at Newbold for 1 year.

Now, as I see the results of my work and friendships that I made, I do not regret a single day during my time here. 

Wonderful friends and colleagues, time needed to re-adjust and re-evaluate priorities –God has truly been at work all this time. It was not all easy, but whenever we had a need or were in trouble–God stepped in at the right time and helped.

 This is it! This is the answer. It says here... that a bolt of lightning is going to strike the clock tower at precisely 10:04pm, next Saturday night!

The year has passed and some circumstances changed. Now expecting another child into the family, I knew that we’re also heading towards an economic crisis. Future did not look so bright anymore - I had to do something quick. I was praying and asking Lord to give us wisdom in making the right decision. The only option remained was to look for another employment.

I watched the TED talk by Scott Dinsmore about “How to find and do work you love”, which gave me courage to act.

I submitted my resignation letter before there was another opportunity. 

I thought 1 month of serving the notice were sufficient to find another job. The news have spread and soon I had people asking where I was going. All I could say – “I pray that God will provide with job, as He always provided for us before”. And whenever they were in my office – I would point them to the picture of Jesus above my desk- my only hope.



Hey, Doc, we better back up. We don't have enough road to get up to 88.

During this month I have applied to more than 200 places, had a few telephone calls, several telephone interviews and several face-to-face interviews. And although I heard Scott Dinsmore saying that you shouldn't jump onto the first opportunity in desperation – I was certainly ready to take anything that came my way.




 I was almost ready to do daily commute to the Moon, as month was coming to an end.

Some people thought I was “crazy/brave/unwise/I wouldn't do that”, and that made things look even less hopeful.

 I heard stories of friends who did the same and now were 2 months without a job borrowing money for rent, others were looking for job with no results in 3 months and still others were saying that autumn is the worst time to look for job.

It made my job search more stressful. 

During that month I had my hopes high and low, was excited and desperate, but every day I would come to Jesus in prayer and ask for wisdom, patience and strength to “not give up”.


Roads? Where we're going, we don't need roads.
In a word – I saw Jesus and jumped out of the boat to walk on water to Him. Just like Peter did once on that stormy night.

I saw all the “scariness” of the situation and things became even more intense, when my official last day had coincided with Staff lunch at Newbold College. 

All staff, the College Board members and international guests were there. During the farewell speech all I could say that I am stepping out of the boat in hope that Jesus will reach out and save me. Everyone was watching…




Don't worry. As long as you hit that wire with the connecting hook at precisely 88 miles per hour, the instant the lightning strikes the tower... everything will be fine.

Half an hour after lunch, I went to yet another interview. It was a technical one in a company which specialises in telephony. 

I have previously visited their office and saw a few quotes on a wall there –“Never, never, never give up” –was one of them. During the interview process I felt this was the company I really wanted to work for. 

Previously they have inquired Newbold College about references, interviewed me once, and asked about my expectations.

The owner told me that within past month they have sifted through 30 candidates and short-listed around 10, which they interviewed. 

Out them 2 potential candidates were selected, asked for references and interviewed again. The CEO of the company told me that I am competing with another potential candidate.


 If my calculations are correct, when this baby hits eighty-eight miles per hour...


At the end of the technical interview he said
“I believe things happen for a reason”. 

“What do you think about this”
 he asked me and put a job offer on the table in front of me.




I was dumbfounded… Overcoming my feelings I shared that I could only dream about this.

To which he answered:
“We were looking long for the right person to fill this position.

We made a mistake before.

Now I believe you are the right man for the job, Alex. Congratulations.”



1.21 gigawatts?! 1.21 gigawatts?! Great Scott!

On October 21, 2015, 3 hours after sharing my conviction with everyone I had a job. 

The company offered me more than I asked for, it’s location is within 2 minutes from my current work place, they have bright and spacious office at the top with fantastic view and they specialise in the area of my passions and abilities.

The next day I have written down this story, so that in the future I can look back onto the past and see that God was there all this time. 

I shared this story with everyone and had fantastic the response from my colleagues and friends.

God's name was praised !





You got no concept of time.

Was that a coincidence or God’s provision? You could say it is all a coincidence. 

As for me - I strongly believe - the more you pray, the more coincidences happen.





I have learned once again that God will come and save you when:

1. Everyone is watching
2. The situation is dire
3. There is no other hope

And He always does it at the last moment, and his timing is precise ! This is how He crafts the future ! Remember?


Tuesday, July 21, 2015

Elastix Blacklist caller not working

Here is how to enable Blacklist to work

Go to PBX -> Tools - >  Asterisk File editor

Find a file called extensions_custom.conf

Append the following at the end

[app-blacklist-check]
include => app-blacklist-check-custom
exten => s,1(check),GotoIf($[“${BLACKLIST()}”=”1″]?blacklisted)
exten => s,n,Set(CALLED_BLACKLIST=1)
exten => s,n,Return()
exten => s,n(blacklisted),Answer
exten => s,n,Wait(1)
exten => s,n,Zapateller()
exten => s,n,Playback(ss-noservice)
exten => s,n,Hangup

Enjoy :)

Ubuntu Lampp Xampp MSSQL PHP5

I had some issues with using MSSQL on my ubuntu server past migration, as my code was using sqlsrv_connect being on Windows Xampp installation.

After migration to Linux host I had to resolve errors like this:

Fatal error: Call to undefined function sqlsrv_connect()
Unable to connect to server: 


Here is how to connect to MS SQL server using Ubuntu Xampp.



Assuming your installation is located here
/opt/lampp/your_files_live_here

You will need to install these:
sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase
sudo apt-get install php5-cli

You will see there are at least two freetds.conf files. You need the one located in your lampp folder





Edit you php.ini and in appropriate place put:


sudo nano /opt/lampp/etc/php.ini
extension = mssql.so

Also make sure that mssql_secureconnection =Off

Save php.ini


Go ahead and edit


  • sudo nano /opt/lampp/etc/freetds.conf
Put this in:

[SQLServerReference]
        host = server.domain.com  (or IP address)
        port = 1433
        tds version = 8.0


Once done

sudo /opt/lampp/lampp restart

And in your PHP code reference it as follows:

$SQL_server='SQLServerReference';
$SQL_username='SA';
$SQL_password='password';
$SQL_database='your_database';
You can now use it in your code:


//connect to  MS SQL database
$conn = mssql_connect( $SQL_server,$SQL_username,$SQL_password)
   or die("Couldn't connect to SQL Server on $SITS_server"); 
   //select a database to work with
$selected = mssql_select_db($SQL_database, $conn)
  or die("Couldn't open database $SQL_database"); 
//get  data from SQL database
$result = mssql_query("select whatever from dbo.table);
while( $row = mssql_fetch_array($result) ) 
 {
$string = $row['whatever'];
}
mssql_close( $conn);


If you need ODBC connection


sudo nano /etc/odbc.ini 

[SQLServerRef]
Description = MS SQL Server
Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
Server = sqlserver.domain.com
ID = username
PWD = password
ReadOnly = No
Port = 1433

Look at the driver path - other tutorials will have it different. If unsure, use 
locate libtdsodbc.so
To see where is your file

Also edit this and note the paths again
sudo nano /etc/odbcinst.ini 
[FreeTDS]
Description = FreeTDS driver
Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
Setup=/usr/lib/x86_64-linux-gnu/odbc/libtdsS.so
FileUsage = 1
UsageCount = 1