Peugeot demi-course from the sixties (PL50 or PX50)

07 Oct 2020 12:32 | Geplaatst door Marcel

Again a Peugeot with guidonnet brake levers, this time with French cantilevers.

This Peugeot demi-course is probably from the early sixties. The rounded logo was used untill the mid sixties, after that the letters became more square. The fenders with extra details are from the fifties and sixties. In the fifties the luggage racks were higher and with a different shape.

Compared to my transparant-green demi-course from the late seventies the top-tube is 1cm shorter and the stem is 1cm shorter as well.

Almost everything about this bike is original, except the handlebar tape and the saddle. It probably had white handlebar tape in plastic. The current tires are Kenda with brown walls. When they are worn out, it will be time for Michelins with white walls.
And yes, the bike has lots of patina :) It will never ever become a collectors item.

Again a Peugeot with guidonnet brake levers, this time with French cantilevers. This Peugeot demi-course is probably from the early sixties. The rounded logo was used untill the mid sixties, after that the letters became more square. The fenders with…
Read more...

Biological levers

06 Jul 2020 13:33 | Geplaatst door Marcel

We all know the function of anti-psychotics, they are used to decrease psychotic symptoms. They can be very effective against these symptoms, even though the experiences and opinions vary. The cause of these psychotic symptoms is often not clear and they are not targeted directly by these medications.

From more recent research it seems that people who are suspectible to psychosis consist of genetically different groups. Personally I have heard so many stories that I am convinced there exists a whole complex of causes and that every person who is suspectible to psychosis has a personal story.

My acute psychosis has been over for years. Since 2013 I only need to take a low level of medication for maintenance (around 1 mg Orap). I have always had the wish to be able to stop taking medication completely, but never managed that. More recently I got interested in a more biological approach; there might just be a chemical inbalance or hormonal inbalance that is causing problems.

Omega fatty acids

In my network of people with the same background there is someone who has been happy for years now with Omega fatty acids. They are available in fatty fish and in some other food sources, while also being available as supplement over the counter. They have a strong effect on proper functioning of the brain.
She tells that mostly because of Omega fatty acids she could stop taking anti-psychotic medication. She does have to put more focus on avoiding stress and also accept the fact that she is more vulnerable without medication, but for years now she has been stable without medication.

Anti-inflammatories

In 2014 (if I have the year correct) Iris Sommer gave a presentation about anti-inflammatories at the yearly day of Anoiksis. People who recently had a psychosis seemed to be responding well to simvastatins, which besides decreasing cholesterol also have an anti-inflammatory effect.
Me myself ended up with glycine. This amino acid is a natural part of the protein collagen, which is part of skin and connective tissue. In our modern diet this has mostly disappeared (who still eats chicken skin and chicken bone?). A shortage of glycine can result in inflammation, also in the brain, which can lead to psychotic symptoms.
My experience with glycine is very positive. When I let a teaspoon of it dissolve in a glass of water and I drink that, the next part of the day I feel my head clear up a lot. For some years now I take this twice a week.

Antihistamines

Histamine is an organic compound that has several functions in our body. With people who are suspectible to psychosis, histamine is more often inbalanced than in the general population.
Me myself had some physical problems and my search on the labyrinth that is called the internet seemed to point towards allergic rhinitis. I had an allergy for citrus fruit, a light form of post-coïtal asthma, together with itching and bad sleep. These problems can happen when the level of histamine is too high. I started with antihistamines, which are sold as hay fever medication or anti-allergy, in my case Cetirizine. It made me very drowsy, and the evening was the right time to take them. My psychotic and allergic symptoms decreased a lot, more than I had dared to expect. I have been using this now for a month and my dosage of anti-psychotics is lowered to an amount that was never feasible before, and the last month symptoms have only further decreased.
There are some anti-psychotics that have an antihistamine effect, like Zyprexa (Olanzapine) and Seroquel (Quetiapine). The drowsiness that I experience from Cetirizine is very similar to the drowsiness of these medications.

Taurine

Just likes histamine it is possible that Taurine is inbalanced, especially with people who are suspectible to psychosis. I have no experience with it myself and I don’t know anybody who has. I do think it can be a good supplement to try out.

Selfinvestigation

I think that for people who are suspectible to psychosis, it can be good to investigate if there is something here that might be good for you. I can imagine that besides these approaches, there might be more possibilities. The body is a complex machine where things can get inbalanced easily. If you can find such an inbalance and know how to improve that, you might improve your health.

Update October 2020

It is now a few months later. The antihistamine pills have done their work well. Problem with them is that they block the receptors, but they do not decrease the release of histamine. In the last two months, and with that aim in mind, I started taking supplements that might have that effect. Currently I don’t use antihistamine pills anymore. Supplements that I am using:

  • Omega-3 fatty acids, including olive oil
  • Calcium + Magnesium
  • Vitamin K
  • Zinc + Copper, in 8:1 combination
  • Manganese
  • Chromium
  • Melatonin (good for sleeping as well)

The melatonin I use daily, the other supplements only once or twice a week. When you have a reasonably varied diet you should only use supplements in a limited amount, I would think overdosing is unwanted.

I started taking Taurine, but I am not sure what the effects are :) It is somewhat similar as GABA, but I have the impression that I can tolerate it better.

I also started taking Tryptophan, which is a precursor to Serotonin. I was a bit worried about psychotic symptoms, but it turns out it is not causing them.

All together I am not in need of anti-psychotic medication anymore while also experiencing less psychotic symptoms. Profit :)

We all know the function of anti-psychotics, they are used to decrease psychotic symptoms. They can be very effective against these symptoms, even though the experiences and opinions vary. The cause of these psychotic symptoms is often not clear and…
Read more...

How to create a Custom Provider for XML Sitemaps in WordPress 5.5

20 Jun 2020 20:27 | Geplaatst door Marcel

WordPress 5.5 will be released in August 2020 and the feature plugin for XML Sitemaps has been merged this June. You can read about the original proposal on the development blog make/core.

This feature generates a sitemap.xml in the document root to make it more easy for search engines to index your website.
It will list all pages, posts, tags, categories and users. It also includes support for Custom Post Types and Custom Taxonomies. You can also extend it to index custom datatypes. That could be from a custom plugin that uses its own database table and its own functions to display that.

This blogpost is about creating a custom provider for your own data.
Please understand that for custom post types or taxonomies you don’t have to do anything.

First you create a custom provider, that will generate pagination and the url_list.

This is all for the Custom Provider that you need. I do hope you understand that you need to code your own pagination and your list of urls :)

Now to integrate it with the Sitemaps in WordPress 5.5 you can use 2 ways.
First option is to use a filter and add the instance of your Provider class.

The other option is to call a procedural function call in an action hook.

Both these hooks to register your custom provider should end up the same.

WordPress 5.5 will be released in August 2020 and the feature plugin for XML Sitemaps has been merged this June. You can read about the original proposal on the development blog make/core. This feature generates a sitemap.xml in the document…
Read more...

How to avoid global variables in PHP

19 Jun 2020 21:09 | Geplaatst door Marcel

In PHP variables are usually only available in the scope of a function or a class. For ‘easyness’ people sometimes (often?) revert to global variables. Variables can then become available in the global scope and can be pulled into any function where you might need it.

Problem is dat you might easily overwrite that variable. All you need is a typo like this:

And only because you use the = for assigning a value to the variable you have now overwritten it, while you only wanted to test it with ==.

A good way to not use global variables is to use static variables in a function that is both setter and getter. Like this function:

You can see here that if the variable $css_class_static was not set before, it gets assigned a value and saved as a static variable. The next time the function gets called, it is already set and it gets returned without having to calculate it again.
This function is both a setter (first time it’s called) and a getter (anytime it is called).
The advantage is that your variable is not in the global scope and is thus modularized and not easily overwritten.
Do pay attention to the fact that this static variable only exists during the same request, just like any global variable.

If you are using WordPress and want to go one step further you can even use the cache by using the wp_cache_add() and wp_cache_get() functions. Make sure to use keys that are unique to that data.
Also be aware that in most setups this data will only exist during the same request. Be sure to test this though, software like Memcached and Redis might be involved that make cache data survive requests.
Most software systems will have a cache system like this, and you might want to look into it.

In PHP variables are usually only available in the scope of a function or a class. For ‘easyness’ people sometimes (often?) revert to global variables. Variables can then become available in the global scope and can be pulled into any…
Read more...

Chess quote

06 Mar 2020 18:57 | Geplaatst door Marcel

Chess quote:

There are two moves you can make, one is good, one is bad. When you don’t look, you will play the bad move.

Chess quote: There are two moves you can make, one is good, one is bad. When you don’t look, you will play the bad move.
Read more...

Idea density in chess and programming

26 Oct 2019 19:20 | Geplaatst door Marcel

Ideas are a dime a dozen they say, and I can agree with that. Ideas can be cheap and easy, the execution is what matters. An idea can sound great in theory, but in practice it can turn out to be quite different.
Not every idea that gets thought of or spoken out loud will be executed. Most will remain not executed, and for some that might be better.

In chess most ideas can be executed. During a game you can think of hundreds of ideas. Inside the game itself you can execute some, and afterwards in the analysis all of them can be executed on the board, looked at and spoken about. You can talk them over with your opponent; what did you think here, how did you like this move, how would you respond, how do you see this position. You can also talk about the game with other people, be they clubmates or teammates. Positions are easy to put on the board, and the pieces are easy to make moves with and see a new position.
I would assume, the stronger of a chessplayer you are, the more ideas you can think of, make better decisions which ideas are the best, execute them on the board, and from the new position start again with that process. For stronger chessplayers this might cost less mental energy. I am only a clubplayer at a level of about 1500 ELO, and often in my games I see small series of weaker moves, where apparently I am not sharp enough.

I have wondered for some time about chess rating and people who program. I have the anecdotal experience that most people who play chess and are also programmer/developer, are more at clublevel, not master or grandmaster. Just today I thought of something that you could call idea density. In programming you can have maybe a hundred ideas on a day, but you can only execute maybe one, a few, but not often more than a handfull. I can imagine for a strong chessplayer, like around 2000 ELO and above, this can become a bit boring. They might enjoy seeing more ideas come to fruition, and choose a different kind of job that brings them more of what they enjoy and what they are good at.

Ideas are a dime a dozen they say, and I can agree with that. Ideas can be cheap and easy, the execution is what matters. An idea can sound great in theory, but in practice it can turn out to…
Read more...