Kendo Dialog (Window)

Mostra dialog

 

Kendo Grid

View details:

Hide button

Custom Command

Click su custom command:

UI template CheckBox

Editor dropdown

DropDown fix error tooltip

Sul row validation (TimingTrigger_V02_ManageUpdateVersion)

Editor textarea

Editor CheckBox

Field filter dropdown

Date Time editor

Default value for new row

Call Angular function in template

http://dojo.telerik.com/AtURa

Default Datasource Filter

DataSource Request Filter

modify toolbar

Custom Filter

 

Raspberry & MCP23017

Una volta abilitata l’interfaccia I2C è possibile interagire con il  MCP23017 attraverso questi comandi:
i2cset -y <hw> <address> <reg> [<data> <mode>]

Vedere la man page di i2cset per maggiori dettagli

-y: non aspetta risposta dal bus

<hw> = 1: hardware su RPi

<address> = 0x20: vedi i2cdetect (se l’indirizzo della periferica è 000)

<reg>: registro del chip: (BANK 0)

ogni porta puo’ essere un input (1) o output (0).

scrittura (scrivendo su GPx è come scrivere su OLATx)

Raspberry PI rev 3 Abilitare I2C

Aggiornare il Raspberry

Abilitare i2c

Scegliere Interfacing Options > I2C > Yes

Testare se i moduli kernel sono stati caricati:

Install utilities

test bus i2c

 

Raspberry Pi MQTT

Installare Mosquitto su Raspberry:

Mosquito client per python:

Es client:

 

Appunti su TreeGrid

http://www.treegrid.com

 

GanttUnits specifies base display units in chart and are used only for display,
GanttWidth specifies width of the one GanttUnits in pixels.

GanttUnits=’d’ GanttWidth=’50’
1 day = 50px

GanttSize Limits the size of the chart to this unit. The values are the same as the GanttUnits.
For example GanttSize='M' shows always Gantt chart for one month

  • If set to “” it tries to show the whole chart. Also moving Gantt object outside the visible range will resize the visible range
  • If set to 0, it tries to show the whole chart, moving Gantt object outside the visible range never resizes the visible range.

GanttSizeFit

  • f set to 1, it resizes / shrinks the Gantt chart for the selected GanttSize to the space for the Gantt chart.
  • If set to 2, it only resizes, but does not shrink the Gantt chart.
    It calculates and modifies GanttWidth attribute only.
  • If set for GanttSize="" or "0", it shrinks the chart to show only the Gantt objects also on zoom change.

its behavior is affected by GanttZoomFit attribute.

GanttHeader1, …, GanttHeaderX
Header time/number and format in the first header line: “repeater#format#shift”.
The possible values of repeater are the same as GanttUnits, e.g. “w”, “d”, “h” or “1”, “0.5”, “2”, …
The format is standard TreeGrid date / time format string for date repeaters, or standard TreeGrid number format string for number repeaters.
The shift (new 6.4) is optional and moves the header by the shift repeater units left, it can be floating point number. It is usually 0.5 to center the label above the position.

GanttChartMinStart All dates before will never be displayed in the chart

GanttChartMaxStart The chart will always start at least at this date

GanttBackground =’d#1/1/2017′

Date ranges displayed as background, useful for marking some period repeatedly.
Similar to GanttLines, but with two differences: the GattBackground can be repeated, but can be changed by API only by refreshing the whole Gantt background.
The order of the rendered background is GanttExclude, GanttBackground, GanttLines, GanttBase, GanttFinish. If overlaid, the latter is visible.

The format is:
rep1#date1a~date1b#class1;rep2#date2a~date2b#clas2;...

example: GanttBackground =’d#1/1/2017′ show vertical lines daily

NoVScroll If set to 1, the TreeGrid always resizes vertically the main tag to show the entire grid.

NoHScroll if set to 1, the TreeGrid always resizes horizontally the main tag to show the entire grid.

GanttLap=’1′ disable save in cookies for some parameter

ConstHeight If set to 1, updates height of grid to fill whole main tag. It does not modify main tag height, see MaxHeight.

ConstWidth

GanttHeaderTrim:

  • 0 – The incomplete header items are shown,
  • 1 – the incomplete header items are replaced by ‘…’

The trimming ‘…’ is set by
<Lang><Format Cont='...' ContLeft='... ' ContRight=' ...'/></Lang>
attributes.

GanttUnits for dates are:

Solid Blocks:

Box joined by spaces

 

 

VS2015 and BitBucket

To make working vs2015 with BitBucket (https://bitbucket.org) you need to login in BitBucket, create a repository from the menu Repositories/Create Repositories, set useful info then open the link I have an existing project that will shows the commands to link the local project with the remote repository:

in the 2nd line there is the important info:
git@bitbucket.org:USER/PROJECT.git
you need to convert these info in this form:
https://USER@bitbucket.org/USER/PROJECT.git

Back to VS2015, right click on solution and select
Source Control –> Add Solution to Source Control, select Git
VS2015 will create a local repository for your solution

Switch to Team Explorer panel, you will find your local repository, enter a comment for your first commit, then commit and push.
VS2015 will ask you for the remote repository URL, insert the one from BitBucket previously retrieved, then Publish.

Open edX: CAS error 500 (Updated)

I’ve installed open edx production stack, and followed the instructions to integrate the CAS.
The redirection works, but once the user returns to the edX site a page with the 500 internal error appear (but the upper right corner shows the correct user name).
The log file lmstderr.log (I’ve added that the query lookup parameters in the exception):


2015-05-08 10:02:26,514 INFO 19968 [audit] models.py:1463 - Login success - user.id: 82
2015-05-08 10:02:26,521 ERROR 19968 [root] exceptions.py:9 - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 109, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/common/djangoapps/external_auth/views.py", line 482, in cas_login
ret = django_cas_login(request, next_page, required)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_cas/views.py", line 98, in login
auth.login(request, user)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 76, in login
user_logged_in.send(sender=user.__class__, request=request, user=user)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/models.py", line 1490, in enforce_single_login
user.profile.set_login_session(key)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 255, in __get__
rel_obj = self.get_query_set(instance=instance).get(**params)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 366, in get
% (self.model._meta.object_name, kwargs))
DoesNotExist: UserProfile matching query does not exist. Lookup parameters were {'user__pk': 82L}
2015-05-08 10:02:26,526 ERROR 19968 [django.request] base.py:213 - Internal Server Error: /cas-auth/login/
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 109, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/common/djangoapps/external_auth/views.py", line 482, in cas_login
ret = django_cas_login(request, next_page, required)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django_cas/views.py", line 98, in login
auth.login(request, user)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 76, in login
user_logged_in.send(sender=user.__class__, request=request, user=user)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/models.py", line 1490, in enforce_single_login
user.profile.set_login_session(key)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 255, in __get__
rel_obj = self.get_query_set(instance=instance).get(**params)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 366, in get
% (self.model._meta.object_name, kwargs))
DoesNotExist: UserProfile matching query does not exist. Lookup parameters were {'user__pk': 82L}

What to do?
set in lms/envs/common.py:
'PREVENT_CONCURRENT_LOGINS': False,
the error is “solved”