Posts

Showing posts from December 4, 2018

nginx: rewrite regex to match URL without digit at the end

nginx: rewrite regex to match URL without digit at the end I'm trying to set up a rewrite rule to accomplish the following: /base/first -> /base/search/first /base/first /base/search/first /base/first/second -> /base/search/first/second /base/first/second /base/search/first/second And of course /base/search/first shouldn't redirect to /base/search/search/first /base/search/first /base/search/search/first first and second are placeholders for strings with alphabetical characters and dashes (no digits). first second However, I don't want to rewrite URLs like the following: /base/first/second/third/123 123 is a placeholder for a three-character digits-only string 123 I've tried the following location block and I can get the first two requirements, but it's also capturing URLs that end in 123 123 location ~* ^/base/(?!search)[^d]+$ rewrite ^/base/(?!search)(.+) https://$server_name/base/search/$1 permanent; What is purpose of [^d]+ ? Did you try

Opentk shows out of memory exception - OPENGL

Image
up vote 1 down vote favorite I'm completely new to openGL. I have to show two images side by side using shader code. It shows properly using below code. But throws an out of memory exception and the entire system gets hangs. Can you please check my code to see what might be the cause? I think the problem is that I'm not properly deallocating memory from openTK textures after I don't need them, so I'm generating massive amounts of images, but I don't know how to fix this. public partial class Form7ImageOnly : Form string file = "opentksquare.png"; string file1 = "img_smile.png"; int program; int vertShader; int fragShader; int buffer; int positionLocation; int positionLocation1; int positionLocation2; int texture; int texture1; int ScreenWidth; int ScreenHeight; float vertices = // Left bottom triangle -1f, -1f, 0f, 1f, -1f, 0f, 1f, 1f, 0f, // Right top triangle 1f, 1f, 0f, -1f, 1f, 0f, -1f, -1f, 0f ; public

Metropolitan Museum of Art

Image
Clash Royale CLAN TAG #URR8PPP Not to be confused with Museum of Modern Art. The Metropolitan Museum of Art Location in Manhattan Show map of Manhattan Metropolitan Museum of Art (New York City) Show map of New York City Metropolitan Museum of Art (New York) Show map of New York Metropolitan Museum of Art (the US) Show map of the US Established April 13, 1870 ; 148 years ago  ( April 13, 1870 ) [1] [2] [3] Location 1000 Fifth Avenue New York, NY 10028 Coordinates 40°46′46″N 73°57′47″W  /  40.7794°N 73.9631°W  / 40.7794; -73.9631 Coordinates: 40°46′46″N 73°57′47″W  /  40.7794°N 73.9631°W  / 40.7794; -73.9631 Visitors 6,692,909 (2017) [4] Director Max Hollein Public transit access Subway : ​ ​   to 86th Street Bus : M1, M2, M3, M4, M79, M86 SBS Website www.metmuseum.org The Metropolitan Museum of Art U.S. National Register of Historic Places U.S. National Historic Landmark Elevation by Simon Fieldhouse Built 1874 ; 144 years ago  ( 1874 ) Architect Richard Morris Hunt; also C