Developer Chat

Developmental Discussions of visualboyadvance-m
User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

I've added some cmake code to generate the gettext source pot automatically when you do a build.

If you add UI code with new strings, and the pot is changed, it will print a loud message after the build is complete telling you to commit the pot and push it to transifex.

User avatar
ZachBacon
Member
Posts: 242
Joined: Tue Mar 27, 2018 9:35 pm

RE: Developer Chat

Post by ZachBacon »

Oh! I actually like that idea, enforces any change to UI string to be required the pot file to be updated to transifex.

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

My github gmail filter is working AMAZINGLY well.

I will admit I am only watching the top end of it.

When I will get to the backlog I have no idea.

Spring cleaning is around the corner I guess.

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

Zach, poking you again to review my manual, I just added a couple of sections to it.

denisfa, you too, I remember you did my powershell tutorial previously, but I have changed that somewhat and added more things, so if you can have a look again I would appreciate it.

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

Zach, denisfa, I wanted to ask you guys to test something for me.

Run a windows build with master, go to Help -> Check for Updates, close the app.

Do you get an error about deleting the temp file? Like access denied?

I am getting this, and I didn't get this before when I tested it, I wanted to know if it this is an actual problem.

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

I am making one process related change in regards to github issues:

I have removed the 'fixed' and 'solved' labels.

We will indicate that the status of an issue is resolved by simply closing it, this will work better with everything else and be less error-prone.

I am leaving the 'partially-fixed' label, because that status is sometimes useful for tracking.

An issue can be closed when there is a fix in master.

I will add this to the manual.

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

RE: Developer Chat

Post by Crocodillian »

Added an issues policies section to the manual.

User avatar
ZachBacon
Member
Posts: 242
Joined: Tue Mar 27, 2018 9:35 pm

RE: Developer Chat

Post by ZachBacon »

The server may get suspended briefly, I don't have the funds to keep it going, but payment may still go through, however I'm generating a backup of the sql database just in case things doesn't go through in case we need to move the board away from my vps

User avatar
ZachBacon
Member
Posts: 242
Joined: Tue Mar 27, 2018 9:35 pm

Re: Developer Chat

Post by ZachBacon »

Thanks to @rkitover the forum is back up and running and converted to phpBB

We even have markdown supported and it can use markdown tables!

TablesAreCool
col 1 isleft-aligned$1600
col 2 iscentered$12
col 3 isright-aligned$1

Image

User avatar
Crocodillian
Junior Member
Posts: 14
Joined: Tue Jan 21, 2020 11:07 am
Location: San Francisco, California, United States

Forum Conversion Notes

Post by Crocodillian »

So, zach had a mybb 1822 mysql dump, and no backup of the site (which has attachments, avatars etc..) He said that was enough for him to get it back up originally.

First step was to load that version of mybb with that mysql db.

That was fairly straightforward, I just needed to configure the fastcgi stuff in nginx and add the .php match action.

I just added site names to localhost in /etc/hosts to use as virtual hosts.

Next step was to the conversion to phpbb 3.1, because the converter was from mybb 18 to phpbb 31.

Here I learned that that version of phpbb requires php 5 and refuses to work with 7, which was not available from gentoo.

So I used docker for its intended purpose for the first time.

This is my Dockerfile for php 5:

Code: Select all

FROM php:5-fpm

RUN \
  apt-get -y update && \
  apt-get -y install libpq-dev libgd-dev && \
  docker-php-ext-configure gd \
    --with-gd \
    --with-freetype-dir=/usr/include/ \
    --with-png-dir=/usr/include/ \
    --with-jpeg-dir=/usr/include/ && \
  docker-php-ext-install -j`nproc` gd mysqli pdo_pgsql pgsql

With this command to run the image:

Code: Select all

docker run --rm --name fpm56_latest -v /home/rkitover:/home/rkitover -p 127.0.0.1:9000:9000 rkitover/fpm56:latest

this binds port 9000 in the container to your localhost port 9000, acting just like a system fastcgi php server, except you have to make provisions for the necessary filesystem paths to be bound.

The conversion to phpbb 3.1 was just a matter of using their web UIs.

Once that was done, I decided that docker is a better way to run php and used this Dockerfile for php 7:

Code: Select all

FROM php:7-fpm

RUN \
  apt-get -y update && \
  apt-get -y install libpq-dev libgd-dev && \
  docker-php-ext-install -j`nproc` gd mysqli pdo_pgsql pgsql

I followed the documentation to do the update to phpbb 3.3, and this is what we have here.

And then the minstrels were eaten, and there was much rejoicing.

Post Reply