What I hate about Pulseaudio is its crappy default configuration. After fresh installation of SUSE Leap 42.2 I encountered an issue that subwoofer didn’t work with Amarok… again((( Lucky me, the first link that google provided me with was link to my own(!!!) thread that I started about 6 years ago (sick!!!). In 2011 I encountered the same issue, asked for help, but solved on my own and answered for my own request. And now future me was able to find that long forgotten thread of mine. That’s so sweet to recieve a messege to miself )))
This time I will put the answer here to remember it better 😉
The problem solved, tnx to this post.
In /et/pulse/daemon.conf I’ve made following changes:
enable-lfe-remixing = yes
default-channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
Posted: September 23, 2016 in Environmental Safety, Spatial data, Sustainable Development
Tags: bokeh, environment, environmental monitoring, monitoring, pandas, Python, Qt, R, science, SQLite
Python, R, Qt, peewee, bokeh, pandas, SQLite plus couple of sleepless nights and here you are a cute app for the environmental monitoring needs )))
|Main window of the application
I wanted to have UUID fields in my Peewee-bsead models for the SQLite database. I quickly found ready-to-use code, but it lacked one important thing – automatic uuid generation. Here is the solution:
from peewee import Field
db_field = 'uid'
def __init__(self, *args, **kwargs):
self.default = uuid.uuid4
def db_value(self, value):
return str(value) # convert UUID to str
def python_value(self, value):
return uuid.UUID(value) # convert str to UUID
Posted: November 9, 2015 in GIS, This and That
Tags: Python, QGIS
Recently I did a QGIS scripting job and here is the feedback from an extremely satisfied customer:
It was fantastic to work with Yury. He provided an excellent product, that went far beyond what I was expecting. I will certainly be contacting Yury in the future for any jobs that relate to GIS and python scripting. Communication was excellent and his ability to understand the job requirement was very impressive. A+++
Guys, if you are in need of geoprocessing tool for your project – don’t hesitate to contact me 😉
Posted: October 23, 2015 in GIS
Tags: github, Python, QGIS, R
This is probably my shortest post ever.
All my QGIS processing scripts (R and Python) and models that I already blogged about, plus some extra are now available at GitHub.
Posted: June 18, 2015 in GIS
Tags: GIS, map, OSM, QGIS
What I love about QGIS is that one is able to create a nice map quickly. The other day I was asked to make a situation map for the project we are working on to include it into presentation. Аll I had was a laptop with no relevant spatial data at all, but with QGIS installed (I even had no mouse to draw something). Though it was more than enough: I loaded OSM as a base layer and used annotation tool to add more sense to it. Voilà:
Posted: April 1, 2015 in GIS
Tags: bug, error, OTB, QGIS, workaround
One of the optional input for the creation of the classification models in OrfeoToolbox is XML image statistic file that is produced by Compute Image Second Order Statistics tool. If you opt to calculate this statistics – necessarily check the created XML file. If you will see “#INF” record in band statistics (i.e. “1.#INF”) – replace “#INF” with something like “0e+32” (“1.#INF” -> “1.0e+32”), or (a better solution) – calculate the statistics for this problematic band independently (probably with another tool) and completely replace the value.
If you leave “#INF” record in XML file, models for classification that will be created based on it will have “#IND” records and when you will try to run classification based upon these models – the process will be terminated complaining about unrecognised “#IND”-values, because values must be numeric and not characters.
I don’t know what causes the “#INF” records to appear in the first place, maybe not properly defined no-data values? In some cased it is impossible to provide correct no-data value due to limitations of the input field (I use OTB from within Processing module for QGIS).