Planet maemo

eekkelund

2016-07-26 Meeting Minutes

2016-08-18 06:39 UTC  by  eekkelund
0
0

Meeting held 2016-07-26 on FreeNode, channel #maemo-meeting (logs)

Attending: pichlo, Win7Mac, eekkelund, reinob, juiceme

Partial: chem|st

Absent:

Summary of topics (ordered by discussion):

  • Topic Approve pending request on https://garage.maemo.org/admin/approve-pending.php
  • Topic Coding Competition
  • Topic Twitter account
  • Topic MC e.V.

(Topic Approve pending project request on https://garage.maemo.org/admin/approve-pending.php):

  • juiceme added Council to garage admin group
  • juiceme approved project request

(Topic Coding Competition):

  • Postponed CC by one month
  • Submitting an entry: "we could also set up an ftp site where we place whatever comes via mailing list, in case people prefer to download it like that" reinob could handle this

(Topic Twitter account):

  • Maemo community does not have twitter account
  • eekkelund will make one (Maemo Community, @maemo_org)

(Topic MC e.V.):

  • Choocing GA meeting dates
  • Court fillings
  • Win7Mac&reinob will candidate for board

Action Items:
  • old items:
    • Coding competition planning (eekkelund)
    • The next GA meeting should be announced soon.
  • new items:
    • Set up ftp/sftp site for CC (reinob)
    • Create twitter account for maemo community(eekkelund)

Solved Action Items: Find out if https is doable
Categories: council
eekkelund

2016-07-19 Meeting Minutes

2016-08-18 06:38 UTC  by  eekkelund
0
0

Meeting held 2016-07-19 on FreeNode, channel #maemo-meeting (logs)

Attending: Win7Mac, eekkelund, reinob

Partial:

Absent: pichlo, juiceme

Summary of topics (ordered by discussion):

  • Topic Coding Competition

(Topic Coding Competition):

  • How to submit an entry? Thread to TMO/email
  • Categories discussion, dropped wishlist.
  • Updated the Wiki page

Action Items:
  • old items:
    • Coding competition planning (eekkelund)
    • The next GA meeting should be announced soon.
  • new items:

Solved Action Items: Find out if https is doable
Categories: council
eekkelund

2016-07-12 Meeting Minutes

2016-08-18 06:36 UTC  by  eekkelund
0
0

Meeting held 2016-07-12 on FreeNode, channel #maemo-meeting (logs)

Attending: eekkelund, pichlo, reinob

Partial:

Absent: Win7Mac, juiceme

Summary of topics (ordered by discussion):

  • Topic Coding Competition

(Topic Coding Competition):

  • Donations, board has PayPal and bank account
  • Timeframe discussion
  • Categories discussion, 3 main categories: Something new, Fixing/Updating and Beginner.
  • Rules discussion
  • eekkelund has edited wiki page

Action Items:
  • old items:
    • Coding competition planning (eekkelund)
    • The next GA meeting should be announced soon.
  • new items:

Solved Action Items: Find out if https is doable
Categories: council
eekkelund

2016-07-05 Meeting Minutes

2016-08-18 06:35 UTC  by  eekkelund
0
0

Meeting held 2016-07-05 on FreeNode, channel #maemo-meeting (logs)

Attending: juiceme, eekkelund, pichlo, Win7Mac, reinob

Partial:

Absent:

Summary of topics (ordered by discussion):

  • Topic read-only option for TOR endpoints
  • Topic Coding Competition

(Topic read-only option for TOR endpoints):

  • There is thread in TMO
  • maemo.org should have read-only option for tor endpoints
  • Or if TMO is set up as hidden service then read-write access should be OK

(Topic Coding Competition):

  • eekkelund will start to write wiki page
  • Board will handle the prizes/donations
  • Timeframe discussion
  • Platforms discussion
  • Categories discussion
  • Voting, same as in elections

Action Items:
  • old items:
    • The next GA meeting should be announced soon.
  • new items:
    • Coding competition planning (eekkelund)

Solved Action Items: Find out if https is doable
Categories: council
madman2k

On OGRE versions

2016-08-05 12:24 UTC  by  madman2k
0
0

Currently one can choose between the following OGRE versions
1.9, 1.10, 2.0 and 2.1

Click to read 1288 more words
Categories: News
admin
Maemo Community e.V. - Einladung zur Mitgliederversammlung 2016
Click to read 2160 more words
Categories: council
Philip Van Hoof

As we all know does mmap, or even worse on Windows CreateFileMapping, need contiguous virtual address space for a given mapping size. That can become a problem when you want to load a file of a gigabyte with mmap.

The solution is of course to mmap the big file using multiple mappings. For example like adapting yesterday’s demo this way:

void FileModel::setFileName(const QString &fileName)
{
    ...
    if (m_file->open(QIODevice::ReadOnly)) {
        if (m_file->size() > MAX_MAP_SIZE) {
            m_mapSize = MAX_MAP_SIZE;
            m_file_maps.resize(1 + m_file->size() / MAX_MAP_SIZE, nullptr);
        } else {
            m_mapSize = static_cast(m_file->size());
            m_file_maps.resize(1, nullptr);
        }
        ...
    } else {
        m_index->open(QFile::ReadOnly);
        m_rowCount = m_index->size() / 4;
    }
    m_file_maps[0] = m_file->map(0, m_mapSize, QFileDevice::NoOptions);
    qDebug() map(mapIndex * m_mapSize, m_mapSize, QFileDevice::NoOptions);
    position = m_file_maps[mapIndex] + map_pos_i;
    if (position) {
            const int length = static_cast(end_i - pos_i);
            char *buffer = (char*) alloca(length+1);
            if (map_end_i >= map_pos_i)
                strncpy (buffer, (char*) position, length);
            else {
                const uchar *position2 = m_file_maps[mapIndex+1];
                if (position2 == nullptr) {
                    position2 = m_file_maps[mapIndex+1] = m_file->map((mapIndex+1) *
                         m_mapSize, m_mapSize, QFileDevice::NoOptions);
                }
                strncpy (buffer, (char*) position, MAX_MAP_SIZE - map_pos_i);
                strncpy (buffer + (MAX_MAP_SIZE - map_pos_i), (char*) position2, map_end_i);
            }
            buffer[length] = 0;
            ret = QVariant(QString(buffer));
        }
    }
    return ret;
}

You could also not use mmap for the very big source text file and use m_file.seek(map_pos_i) and m_file.read(buffer, length). The most important mapping is of course the index one, as the reading of the individual lines can also be done fast enough with normal read() calls (as long as you don’t have to do it for each and every line of the very big file and as long as you know in a O(1) way where the QAbstractListModel’s index.row()’s data is).

But you already knew that. Right?

Categories: controversial
Philip Van Hoof

Sometimes people want to do crazy stuff like loading a gigabyte sized plain text file into a Qt view that can handle QAbstractListModel. Like for example a QML ListView. You know, the kind of files you generate with this commando:

Click to read 2154 more words
Categories: condescending
madman2k

Creating PyGTK app snaps with snapcraft

2016-07-09 13:45 UTC  by  madman2k
0
0

Snap is a new packaging format introduced by Ubuntu as an successor to dpkg aka debian package. It offers sandboxing and transactional updates and thus is a competitor to the flatpak format and resembles docker images.

Click to read 1138 more words
Categories: Articles
Philip Van Hoof

Composition and aggregation with QObject

2016-07-01 11:38 UTC  by  Philip Van Hoof
0
0

Consider these rather simple relationships between classes

Click to read 1452 more words
Categories: controversial
eekkelund

2016-06-14 Meeting Minutes

2016-06-22 19:27 UTC  by  eekkelund
0
0

Meeting held 2016-06-14 on FreeNode, channel #maemo-meeting (logs)

Attending:reinob, Win7Mac, M4rtinK, eekkelund, pichlo

Partial: chem|st

Absent: juiceme

Summary of topics (ordered by discussion):

  • Topic Coding Competetion
  • Topic Bitcoins, HTTPS

(Topic Coding Competetion):

  • Council is thinking to reduce categories due to low amount of participants
  • Four categories: Something new, Fixing/updating, Beginner and Whislist

(Topic Bitcoins, HTTPS):

  • chem|st will find legal disclaimer for donations made in BTC
  • Cert is needed for https, Council was discussing about which cert to chooce

Action Items:
  • old items:
    • The next GA meeting should be announced soon.
    • Tax-exempt status
    • Could we make coding competetion happen
  • new items:
    • Find legal disclaimer for Bitcoin donations

Solved Action Items:
  • Ask about tor and https from techstaff
Categories: council
eekkelund

2016-06-07 Meeting Minutes

2016-06-22 19:26 UTC  by  eekkelund
0
0

Meeting held 2016-06-07 on FreeNode, channel #maemo-meeting (logs)

Attending:reinob, eekkelund, Win7Mac, juiceme, pichlo

Partial:

Absent:

Summary of topics (ordered by discussion):

  • Topic Tax-exempt
  • Topic More Coding Competetion discussion

(Topic Tax-exempt):

  • juiceme has application form for Maemo community tax-exempt status
  • Finanical reports for the past 2 years to complete needs to be applied
  • "Being tax-exempt means we're a registered charity."
  • Is there any professional account managers among our community? Council could need little help.

(Topic More Coding Competetion discussion):

  • Discussion about basic tasks regarding Conding Competetion
  • eekkelund promised to think about leading the Coding Competetion

Action Items:
  • old items:
    • The next GA meeting should be announced soon.
    • Ask about tor and https from techstaff
    • Could we make coding competetion happen
  • new items:
    • Tax-exempt status

Solved Action Items:
  • Find out if https is doable (pichlo)
  • Check missing priviledges to the Council blog (juiceme)
Categories: council