Looking for social medias (like discord / matrix-made stuff / …) that would accept messages formatted in HTML/CSS

as the title suggest, I’m looking for a social media that allows users to send messages formated in HTML/CSS. Possibly having a desktop/smartphone version instead of just a web app.

example of usage:

  • sending something like that (in an alternative HTML editor for instance):
<div style="background-color:black;color: white; border-radius: 5px;">
    <p style="padding:5px">hi, this is a picture of a duck</p>
    <img src="https://i.ytimg.com/vi/gAGLWUvobZY/hqdefault.jpg" width="100%">
</div>

would render the message on the screen of the receiver as formatted.

I really don’t know where to search such things, I looked on alternativeto.net but didn’t found a thing even close to that,

PS: I’m aware that because of the security issues that may come with it and the lack of potential users, this thing might simply not exist, but with all these things being made with electron, I think it’s just a matter of time before someone makes it.

install – What directories Photoshop and other Adobe stuff, save their stuff or macOS in their behalf?

I am tryin to clean all references that may exist on my disk, to an app I have that is not behaving correctly, so I can reinstall the app.

Photoshop is behaving weird to me. I have tried to reinstall it, but the installation fails. Some files may be stored somewhere else on the mac, with the wrong permissions or corrupted, preventing the installation to run.

So, I have researched all possible directories Photoshop generally changes during install or usage and erased all content I could find related to Adobe inside these directories:

/Applications
/Library/Application Support
/Library/LaunchAgents
/Library/LaunchDaemons
/Library/PrivilegedHelperTools
~/Library/Preferences
~/Library/Application Support/... the respective app folder inside this
~/Library/LaunchAgents
~/Library/Containers/ ... stuff inside this
/var/folders/ ... they put stuff here

What other directories do you know?

I am comfortable with terminal.

How pathetic is it that cons are pulling this pedophile stuff out that they know isn’t true? They have nothing solid against Biden do they?

It’s beyond pathetic to accuse someone of that, when you have zero proof. 

all they have…..are endless PHOTO OP pictures  , from ceremonies of swearing new congress people in………where usually the families are invited for a photo op. 

Kids are naturally shy around strangers, and surely act a little awkwardly  when posing for staged photo’s in a room full of adults……….being treated like props basically. 

Every photo they use….is from such an occasion. 

Does anyone really believe  Biden  “molested” any of these kids,  in a room full of people and photographers,   right in front of their parents? 

It’s pathetic how they take a few awkward poses from kids out of context  to imply that Biden “Molests”  kids. 

But that’s all they have………their inner hatred and pathetic-ness  to smear a good, decent man,  who served for 44 years without a whiff of scandal. 

If you use Spring Dependency Injection, does the unit test require some jumping stuff?

I totally understand, I think, how injecting a class dependency allows that dependency to be mocked and the class to be tested with the mocked version.

What I'm not sure of is whether you're using @autowired to create this DI and write a Junit test. Will it be okay to expand the class? That is, is the annotation simply ignored and the constructor can be used normally?

If so, is there ever a case where you want to use Spring in the unit test to inject the bill? It seems to me that when you write a unit test, you want it to be as simple as possible and that you don't include Spring if you could.

SQL Server 2012 – stuff with XML path

DECLARE @v NVARCHAR(MAX)=''
select @v =STUFF((SELECT CASE WHEN MeterID=0 THEN '' ELSE CONVERT(VARCHAR(50),MeterID) + ',' END AS (text()) 
                        FROM (SELECT DISTINCT mr.MeterID FROM #FilteredMeterIDs mr WHERE mr.apartmentID = fmr.apartmentID)m
                        FOR XML PATH,TYPE).value('(.)(1)','NVARCHAR(MAX)'),1,0,'')
                    FROM #FilteredMeterIDs fmr
select @v

Result:
181,834,

BUT if I use query below there is NULL as a result,

DECLARE @v NVARCHAR(MAX)=''
select @v =STUFF((SELECT CASE WHEN ISNULL(MeterID,0)=0 THEN '' ELSE CONVERT(VARCHAR(50),MeterID) + ',' END AS (text()) 
                        FROM (SELECT DISTINCT mr.MeterID FROM #FilteredMeterIDs mr WHERE mr.apartmentID = fmr.apartmentID)m
                        FOR XML PATH,TYPE).value('(./text())(1)','NVARCHAR(MAX)'),1,0,'')
                    FROM #FilteredMeterIDs fmr
select @v

Result:
ZERO

I used "/ text ()" to improve performance. What's the problem can anyone tell me ?!

I'll be 18 when the next elections are coming up. Who should I choose to get free stuff?

Nobody. The bottom line is: nothing is free. You will be one of those American taxpayers and pay for the rest of your life for the college education and college education of everyone else. Due to the interest of irresponsible politicians in Washington, both Republicans and Democrats, public debt continues to rise sharply.

Beginners – Fantasy Game Inventory – Automate the boring stuff with Python

Below is my code for the Fantasy Game Inventory problem in Chapter 5 of Automate the boring stuff with Python. Can I do anything to make it cleaner or more efficient?

The code begins with a dictionary "inv" containing the player's current inventory and a list "dragon_loot" containing the items of the dead dragon. The goal of the code is to combine the list with the dictionary while increasing the number of duplicate elements.

As a note, I use the startup list from the previous question, simply because it seems impossible to kill a dragon without owning a weapon 🙂

You create a fantasy video game. The data structure for modeling the player's inventory is a dictionary in which the keys are string values ​​describing the item in the inventory, and the value is an integer value indicating how many items the player has. For example, the dictionary value means {# rope #: 1, F torch #: 6, Gold gold coin #: 42, Dol dagger #: 1, & 39; # 39; Arrow #: 12} that the player has 1 rope, 6 torches and 42 gold coins and so on.

Fantasy Game Inventory dictionary feature list

Imagine the spoils of a defeated dragon are represented as a list of strings:

dragonLoot = ('gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby')

Write a function named addToInventory (inventory, addedItems), where the inventory parameter is a dictionary that represents the inventory of the player (as in the previous project), and the addedItems parameter is a list like dragonLoot. The addToInventory () function should return a dictionary that represents the updated inventory. Note that the added element list may contain multiple elements of the same element. Your code might look something like this:

def addToInventory(inventory, addedItems):
    # your code goes here

inv = {'gold coin': 42, 'rope': 1}
dragonLoot = ('gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby')
inv = addToInventory(inv, dragonLoot)
displayInventory(inv)

The output of the following code is:

Inventory:
1 rope
6 torch
45 gold coin
2 dagger
12 arrow
1 ruby

Total number of items: 67

Thank you in advance. I've learned a lot from the comments I received on my previous questions!

from collections import Counter

# players current inventory before killing dragon
inv = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}

# items from the slain dragon
dragon_loot = ('gold coin', 'dagger', 'gold coin', 'gold coin', 'ruby')

# this function prints the players inventory in a list and reports the total items
def display_inventory(inventory):
    print("Inventory:")
    item_total = 0
    for k, v in inventory.items():
        print(str(v) + " " + str(k))
        item_total = item_total + int(v)
    print("nTotal number of items: " + str(item_total))

# this function adds the dragon's stuff to the players inventory
def add_to_inventory(inventory, added_items):
        added_items_dict ={i:added_items.count(i) for i in added_items}
        inv = Counter(inventory) + Counter(added_items_dict)
        return inv

inv = add_to_inventory(inv, dragon_loot)
display_inventory(inv)