Harmonique

Play radio

Notes

Links Worth Sharing #2

Aloha,

Here are some links I think are worth sharing. 

  1. A fascinating introduction to Decentralized Identity. Could we record in an anonymous way all of human history with such a system?
  2. De l’importance de la souveraineté technologique: Le siège de l’Union Africaine espionné par la Chine pendant 5 ans.
  3. This week was all about Chassol’s magnificent ultrascoresWooden Shjips’ psychedelic rock, and Canshaker Pi’s indie rock.
  4. A portable DNA sequencer for less than 1000$. How many years until we can all get one and get our DNA analyzed at home?
  5. If you are a freelancer, deciding what to charge a client is always difficult. HackerNews commentsare worth the read.
  6. Patchwork,  a decentralized messaging and sharing app built on top of Secure Scuttlebutt.
  7. Pursuing perfection is detrimental to you and your work.  Accept good enough, and show your work more often!

Thanks for reading!

Marc

P.S: You can receive this directly in your inbox. Drop me an email and I’ll send it to you every week.

posted by marc.in.space in
  • decentralization
  • freelance
  • rock

Links Worth Sharing #1

Hey,

Here are some links I thought were worth sharing. I will post next issues on Friday.

  1. If like me you struggle with focusing, you might be interested in Creative Boom‘s interview of Jocelyn de Kwant on mindfulness, simple living and the art of creative flow.
  2. My friend Flore recommended me N.E.R.D.’s latest album and while I don’t love the entire album, there are some excellent tracks in it. You can also check out Flore’s Boiler Room set.
  3. If dark hip-hop is more your thing, you might like Majin Blobfish – I Know You Need It.
  4. Zeynep Tufekci on how Free Speech is being weaponized. Censorship is not about suppressing the message anymore, but making sure you access other messages instead.
  5. Configuring nginx to serve a Symfony application under a subdirectory of another PHP application is non-trivial. Here is my solution.
  6. We can trick A.I. specialized in vision with psychedelic looking patches. We need more and more of that kind of work.
  7. Depuis quelques années, le pâté-croûte est devenu un art gastronomique reconnu.
  8. Never get high on your own supply, or why Social Media bosses don’t use social media.
  9. Deep learning is now used to generate fake porn with real celebrities and also, the Internet being Internet, putting Nicolas Cage where he doesn’t belong.
  10. A fascinating read about how the Dutch provided intel about Russia’s interference in US elections.
  11. How generative Music works.

Thanks for reading!

Marc

P.S: I you would like to receive this directly in your inbox, please drop me a mail and I’ll send it to you.



posted by marc.in.space in
  • deep fake
  • generative music
  • music
  • social media

Configuring nginx to serve a Symfony project in a subdirectory of a wordpress website.

It is surprisingly non-trivial to configure Nginx to serve two different PHP applications on the same domain, one being in a logical subdirectory. 

I spent a few hours scouring the web and trying different things. I ended up with this configuration, thanks from a source (of which I lost track. Sorry!) 

The configuration file defines a server listening for server mysite.com on port 80. The WordPress application is located in /var/www/wordpress and the Symfony application is located in /var/www/symfony. 

When a browsers requests the http://mysite.com/subdirectory resource, the request is passed to the Symfony app. Otherwise, the request goes to the WordPress app. 

server {
	listen 80;
	listen [::]:80;

	server_name mysite.com;
	root /var/www/wordpress;
	index index.php app.php index.html;

	location /subdirectory {
		root $symfonyRoot;
		rewrite ^/subdirectory/(.*)$ /$1 break;
		try_files $uri @symfonyFront;
	}

	location / {
		try_files $uri $uri/ /index.php?$args;
	}

	set $symfonyRoot /var/www/symfony/web;
	set $symfonyScript app.php;
   
  # This is for the Symfony application
	location @symfonyFront {
		fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
		include /etc/nginx/fastcgi_params;
		fastcgi_param SCRIPT_FILENAME $symfonyRoot/$symfonyScript;
		fastcgi_param SCRIPT_NAME /subdirectory/$symfonyScript;
		fastcgi_param REQUEST_URI /subdirectory$uri?$args;
	}

  # This is for the wordpress app
	location ~ \.php {
		fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
		fastcgi_index index.php;
		fastcgi_param PATH_INFO $fastcgi_path_info;
		fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_param REQUEST_URI $uri?$args;
		include /etc/nginx/fastcgi_params;
	}
}

I also created a public gist with this configuration file.

Links Worth Sharing #0

Hey,

I am starting a new regular series on this blog, where I will post links I think are worth sharing. I intend to not focus on something special, but to share what I loved reading, listening, watching (and maybe even cooking!).

Without further ado, here is the number zero edition!

  1. Million Short, a search engine where you can filter results from the top 100, 1000, 10k, 100k, or million websites. Great stuff if you’re tired to get results from the same big players.
  2. I never watched Star Trek before, but I really enjoy watching Star Trek: Discovery.
  3. Beyond the Bitcoin Bubble. Beyond greed mania, there is a new infrastructure being built right now.
  4. If you’re into authentic soulful house music, Lakuti’s latest Resident Advisor podcast might be perfect for you.
  5. At POLAAR, our producers curated an opinionated playlist with the best tracks from 2017.
  6. Paul Bocuse has died, and it was a sad day for the cooking world.
  7. Bitcoin’s Lightning Network is growing fast.
  8. Zeynep Tufekci is always relevant and her stance on the current state of security in the tech world is a must read.
  9. I find myself enjoying more and more this kind of experimental album. A brilliant work, blending world music, electronic music, and interviews.

Thanks for reading!

Marc

P.S: I you would like to receive this directly in your inbox, please drop me a mail and I’ll send it to you.