In Sweden, linux is a major thing at universities. All the big ones run linux, all the co-workers I have all say that they ran linux and in my university it was the only thing we had in the computer labs. Maybe its different in other countries but here in Sweden I would think it is what all the major ones use - at least the ones who have students in computer science.
Posts made by jimmiejohnsson84
RE: Building relationships with universities
Building relationships with universities
I have an idea that I would like to pursue for UBPorts.
I believe a good way to strengthen the UBPorts team would be to start trying to build a relationship to some of the local universities we have here in Stockholm. It could be a good way to draw in new talents to the team, help promote Ubuntu Touch and in long term it might even help the project financially.
My idea is to give presentations at universities about the Ubuntu Touch project and how to get involved in it.
I might also, given that the interest is there from the schools and students, run a couple of workshops showing students how to get setup and maybe some basic app development.
I would like to argue that this is a good thing from three perspective - from UBPorts perspective, from the universities perspective and from the students perspective.
From UBPorts its pretty clear, it gives the project exposure and exposure to a good crowd. It would probably attract more people that can bring different talents to the team. And, probably on a longer perspective, it could bring money to the project.
From the students perspective I think it would be interesting to work with ubuntu touch for multiple reasons. One of the things I want to touch upon is that involvment in ubuntu touch is a merit. Be it that you contribute with an app or even make contribution to the components of the OS itself, you have a solid merit which puts you at an advantage when looking for a job. I also belive that a lot of students would find it stimulating and exciting to be able to contribute to a project like Ubuntu Touch and it gives some real-life insights to what its like working in a software project.
Developing for Ubuntu Touch also involves working with a lot of techniques that established software company use, which is also a big plus. Even if you dont manage to finish making a contribution to Ubuntu Touch you will have acquired real life work skills that are sought after by the software market.
From the universities perspective, having a partnership with a project like ubuntu touch would also be beneficial. It is something that can separate you from other universities, making your university more attractive. It could be used for marketing, being able to say that you have a partnership with ubuntu touch. Students going to your school would know that there is an ongoing, world-wide software project that they can choose to get involved in to a large degree if they so choose - and know that there is someone physically there that they can reach out to. Having an established connection with UBPorts could help when creating courses, as you can use software from the projects to build your course around.
The fact that everything is open source also means they can easily obtain and use it as they want.
My suggestion is that I start out with reaching out to a couple of universities here in Stockholm and see if they would be willing to let me run a simple power-point presentation where I talk a bit about UBPorts and Ubuntu Touch. Given that there is interest, I could probably run a couple of workshops as well if the universities can help with letting us use their computer labs.
If this turns out good and the interest is big enough, we could try and approach the universities with offering them some sort of a partnership/endorsement. So we could keep giving them presentations and offer them workshops. Further down the line, we could perhaps even try working on integrating courses with ubuntu touch - perhaps parts of the education could be taking a piece of the ubuntu touch OS and rewrite it in someway as a way of learning computer science topics.
I feel that I need official support from UBPorts before approaching the universities at first. So that when I sit down with them and talk they know that they are talking to someone who is part of the UBPorts community. I think some sort of membership would be needed to act on this and that you can find me on the UBPorts webpage.
Opinons on this?
I know we have a board of directors, I would like them to read this and get a chance to get back on it, as well as hear what other members of the UBPorts think.
Tutorial QT/C++ app dynamically updating ListView object from C++ code, handling input fields and buttons
I put together another tutorial showing you how to update a ListView control dynamically from your C++ code (making sure the GUI updates as you add/remove items to the list view control from your C++ code).
It also shows some simple layout handling, how to handle input fields and buttons.
It may very well make it on to Miguels tutorial site later.
The tutorial is available at : https://drive.google.com/drive/folders/1vJ-ieLIuuvS2Gy_TUddeyGXOPFhaUkug?usp=sharing
Read the README INSTRUCTIONS.txt to follow the tutorial, or just browse the code if you feel like it.
problem with updating AppArmor privileges
Just thought I'd post a quick discovery when using clickable.
If you change the apparmor profile (yourapp.apparmor) and try and install the app again using clickable install, the profile changes will not take effect unless you increase the applications version nr in the mainfest file (manifest.json.in)
Im not quite sure if it is a bug or by design but it can be confusing so I thought I'd share it here.
RE: Tutorial on how to create QT app with C++ plugin and embedd C++ class
I dont know if you even can do it from the command line. I would recommend opening the link in your browser (i.e. firefox if your running from ubuntu which Im guessing you are). At the top of the page is a 'Download all' (or similiar, mine is in swedish so translation might differ). That will give you the possibility to download the whole folder as zip-file.
Of course I would have prefered to have it on Github or something like that, but at this point Im just not willing to fork over 7$ to Github for that. Maybe if I create something more complex.
Most of the files uploaded are generated by clickable anyways, so I just put it there for ease of browse and comparison. If you read the "README INSTRUCTIONS.txt" the first step is to use clickable to create your own project and then you can fill in with my code in the files generated. Its really not that much code.
RE: Tutorial on how to create QT app with C++ plugin and embedd C++ class
Its not a repository, its just a google drive. So you can just download all the files if you want to try it out.
Tutorial on how to create QT app with C++ plugin and embedd C++ class
I wrote this up as I was making my own program. I decided to make a simple tutorial as I could not find anything online that showed me how to do this. If your good at QT already than this is probably a cake-walk for you, but Im new to QT so for me it was a bit tricky.
The tutorial shows you how to create a QT project with a C++ plugin using clickable.
In the example I will create a list view, which displays a list in the GUI, and connect it to a C++ class I have created in the plugin and feed the list view in the GUI with the items created from C++.
It is available at: https://drive.google.com/drive/folders/1fiSqgFEDz--fSb9CtGgLzJSRCias2pdP
A disclaimer: I have note yet received my Nexus 5 phone and therefore I have only been able to experiment with this in desktop mode. I dont know yet if it will work on an actual phone. If anyone tests it out on a phone - do let me know how it went.
Clickable issues found and resolved, Got permission denied while trying to connect to the Docker and docker: invalid reference format: repository name must be lowercase
Just thought I'd share two speed bumps I ran into when firing up clickable for the first time.
The first one involves permission rights missing for the docker program that clickable uses.
Running "clickable --desktop" (probably other options as well that try to start the program built).
An exception is thrown from docker and clickable says something about failing and [docker, ps]
I found a solution which elevates permissions of the user running docker.
in the terminal, enter 'sudo usermod -a -G docker $USER' and log off and then login (perhaps even reboot). I found this solution at https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/
The second problem I encountered was also connected to the docker. You cant user capital letters for the images the docker run. Which means you cant name your projects with upper-letters (which i did).
You will get an error message that looks something like this:
Skipping kill, running in desktop mode
docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.
Command '['docker', 'run', '-v', '/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld:/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld', '-w', '/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld/build', '-u', '1000', '--rm', '-i', 'clickable/ubuntu-sdk:15.04-amd64', 'bash', '-c', 'cmake /home/jimmie/Documents/Code projects/clickableTest/HelloWorld']' returned non-zero exit status 125
The solution for me was just renaming the "HelloWorld" project to "helloworld". Im not sure if there is a problem with the folders contaning upper-cases too (I dont think so but I did change to a path with only lower letter cases and then everything was fine).
I found an issue like mine with a solution at: https://github.com/moby/moby/issues/25599
These are probably newcomers problems and because Im not familiar with the docker tool that clickable use. And the clickable tool does give you good hints when something fails so it was'nt all that hard to figure out myself. But I thought I'd share it here if someone else runs in the same issue and is stomped by it.