Morphex's blogologue (Life, technology, music, politics, business, mental health and more)

This is the blog of Morten W. Petersen, aka. morphex in various places. I blog about my life, and what I find interesting and/or important. This is a personal blog without any editor or a lot of oversight so treat it as such. :)

My email is morphex@gmail.com.

An OGG/Vorbis player, implemented in Javascript.

My Kiva bragging page
My shared (open source) code on GitHub

Morphex's Blogodex

News
Me on Instagram
Slashdot

Zope hosting by Nidelven IT

Morten Petersen on Linkedin

Morten Petersen on Facebook

Morten Petersen on SoundCloud

Morten Petersen on MixCloud

Blogologue on Twitter



Older entries



Atom - Subscribe - Categories

Facebook icon Share on Facebook Google+ icon Share on Google+ Twitter icon Share on Twitter LinkedIn icon Share on LinkedIn

A python script to calculate placement of poles for a roof

I've been working on the cabin, lately clearing out a tree behind the cabin that was a threat to the roof.

Some blog posts about some of the work on the cabin here: http://blogologue.com/search?category=1591541232X85

Anyway, I need to setup some new poles for the porch / balcony, as there is a lot of rot in the parts below the roof, and those parts support the roof. So I can't just rip it out.

I wrote a script some time ago, and was going to use that today as I took finer measurements of the new beam that will carry the roof and how long an extended beam will have to be. As I was reading the script I couldn't make sense of it, so I re-wrote it, and posted a new one today:

https://github.com/morphex/misc/blob/master/holesforpoles3.p...

The old one is also in the same repository as holesforpoles.py, but you'll have to dig through the version history for that one.

I think it shows that in construction work, you have to cut once, measure twice, calculate thrice and maybe re-write the code quadrice. I wrote a holesforpoles2.py program today as well, but that was also discarded, more as a tool in the thinking process I guess.


[Permalink] [By morphex] [Python and web (Atom feed)] [13 Jun 17:14 Europe/Oslo]

An Open Source license for scripts, small code bits and programs

I have some miscellaneous code here:

https://github.com/morphex/misc

Which hasn't been given a license yet, and I was wondering what license to give it. Just to make things clear, and make it easier to make use of the software. Using imapsync I was reminded of this.

It's been put up there for sharing and re-use obviously, so what are the best suggestions for a license? I was thinking BSD, GPL or LGPL.

Not sure whether to use GPL 2 or 3 though.

My email is morphex@gmail.com

[Update on the 22nd of May]

So I landed on the GPL, version 3. I think it's a good choice for me, as it is more explicit on what it grants and easier to use for others, and also makes it difficult for someone to make something closed-source and make money off it, without paying me.

I read a bit on GNU.org about the GPL version 3 and I liked what I read, one thing we don't need is more lawyers to get something useful done, or make it harder for small enterprises to innovate, or favor large companies or duopolies/monopolies.

[Permalink] [By morphex] [Python and web (Atom feed)] [16 May 20:17 Europe/Oslo]

An IMAP migration script

So, last December I got an email from the email hosting provider for Nidelven IT that the email server would be taken down in 6 months time.

I didn't like the timing, as I was in court process, the third one in 7 years about my kids, but understand that things are expensive to maintain, a potential security hole etc. when they age.

So I wrote a little script that pretty much would do what was necessary.

Then after some thinking, it struck me that this is something others would need to do, and it wasn't completely straightforward. So I decided I could model a script based on the process I was using.

Here's the script:

https://github.com/morphex/misc/blob/master/migrate-imap.py

I found the imapsync script:

https://github.com/imapsync/imapsync

Which can be used to do the heavy lifting. I read the license file for that project, and although I'm not a lawyer, it seems straightforward enough that I can use it for my needs. It might've been a better choice to use a known license, but whatever, it is very minimalist and straightforward in its wording.

The script just lists folders for now, then I guess it could build a shell script file which calls imapsync, and that can be inspected and executed.

I was scratching my head a bit as I was writing the script, as the print() statement printed parentheses, then I saw I was running it with python 2 and not 3.

Other than that, I wasn't able to figure out a way to parse command line options for the script using just getopt, am I missing something or is there another module?

[Update on the 13th of May]

The script is now more or less complete. Gilles also responded to an email, saying imapsync imapsync also has --justfolderlists.

I couldn't quite understand the getopt module, haven't used it much before.

[Update on the 15th of May]

I'm now using this script to run imapsync, and imapsync is chugging away, at around 5-6 messages per second.

After posting the previous update I looked over the script a few times, and spotted a print() statement too much, in the generation of the shell script. That goes to show that just looking over code is useful.

Latest commit here: https://github.com/morphex/misc/commit/bcf34c85e93237e79f1920a7184bf0f4e7f5032f

I also made SSL mandatory, it's the kind of mistake someone could make, not using SSL, and it's easy to edit the script file afterwards to remove it, if you know what you're doing.

[Update on the 16th of May]

So the build migration script script is working, and imapsync looks like a sturdy piece of software, it ran through hundreds of thousands of messages in one run. Had to add a command line flag to copy header-less messages, imapsync suggested it might be Draft messages etc. and was on about a Message-ID. A second pass copying over remaining messages was uneventful.

[Permalink] [By morphex] [Python and web (Atom feed)] [09 May 19:53 Europe/Oslo]

Preparing the roof for work / breakage

I've been itching to get some work done on the cabin, and today it was a toasty 6 degrees Celsius (as forecast), so I got some mounts setup for the tarpaulin that will go on the roof sooner or later.

Behind the cabin there are a couple of large trees, and I'm hoping get those taken down early this spring, before they start to leaf out - which would mean it gets more difficult to see where everything is, and they also would sway more in the wind.

The roof is in need of replacement, so it seems like the logical thing to do, to take down the trees behind the cabin first. It would be bitter if a part of the tree fell down on a new roof, and breaking it would mean a lot of repair work. Either dropping a part of the tree by accident, or a piece of it breaking off during a storm. That happens.

So I figured it would be right to get these mounts up now. I'm also mulling anchoring the mounts to the ground using some anchor and a rope; I think a large tarp could catch wind easily, and over time this would just rip the mounts from the beams they're screwed to, even though there is quite a bit of flex in the metal build fittings adapted to be mounts.

Here are some pictures of the mounts and trees:

Close up of one tarp mount

Several tarp mounts

Trees behind cabin

[Permalink] [By morphex] [Building a home (Atom feed)] [21 Feb 14:10 Europe/Oslo]

A small script to find suitable, recurring dates

So, I recently was in a long process, to find an arrangement between me and the kids mom regarding the kids.

We made a court settlement, and the setup is that I see them every 8th week. Through my volunteer work, I have commitments during Christmas and Easter, and I also plan to partake in a mini triathlon in the middle of July each year. A useful goal, to keep me motivated for exercise. I also meet family around this triathlon, and it's good to keep connected, and get connected.

I've come quite a long way physically, I feel much lighter and nimbler today than I did a year ago, five years ago.

So, I created this small script:

https://github.com/morphex/misc/blob/master/togetherness.py

Using the Python 3 datetime module. I haven't used the formatting before, so I'm not sure if I did it right, but it looks right on the console anyway.

I thought about adding checks for whether dates were around Christmas or Easter, but it didn't look like the datetime module could automatically figure out what period Easter falls on each year.

And having run the script, I found a usable start date just checking Easter dates manually.

[Updated 03/02/2021 10:30] Mark Lawrence chimes in on email, mentioning the dateutil module:

https://dateutil.readthedocs.io/en/stable/

When I think about it, the Python library documentation could do with a section at the end of each module, which briefly summarizes known, trusted modules and packages and their contents.

It's not directly under PSF control, but it would be useful to have nonetheless.

[Permalink] [By morphex] [Python and web (Atom feed)] [01 Feb 19:36 Europe/Oslo]

Complaint filed against the Family welfare service in Mo i Rana

I was supposed to meet the kids this Saturday, but yesterday at 1731 the meeting supervisor Rubi Stjernen tried to call me, and at 1737 she sent me an SMS saying that the meet was cancelled, and that a new meet could take place in two weeks time.

I sent a complaint regarding this, this morning. I was going to take the bus to take the train up to Mo i Rana, but since that got cancelled, I've sent that complaint instead.

The email:

Subject: Complaint against the family welfare office in Mo i Rana
To: Lise Lydersen <lise.lydersen@bufetat.no>
Cc: (My Lawyer) Kent Fredriksen <kf@saverud.com>

Hi.

I had a missed call at 1731 yesteday, from Rubi Stjernen. At 1737 I got an SMS saying that the meet with the kids was cancelled, due to regards to infection control.

See attached.

As you also see attached, Rana commune has [in spite of the recent Corona oubreak], an open library with infection control measures.

The chief physician for Rana commune, says it is OK to do the meet with the kids [attached].

Many meets with the kids have been postponed due to this Corona situation this year, and I question the way the family welfare office have handled the situation; I also question the way they have handled the conflict between me and my kids mom, and their lack of will to communicate [with me].

I also refer to the complaint filed against Justin Smith [manager of the family welfare office] a while ago. [ Complaint is here: http://blogologue.com/blog_entry?id=1575616716X26 ]

By the way, I can inform you that I have experienced a lot of irritating and stressful things the last couple of weeks.

Attachments:

http://blogologue.com/klage2_familievernkontoret_mo_i_rana/s...
http://blogologue.com/klage2_familievernkontoret_mo_i_rana/f...
http://blogologue.com/klage2_familievernkontoret_mo_i_rana/r...


[Permalink] [By morphex] [Family (Atom feed)] [06 Nov 08:35 Europe/Oslo]

Adding some reporting functionality

I just added some code to the surveil app, the beginnings of what will be a reporting feature.

https://github.com/morphex/surveil

(report.sh, report.py)

I found that the surveil app uses quite a bit of bandwidth when sending video, on the mobile network anyway, so I added an option to just store the videos locally a while ago.

That works, but then the surveillance app can stop making videos for whatever reason and nobody's the wiser.

So I figured it would be nice with a daily report of the videos created, so that it is possible to keep an eye on things, even if videos aren't mailed.

Another thing I'd like to add to the report is the file size and checksum of the video, so that it is possible to see if someone has tampered with the video.

But almost as soon as I got started I got tired, so I'll finish it off later.

Oh and I moved the find command out to a separate file; subprocess.Popen and shell command line arguments turned out to be a bit too complicated.

[Permalink] [By morphex] [A surveillance app (Python tree here I come!) (Atom feed)] [03 Oct 21:30 Europe/Oslo]

Using a spare-tyre, maintenace of rear axle

So, a few days ago I tried to fix the axle of my bike, which broke off, but not completely.

I have an older bike, broken down, stored here as well, and I took the shield around the cone which guards the ball bearing from that, and hoped it would work.

It did work, for a couple of kilometres. Then the tire started wobbling.

Turns out that shield didn't fit, and the ball-bearing beneath it had been gobbled up into bits.

So, I figured I would instead use the entire tyre from the old bike, and it seems like a good fit.

No description

No description

It had been standing out in the rain etc. though for quite some time, so I disassembled most of the rear axle, cleaned the balls in the ball bearing, put on a good amount of cleaning/lubricant (similar to WB40), and now I'm letting than run off.

No description available

As I'm looking at the tire, I see that it is rated for 70 kgs, and I'm well beyond that, and was at the time that I bought it. I got a bad vibe about those ******* at the store, and it turns out I should have listened more closely to that.

Anyway, I won't be using that tire for long, and I'll be going at a slow pace to keep things safe. It's a useful exercise for me to do this kind of work.

So, I took a break for some food and a cup of tea. It started to rain, I wasn't happy about that, but it turns out the paper becomes water-repellent once it is soaked in oil, and the bits and pieces had water droplets formed on them, which also indicates the oil/cleaner is working.

No description

I guess this cleaning / oil is so thin that it loosens up things, yet it is oily enough to stick and displace water.

I attached the wheel, and it sits well, and looks better after being treated with a bit of that good stuff. Now I just have to get some air into it, and adjust the break pads slightly.

No description

No description

[Permalink] [By morphex] [Maintenance (Atom feed)] [12 Jul 15:46 Europe/Oslo]

Charges filed against Nordland police district, formerly Helgeland police district, by Rana police station

Complaint against Nordland police district, formerly Helgeland police district, by Rana police station

I wish to file a complaint against Rana police station, because they have since 2013 been passive, and as a result of that, I've been inflicted considerable financial losses, and suffering.

Furthermore, employees at Rana police station have taken a more aggressive stance to my public posts the last 6 months, without explaining why.

I have reason to believe that they are trying to scare/pressure me into stopping talking (blogging) about what has happened since 2009, as they don't explain what's wrong with my blogging, and why.

In addition to this, employees at Rana police station have tried to pressure me into giving a statement recently, even if they before that got good reasons as to why I couldn't give a statement.

After this, I've mailed with one Joakin Einhaug at Rana police station, where I have repeated what I've earlier said about the matter, without getting any response.

Morten W. Petersen
9. April 2020

Original complaint (In Norwegian).

[Permalink] [By morphex] [Family (Atom feed)] [19 Jun 09:49 Europe/Oslo]

Complain filed against primary care physician Ina Løvlihaugen

It's going towards a 3rd round in court about my kids, and in that process, the court asked my lawyer new Kent Fredriksen, to ask me to get documentation [from my doctor].

The old lawyer Sveinung Hestad Strand suddenly and without notice disappeared to a job in the public sector.

So, I asked my doctor for some documentation. Before this, I thought our working relationship was OK, but as soon as I was asking for this documentation, things got weird. So I ended up also asking for a document that documents that I have been taking Seroquel (as I should), for 10 years. Which was on the side of this court process.

However, when I went to pick up my package of Serqouel at the pharmacy, I found that Ina Løvlihaugen had retracted my subscription, without me having an idea she would, and without sending me a message about it.

That she doesn't want to document something that is central to my medical treament and that I know is true, is alarming. They should be able to tell, after 10 years, if I'm taking the medication as I should or not.

And retracting the medication, a medication I'm mentally and physically dependant on, is over the line. Here is my complaint, translated from Norwegian [original is here: http://blogologue.com/klage-fastlege-ina-loevlihaugen.pdf ]:

Subject: Complain on primary care physician Ina Løvlihaugen
To: fmtlpost@fylkesmannen.no
Cc: post.trondelag@politiet.no, Kent Fredriksen (kf@saverud.com)
Date: Thursday, 11th of June, 2020 at 10:25 PM

Hi.

I wish to send a complaint on Ina Løvlihaugen, at Moholt Legesenter [Moholt doctor's centre].

When I went to pick up my medication saturday, the prescription had been withdrawn. I had not gotten a message about it being withdrawn. I also had no idea that the prescription would be recalled.

The medication is Seroquel depot, and I understand it that in the prescribed use, I am mentally and physically dependant on this medication.

After sending messages about this, a new package was prescribed.

This was picked up on tuesday. Later the same day I sent a request for a new prescription.

Now, 2209 thursday evening, I still don't see a prescription on helsenorge.no [main healthcare website in Norway].

In addition to this, Ina recently refused to make a certificate that I have taken the drug Seroquel as agreed for 10 years, since 2010.

I have taken the medication as agreed with doctors, when one disregards trivialities such as very sporadically forgetting a dose, taking a tablet too much, taking it in the early afternoon instead of the morning etc.

I thought the collaboration between me and Ina has been OK, but it has become weird after Kent Fredriksen asked me to get a certificate from her. I asked for a certificate that described our relation and that the collaboration was OK, I did not get that. This in connection with parental responsibility in a custody case.

I think this matter regarding Seroquel is suited to create insecurity for me and other users of the healthcare system, and further weakens my trust to the healthcare system.

Regards,

Morten

[Permalink] [By morphex] [Health (Atom feed)] [17 Jun 08:46 Europe/Oslo]

Reworking the balcony

So, I'm staying at my dad's cabin, going to fix it up as I go along.

Some rot in the balcony caught my eye, and eventually I found that parts here and there in the lower section of the balcony was rotten and had cracks.

So I'm going to keep the roof, for now, and remove whats underneath. Today's project was to prepare the roof for a new mainstay at the outer edge.

So I had to remove some bits of plank that were added to support the fixture where the water drain that runs along the roof is attached.

No description available

I, rather romantically, started thinking I could drill some holes in the place I wanted to break the planks at the right place, or use an iron tap, but those bits of plank there were solid, and they've been there for many decades - good wood and/or they're in a well ventilated place.

No description available

I've made it a point to make the process as safe as possible for me and for anyone else, so nails that are left, are bent and/or hammered into the wood so it doesn't become for example a tetanus trap.

No description available

Eventually though, the romantic, soft approach turned into a brutal and time-saving process, where I just hammered on the plank to make it break.

No description available

That worked rather well actually, the wood broke at the right place to still keep things in place, and clearing the supporting struts so that a mainstay can be put in place.

Some good wood here, getting chucked:

No description available

Making sure removed nails etc. are put in the "jewelry box":

No description available

I guess the only disappointing part today was that one of the supporting struts beneath the roof had rot:

No description available

But it's not very surprising, it was on the corner with rot that first got me started with this. Is it the weather exposure and/or bad ventilation?

I don't know.

Anyway, final result!

No description available

The balcony roof is now ready for a new mainstay a bit below the old one, some concrete can be poured, and the roof will have some new support columns, and the lower part of the balcony can be removed.

[Permalink] [By morphex] [Building a home (Atom feed)] [07 Jun 16:47 Europe/Oslo]

Creating Instagram video out of an animated gif using ffmpeg

I like to play around with images and video, and one thing I'm on about these days are negative images.

I caught a bunch of images of a small waterfall the other day, and Google Photo created an animation of it.

I looked for an app that could convert it into a video Instagram would accept, but ended up having to use ffmpeg through Termux to create a video Instagram would treat as a video.

The command was

$ ffmpeg -f gif -i IMG_20200407_173651_1CS-ANIMATION.gif -vf negate -pix_fmt yuv420p out.mp4

Key command line argument was "-pix_fmt yuv420p".

[Edit shortly after posting..]

BTW, the video I created is here: https://www.instagram.com/p/B-uu45AgU7D/?igshid=8k2k49hlpd5x

[Update the day after..]

Here's the animation of falling water from Google Photos.

[Permalink] [By morphex] [All (Atom feed)] [08 Apr 21:08 Europe/Oslo]

Make-shift exercise tool in these Corona times

I have a set of programs I alternate between at the gym, but now with the Corona virus and all, I have to find alternative ways to exercise.

At the same time, I don't want to invest in a lot of gear, because that costs money, and it is a pain to transport, when for example moving.

So I bought a weighted vest, 30 kilos. I've been using that on for example push-ups, to replace the effect of pushing 36 kilo dumbbells.

I figured I could use the same vest to create a make-shift dumbbell for lateral raises, biceps curling and sideways lifts (to build abs).

So here are the pictures of that process. First picture I've cut a broom handle in half, second and third I've taped the ends and the middle with some packing tape, fourth and fifth I've wrapped the thing in sports tape, sixth picture I've added a piece of orange medical tape to tell where the middle is, and final picture you have the vest, ready to be used as a dumbbell and curl bar.

Broom handle cut and saw, on a chair

Taped ends of cut broom handle

Taped centre of cut broom handle

Wrapped in sports tape

Another picture of wrapped in sports tape

Orange tape in the middle to mark the center

Lifting bar thread through the weighted vest



[Permalink] [By morphex] [Health (Atom feed)] [04 Apr 21:35 Europe/Oslo]

Script to setup WiFi at boot

So, I've got a computer I can't easily access, so I have to set it up to use WiFi at boot. Different configuration options on different Linux distributions give unpredictable results. Today I also experienced a lot of dropped connections, so I had to add a test for network connectivity and setup part of the connection when it drops.

Here's the script, it is also available on http://blogologue.com/wpas.sh

#!/bin/bash
# Crontab entry: @reboot /root/wpas.sh
# Uncomment to kill any wpa_supplicant processes started automatically
#/usr/bin/killall wpa_supplicant
/sbin/wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &> /root/wpas.log &
/bin/sleep 5
while :
do
/bin/ping -c 2 blogologue.com
if [ $? -eq 2 ]
then
/usr/bin/killall -q dhclient
/bin/sleep 5s
/sbin/dhclient wlan0
fi
/bin/sleep 5
done




[Permalink] [By morphex] [Linux (Atom feed)] [23 Jan 15:09 Europe/Oslo]

A notice of concern regarding Justin Smith, leader of the Norwegian family welfare office in Mo i Rana, and the family welfare offices in general

So, this week I got an email from Justin Smith, leader of the family welfare office in Mo i Rana. I was disturbed by this email, in addition to behaviour he has displayed earlier. Here is that email.

Subject: A notice of concern regarding Justin Smith, leader of the Norwegian family welfare office in Mo i Rana, and the family welware offices in general
To: postmottak@bufdir.no
Cc: Justin Smith <justin.smith@bufetat.no>,
Lise Lydersen <lise.lydersen@bufetat.no>,
Vebjørn Svidal <vebjornsvidal@gmail.com>,
lillian.naerem@rana.kommune.no,
rana.tingrett@domstol.no,
post.trondelag@politiet.no,
Postmottak Nordland politidistrikt <post.nordland@politiet.no>,
sylvakrogh@outlook.com

Hi.

I'm concerned regarding Justin Smith, as he displays a behaviour that is unsuitable, with regard to him being a leader that arbitrates in family conflicts, and has the role of overseeing [time parents have with their kids], which I have gone to court to get, time with my kids.

Justin Smith has earlier this year (on the 16th of August), asked for a meeting with regards to the supervised time I have with the kids. I said yes to this meeting, and a few days later, I added some points which I wanted to discuss. I sent a reminder regarding this meeting on the 17th of September, and the 4th of October. Wanting to have this meeting was also mentioned by me on the 13th of November, in an email about a new round of arbitration.

I think Justin Smith is quite foggy and at times annoying to talk to, and that the family welfare office in Mo i Rana and Trondheim, doesn't come across in a way one might expect - as a neutral party for the best interest of the kids. Where their best interest is among other things, to have [a good relation with their dad].

It seems for example that he [Justin, in conversations], waits for me to say something, and then starts to say something, [to disrupt and/or annoy me].

..the meeting [that Justin originally wanted] was never arranged, and a couple of weeks ago, I called the family welfare office (familievernkontoret i Mo i Rana) in Mo, and talked to Justin Smith. There I suggested 2 alternatives for having the meeting. One was that Bufetat (The Norwegian Directorate for Children, Youth and Family Affairs ), paid for the travel expenses, where the meeting could take place outside of the periods where I see the kids, the other was a meeting over the phone, where I get to loan an office space from the family welfare office in Trondheim (familivernkontoret i Trondheim). Justin was negative to both of these alternatives. I then suggested a third alternative, that I rent an office in Trondheim, and send the bill to Bufetat. I did not catch a positive response to this. It is important for the meeting to be able to speak openly, without [people that had no right to hear confidential information being able to hear it].

This shows that several alternatives for having a meeting have been suggested.

Justin knows, or should know, that it is an extremely small amount of time I get with the kids compared to what I want, that the kids mom [Hilde Olsen] only wants to share expenses for the cheapest transport [added: about 500km each way on train] and not staying overnight in a hotel, and that there has been a long conflict, and still is, between me and the kids mom. And that I think it is important to get the most out of the time I get with the kids.

I have previously said that I wanted arbitration about the parental resposibilities, where they live, time with parents etc. to be outside of the periods I have time with the kids, to get the most out of these times with the kids.

To then force in a meeting at 09:00, the exact same time as the time with my kids starts, is therefore strange, and inconsiderate. It goes without saying that this also limits the amount of time I can use on the meeting (talk about things I want/need to discuss), and that it disrupts the execution of the time I have with the kids.

I think it is important to have good health, and for example regularly check my blood pressure. The highest blood pressure I've had this year, has been very close time-wise, to a visit to see the kids.

Attached is an email sent to Justin with points I wanted to discuss in addition to what Justin wanted to discuss ( http://blogologue.com/justin1_en.txt ) , and an email sent from Justin this week, with my answers ( http://blogologue.com/justin2_en.txt ).

Regards,

Morten

[Permalink] [By morphex] [Family (Atom feed)] [06 Dec 08:18 Europe/Oslo]

A lack of response from the Norwegian family welfare office in Mo i Rana leader Justin Smith

So, a good while ago, the leader of the Norwegian family welfare office in Mo i Rana, Justin Smith, contacted me as he wanted a meeting about the roles the people in the office and the person assisting me in my visits seeing the kids have.

I'm not sure what the deal was, because the meeting so far hasn't taken place. But it might have been that I privately wanted to pay the person assisting me (Rubi Stjernen) in these visits for more time, so I could spend more time with the kids, or it could be because I've asked Rubi to welcome the kids, so that I don't have to deal with the the kids mom (Hilde Olsen), her contact person (Vebjørn Svidal, Hilde's brother-in-law an police officer) or any other member of that family.

Anyway, I agreed to such a meeting, then a bit later I figured out there were other things I wanted to discuss, as this conflict about the kids has been going on for 6+ years, and the family welfare office in Trondheim and Mo i Rana have been involved in the conflict for 6+ years.

I sent this email asking for an extended meeting, with the things the leader of the Mo i Rana office wanted to discuss as the first point over 7 weeks ago, but haven't heard anything after that. I send a reminder some weeks ago, and I sent a final reminder last Friday, the 4th of October, asking for comments. I haven't heard anything back.

I think the lack of response, says a lot in itself.

Here's a copy of that email, translated to English:

Subject: About contact meeting
To: Justin Smith, <justin.smith@bufetat.no>

Hi Justin.

I don't have a place to [have a call] that is fully private, so I thought I could borrow a room at the family welfare office in Trondheim.

There are a couple of other things I want to talk about:

1. The roles the family welfare office, visit supervisor etc. have

2. Carrying out visits, wishes

3. Extension of visits [time with the kids]

4. Parental responsibility, why can one party refuse to share information, when is this [considered] irresponsible

5. Review of [conflict] history up until today, confidentiality [non-disclosure], the position of moms and dads in family matters [conflicts], the position of the parent the child is living with, in family matters

I think we can say 15 minutes on each point.

I would like 15 minutes alone in the room before and after the meeting, to prepare and round up. I want the meeting to take place circa in the middle of my [scheduled] visits to see the kids, in about 3 weeks.

I will probably want to have more meetings.

I prefer to have meetings towards the end of the [working] day.

I will record the meetings.

[Permalink] [By morphex] [Family (Atom feed)] [08 Oct 18:51 Europe/Oslo]

Google Drive on Linux (ocamlfuse) and cp cannot create hardlink, function not implemented

So, I was copying a bunch of stuff from an old Windows partition, in case there was something there I needed, making a backup to my Google Drive.

Copying it all using Firefox or Chrome didn't work, the process just died away at some point. So I thought why not go for the command line, which could be setup to retry etc. whenever something fails.

I found google-drive-ocamlfuse, and installation and setup was straightforward. The installation command was

sudo add-apt-repository ppa:alessandro-strada/ppa && sudo apt-get update && sudo apt-get install google-drive-ocamlfuse

(all on one line).

After that, I created a directory google-drive in my home folder, with the command

mkdir google-drive

and setup that folder as a mount point to my google drive, using

google-drive-ocamlfuse google-drive/

It is worth mentioning that you have to close down the browser after authorizing gdfuse to access your google drive, otherwise you can sit and wait on the command line for a long time.

Voila, the google drive was mounted at /home/morphex/google-drive

Now, to mount my Windows partition and make it accessible for my regular user, I had to run

sudo mount -u uid=1000,gid=1000 /dev/sda3 /mnt

To mount the drive accessible to my regular user, so the copy command could read all files.

To copy all the files from the Windows partition, I had to use

cp -Ruvv --copy-contents /mnt /home/morphex/google-drive/ssd

It is worth mentioning that I figured out I had to use the --copy-contents argument, after cp said it couldn't create hardlink, function not implemented.

As an example, that was presumably that a file A existed, and file B was a pointer to the same file, with no contents of its own, and the ability to copy just the pointer was not implemented, so now file A and B exists in the google drive folder, each with their own set of data, taking up double the space.

It was a bit surprising that it took a bit of googling and thinking to figure out I could use the --copy-contents flag.


[Permalink] [By morphex] [Linux (Atom feed)] [05 Sep 15:59 Europe/Oslo]

A follow-up on the struggle to see my kids (role of a police officer)

So, I've been in a conflict with the mother of my kids for 6 years now, and for some time, her brother-in-law, a police officer in Mo i Rana, Vebjørn Svidal, has been a contact person.

I've found his role questionable, in that he as a police officer, has some authority and credibility, and that he then meddles with this conflict, can give the kids mom credibility, because he is a police officer and doesn't do anything about what's going on. For example, reporting the kids mom to the child services.

I reported him to the internal affairs branch of the police, some more info is on this page.

But long story short, the internal affairs dismissed my complaint, but at the same time, forwarded it to the police district where he works.

In my complaint(s), I say that Vebjørn acts as an extended windpipe for the kids mom, trolling along; and that she does not share expenses for me seeing the kids, according to the law, and hasn't done so for 6 years. I write that his meddling in this conflict is questionable, and that he must realize that he, being married to the twin sister of my kids mom, is surrounded by people who can influence him, every day.

But also importantly, the internal affairs did not say that anything I wrote is untrue. A complaint given to the police does have some weight to it, as it is a bad idea, and can be punished by law, to lie to the police.

[Permalink] [By morphex] [Health (Atom feed)] [20 Apr 22:22 Europe/Oslo]

When medication is not available as advertised / promised

Recently I was at a pharmacy, to pick up some Seroquel Depot medication, at the Norwegian pharmacy chain Apotek1, their store at Heimdal.

I ordered 5 packs Seroquel depot 50mg online in their webshop, and things looked fine.

I went to pick it up, and I was the last customer serviced that day. It turned out that they did not have 5 packages available, and after some complaints from me, the pharmacist gave me a 150mg package of Seroquel depot, and 2 50mg packages of Seroquel depot, which was an OK solution, then and there.

However, I find it worrying that a pharmacy advertises, and makes it possible to order important medication online, and when you come to pick it up, it isn't available. I could've bought some packs before traveling, I could've had few packs left at home etc. - and it is an inconvenience that they don't have important medication - AS PROMISED.

I've read online that the maximum concentration of medication in the blood (and its effects and side-effects), can be different for a patient taking 2x150mg of Seroquel depot, as opposed to 1x300mg of Seroquel depot.

I've been on the same dose of Seroquel for quite some time, on 50mg tablets, and it has worked well, I'm in good shape.

However, I've also earlier experienced pharmacies (from other chains) having few packs of Seroquel available, so overall, it seems that a person that has emotional or cognitive problems, should keep a stash of medication at home. Which isn't a bad idea, because I see there are shortages of some medications from time to time.

Apotek1 is a commercial chain of pharmacies, and they get their rules & regulations from the state. They are basically an extended arm of the state healthcare system, when they dole out prescription medication.

I see that Seroquel depot is available in 50mg, 150mg, 200mg, 300mg, 400mg. But not 100mg.

I find that odd, and seeing that the dosage for various psychiatric illnesses start at 150mg a day, I'm entertaining the possibility that the medication is not available as expected, and the dose of each tablet is setup, so that the healthcare system can manipulate the patient in how they take medication, and how much.

I recently changed primary care physician, because the previous one was a bit of a disaster, and I've talked to my new primary care physician about wanting to reduce the amount of Seroquel I take, due to mental side effects, as well as long-term physical side effects.

Thinking about how eager my old psychiatrist Daniel Molyneux was to get me over on anti-depressants, and he, my old primary care physician Thor Digre, and NAV - the state welfare system, was negative to me using exercise as a way to manage and stabilize mood and manage physical health, I do entertain the possibility that they have setup the medication dosage, and the distribution system, so that they can fuck with the medication.

And if they fuck with the medication in such a way, what else do they see themselves are justified in doing? What else are they fucking with?

[Permalink] [By morphex] [Health (Atom feed)] [07 Apr 16:46 Europe/Oslo]

Mail to the police: An encounter near City Syd

from: Morten W. Petersen <morphex@gmail.com>
to: post.trondelag@politiet.no
cc: Sveinung Hestad Strand <strand@lovehjerte.no>
bcc: Jarle Petersen <jpeter@broadpark.no>
date: Feb 16, 2019, 7:39 PM
subject: An encounter near City Syd
mailed-by: gmail.com

Hi.

I'm writing this in English, as it is going on my blog. I'm too busy these days to write in Norwegian, and translate.

About 19:18 I left City Syd, and walked towards the bridge crossing the road. There I encountered two young guys maybe 16-18 years old, one with black hair down to the chin, and wearing a white sweater.

I walked straight forward, and was walking straight ahead, when the guy in the white sweater bumped into me.

It looked like those guys knew where they were going and determined, when they were coming out from around a corner. Some seconds later, I encountered a brown/black-haired girl on the bridge, she smiled at me like she was smart/flirting, and maybe talking on the telephone. She looked like she could be 16-18 years old, and had drawn the eyeliner way out on the sides. I think she had a black sweater.

This was a bit unpleasant/annoying, and as I mentioned earlier, I encountered someone else on the same spot not long ago.

Before that I was entering City Syd. and a guy was rushing to get through the door, just at the same time as me. It wasn't near closing time, and if I'd hazard a guess, that guy was a cop or some other official.

Regards,

Morten

[Permalink] [By morphex] [Misc (Atom feed)] [16 Feb 19:40 Europe/Oslo]

Something is fishy in the Norwegian healthcare sector

So, I've been a bit sick lately. I think it must have been one or more consecutive viruses, and it has given me sinusitis etc.

Anyway, I try to sleep as much as possible when I'm sick, so my sleep patterns are a bit off.

Sunday morning, I noticed that the prescription labels on some Avamys (anti-nasal-congestion spray) were different. The label was different for two packages I picked up the same day.

One was ordered online, and I thought I'd pick up another when I first was at the pharmacy.

The prescription for Avamys was issued by my previous primary care physician, Thor Digre. I do not understand why a prescription label would be different, for the same medication, picked up the same day.

I also recently changed primary care physician, because my relationship with Thor Digre had deteriorated, because I've for the last 5+ years, seen my kids less than 2 hours each month on average, and a lot of this is related to me being treated in the healthcare system.

Another part of that problem with seeing my kids, is the kids mom.

But, another point is that I've discussed the possibilities of allergies with Thor Digre, and I've taken several blood tests to check for allergies, all were supposedly negative.

So why my Avamys prescription suddenly says that it is for allergies, is a mystery to me. I had not seen my new primary care physician before the 12th of January, and I do not remember talking with Thor Digre where he said that I did in fact have allergies.

[Update..] See also my Instagram post with the images: https://www.instagram.com/p/Bs43UvcnLUe/

That Instagram post didn't turn out right, here's the original video which shows 3 different Avamys packages: http://blogologue.com/fishy/avamys.webm

[Permalink] [By morphex] [Health (Atom feed)] [21 Jan 08:15 Europe/Oslo]

Questioning mental health treatment techniques

So, I've been criticizing the system for a while, mostly because I have seen my kids less than 2 hours a month for the last 5.5 years, on average.

I was in court in 2015, and I'm very sceptical of the report the mental health professionals made. They did mention something about me being paranoid, and ironically, I slammed into the floor of a bus, 1 week before the result of that trial was beginning, me seeing the kids with supporting supervision.

I could have lost my life in that accident, and there was critique of me blogging about my life and related matters before that accident.

But a while ago, I heard a repetive voice/memory in my head, it felt like a memory, but at the same time, strangely repetetive.

And this happened a while after I've stopped going to therapy, and it was quite odd.

Do they with the aid of medications like Seroquel (Quetiapine), use hypnosis or something similar in mental health treatment, and is a person manipulated on a level it isn't possible to reflect over?

[Permalink] [By morphex] [Health (Atom feed)] [30 Dec 11:21 Europe/Oslo]

Python quick-fix of broken router

I have a router which seems to "take the day off" every once in a while, and this started after I filled up all 4 Ethernet ports.

Rebooting, the only fix I've found so far, fixes the problem, so that all 4 Ethernet ports start working again.

Rebooting the router gets boring and annoying after a while, so I decided to write a script to automatically reboot the router every hour.

That script is here:

https://github.com/morphex/netgear_reboot/

Didn't need to write any Python 2 or 3 specific hacks to make it work on either Python 2 or 3 either.

I was reading a Python 2-3 cheat sheet here:

http://python-future.org/compatible_idioms.html

And after getting used to using for example print(1), I like the idea of making things simpler and more consistent, an easier to learn syntax.

An added benefit is that I, and other who use two or more keyboard layouts, don't have to remember where the backticks are located on no_nb and en_us keyboard layouts.

[Permalink] [By morphex] [Python and web (Atom feed)] [15 Dec 15:51 Europe/Oslo]

Focusing on the simple things

This morning the internet became unavailable, after also being unavailable this weekend for several days.

So I decided to take a look at my demo board which does surveillance with a webcam using the surveil app, surveil is here:

https://github.com/morphex/surveil

Well, one thing lead to another (...), and I locked myself out of the demo board.

Which was all-in-all a good thing, because when I decided to make things easy for myself, I instead ran the surveil app on my laptop, with the webcam attached there.

I was a bit surprised and embarrassed when the surveil script which should have given a helpful error message on the wrong command-line arguments, instead failed with a TypeError, because I had forgotten a comma.

So I fixed that, and noticed that the contents of the surveil directory (images taken with the webcam that could contain sensitive data) was included in the commit.

This was a big deal, and I included the surveil and longterm data storage directories in the .gitignore file.

Finally, I made the video capture device a configure option, as I don't use the webcam integrated in the laptop, but rather /dev/video1 - which is the device the USB Webcam gets when attached.

A commit of these changes is here:

https://github.com/morphex/surveil/commit/42743c4f3785e1e9dd...

Last week I drifted off in an interesting conversation on the Python-User list:

https://mail.python.org/pipermail/python-list/2018-November/...

Which I guess shows that I could've spent the time thinking about an interesting concept on more pragmatic things, like testing the surveil script on another machine.

Finally, I'm looking for a way to do testing; and I'm wondering of a good way to test that the command-line interface functions as expected as well.

I guess that's more of a functional test, but maybe there is a package which integrates unit and functional tests / integration tests.

[Update..]

I found Integrate which I'll be testing. Bonus points for supporting Python 2.7, as I have for example the software powering this blog (Issue Dealer, issuedealer.com) using Zope 2 and Python 2.7.

[Permalink] [By morphex] [A surveillance app (Python tree here I come!) (Atom feed)] [07 Dec 14:52 Europe/Oslo]

An interesting lack of response from the Rana district court (Rana tingrett)

Long story short: I broke up with the woman I have two kids in 2013, and after I rejected a relationship with her in the spring/summer 2013, it got difficult to see the kids.

Court-appointed professionals (suggested by the lawyer of the kids mom?) found me to be very troubled, and the kids mom to "great". I was troubled, but I don't believe the kids mom to be "great". Putting your own needs in front of the kids needs is not great. Not letting me have information about the kids from school, healthcare etc. is not great. The latter borders on negligence in my opinion.

So, I was not satisfied with what the court appointed professionals (suggested by the kids mom) found in 2015, and recently I got a pretty solid proof that these mental health professionals were wrong. For 5 years, the kids mom has claimed that we had an agreement on expenses for seeing the kids, while not having an agreement on how often I should see the kids, or rather, how often they should get to see me.

As I state in this blog post:

http://blogologue.com/frames?url=http://blogologue.com/blog_...

It is illogical and unreasonable. So, on the 7th of November, I mailed these court-appointed professionals about this, and they pretty much will not respond to my request about the kids mom showing enough personality traits / behaviour to classify as a psychopath.

So on the 8th of November, I contacted Rana district court (Rana tingrett) about this. I did not see a reply.

Then I contacted them again on the 13th of November, no reply.

And I contacted them again today, and have as of yet, not seen a reply.

So it has taken over 4 weeks to give a response, and I have not seen any kind of response such as "we got your email, we're looking over things".

The PDF of this email thread is here: http://blogologue.com/rana_tingrett_ikke_svar.pdf

[Permalink] [By morphex] [Family (Atom feed)] [05 Dec 23:03 Europe/Oslo]