Postgresql how to trim specifically either front or back of emoji - postgresql

In my database i have these emojis here
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
🎆 Limited Stock & Specials 🎆 (Must be 21 to purchase)
I want to get rid all of the emoji and the (Must be 21 to purchase)
how can i do this with postgresql script.
the table is called restaurant_items and the column is called dish_type.
theres more data that is like this in my data base but i want to learn how to deal with this first.
I tried using trim but it since its in the middle it would trim either all of left or just the emojis on the right
thanks

Related

Ability to load new samples on echart zoom actions (Zoom in & zoom out)

For the time series chart, on the initial load, we are displaying data aggregated for every 1 hour. when the user zoom in( for example for 4 hours) we see only 4 samples, instead, can we pull more data from the server which is aggregated for lower interval like 30 or 15 and display it in the chart when the user zoom in, display higher interval data on the zoom out.
On zoom in display lower intervals new data like more samples.
On zoom out restore the data which was already available.
Checking if this feature is available or not.

Google Sheet - Prices Chart Presentation

For a same product I would like to display the various prices on the same line using Google Sheet Chart.
Prices I have
18.5
20.9
21.2
17.5
15.8
21.8
22.0
25.3
27.3
32.8
avg: 22.34 min: 15.82 max: 32.80
How I would like to display it:
Thanks for your help.
Put your data in a scheme similar to the attached screenshot, then apply "insert chart", then change the chart type to "Stacked Bar", and apply data labels to every series.
Then if you insist to have the exact graphic result, you can change the colors to gray for all series (unfortunately that requires as many clicks as there are series) and selectively turn off the data labels for all except min, max and avg series (again, I'm not sure if it's possible to do automatically).

Tiles at zoom > 19 features are split / broken

In our project, we have a max zoom of 22 where the map is displayed through Leaflet.
Untill 18th zoom level, the tiles are formed properly.
Beyond that level , the map shows split routes as shown in attached figure: (The below link is when we have zoom level as 19 and so on)
Screenshot
If I use maxNativeZoom as 18 and max zoom as 22, zoom happens
but it blurs the tiles.

google bar charts bars missing - big difference in values

I'm doing a graph using google bar charts to show sales revenue for branches all over the world.
Revenue is displayed in various currencies. Sometimes there is a big difference in the numbers due to some weaker currencies that ridiculously low Eg 1 billion zim dollar = 1 USD.
So when bars shows, you will see massive bar for zim dollar and cannot see the USD one... If you hover over the USD key on the right of the graph it highlight the small line that represents USD
But there is no way to hover over the bar itself to at least see the value. it's just too small... like 1 pixel or even less.
Is there a way to set a min height of the bar so that at least one can hover over it?

508 Compliance - Color Contrast

Lately a 508 compliance issue came up. I started reading about some WCAG and 508 guidelines.
We see were the suggestions about at number ratio is talked about :
http://www.socialsecurity.gov/accessibility/checklists/word2010/colorAndContrast.htm#collapsible=highColorRationale
http://www.w3.org/TR/WCAG20/
1.4.3 Contrast (Minimum): The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for the following:
Is making contrast to at least 4.5.1 MANDATORY per the WCAG, to MEET 508 ... or is this a grey area where "compliance" vs. "accessibility" is the question?
First of all, all WCAG and 508 guidelines are mandatory. Failure of one guideline means that your document doesn't conform to the specifications. Where people get tripped up is that some guidelines are very subjective, for example reading level and cognition. You can easily argue that text is or isn't readable by different people making compliance in some areas an exercise in legalese.
However, color contrast is one of the few areas in the WCAG and 508 guidelines that is very objective. Color contrast is defined by WCAG as:
(L1 + 0.05) / (L2 + 0.05), where
L1 is the relative luminance of the lighter of the colors, and
L2 is the relative luminance of the darker of the colors.
So there is an algorithmic way of determining what the contrast ratio is, and additionally required contrast values are unambiguously stated: either 4.5:1 or 7:1 for AA or AAA compliance respectively.
Additionally, there are even tools available that provide this contrast value for you based on the colors themselves.
In conclusion, no, this isn't a grey area, to meet 508 or WCAG compliance you must have adequate color contrast for all of your text.