I need to pull email size for each email in a sendmail log, then total them up with the total size and total number of emails

The size is simple to find after size= i can find the size and put it to a file but removing everything but the numbers and then summing it with the total numbers all in one file is just not coming to me.

right now i am using this;

 grep 'size=' /var/log/maillog-2019* | awk ' { print $  8 }' > output.txt  

Could a regenerating troll feed enough stirges to live off them?

We are working on creating a room that is a self-sustaining ecosystem (like ecosystem aquariums but with creatures) that is an obstacle for PCs to pass (as part of an entire “Island of Dr. Moreau” filled with these ecosystems.)

Our current thought is a mad wizard who has set up a room with hundreds of stirges fed by a regenerating troll in a box that only allows as many stirges to feed on him at once as it can regenerate. Ideally, the troll could occasionally grab and eat some of the stirges as well.

The question we have is what guidance is there anywhere across the game or previous adventures or interviews with designers to calculate any or all of the following:

  1. The amount a creature needs to eat each day to survive.

(This would give the number of stirges the troll could support and the number of stirges the troll needs to eat per day.)

  1. Whether there is any known gestational period for stirges

(This would allow us to answer the question whether or not a troll could actually survive on something feeding on its regenerating blood – and allow us to calculate the equilibrium state for number of stirges supported.)

We use DnD to teach kids math, biology and physics. If we can make scenarios that teach various principles while also fitting with existing game guidance – it is a double win.

Of note, the underlying assumption in this scenario, of course, is that a troll’s regeneration has a magical aspect to it given how fast trolls regenerate and given that there is nothing describing how much they have to eat based on what they regenerated. (Proportional eating would be required if regeneration was a purely physical phenomena.)

How to store passwords and be able to reuse them later

Lets assume the following scenario

I am writing an application where you can log in and then provide login details to another system ie your email account, FTP account etc
The application then reuses those login details later when it tries to log into those services to perform a certain task. Those tasks are performed in the background via a cron script and the user does not want to have to log in every time to provide the login details to those services.
This means I need to store the…

How to store passwords and be able to reuse them later

Is Figma or Photoshop better for designing mobile apps and handing them off to development?

I’m a UI designer in a large organization. I’m using Figma to design an app and need to hand off the design to the developers, who are used to receiving Photoshop files and do not know Figma. I’m trying to push for Figma but want to know if developers can get what they need to build the app from Figma, or if I absolutely need to transfer everything into Photoshop and hand it off to them that way.

Can you cast silent image around someone, blinding them if they fail their save? [duplicate]

This question already has an answer here:

  • How can Silent Image be used to obscure vision in combat in 5E? 5 answers

I am playing as a Warlock with the Misty Visions Eldritch Invocation. I see a group of enemies, and I cast Silent Image to create a 15 x 15 rock in the space(s) that they are occupying.

If they succeed on their saving throw, they’d be able to see through it, but if they fail, they should be blind? Shouldn’t they?

Maybe they see rock right in from of their eyes, what if I cast an image of Obsidian?, or Basalt? or Black Concrete? Can I blind them, or make them think they are blind?

Misty Visions Description:

You can cast silent image at will, without expending a spell slot or material components

Silent Image Description:

You create the image of an object, a creature, or some other visible phenomenon that is no larger than a 15-foot cube. The image appears at a spot within range and lasts for the duration. The image is purely visual; it isn’t accompanied by sound, smell, or other sensory effects.

You can use your action to cause the image to move to any spot within range. As the image changes location, you can alter its appearance so that its movements appear natural for the image. For example, if you create an image of a creature and move it, you can alter the image so that it appears to be walking.

Physical interaction with the image reveals it to be an illusion, because things can pass through it. A creature that uses its action to examine the image can determine that it is an illusion with a successful Intelligence (Investigation) check against your spell save DC. If a creature discerns the illusion for what it is, the creature can see through the image.

Count certain items in list and add them

I have a sharepoint list from which I need to create a flow to generate an Email containing the amount of times the person that the Email is being being sent to is on the list. Additionally one column contains a number which is attributed to that person. This number needs to be added to every subsequent number attributed to that person.

I.e. the list below should result in an email stating: “37466 You had a WDO 2 times with a total number 4 days”

I am looking forward to your help!

Many thanks,


enter image description here

Thread titles disappear from “New Posts” after visiting them

When I go to New Posts and click on a thread title, that thread title will not be there if I click on the New Posts button again.

I've also noticed that it only happens to one page threads. Threads that have more than one page do not disappear UNLESS you click on the last page instead of the thread title. Then if you click on the New Posts button again it will be gone from the list.

Is it a feature or a bug?

PS I believe thread titles should just stay in the list after a user visits them.

Having to chmod my samba shares to 0777 feels wrong just to get them to be writeable. Is this really necessary?

Since setting up my samba shares I have been unable to write to either of them. My config:

[minecraft]         path = /opt/minecraft         writeable = yes         browseable = yes         read only = no         guest ok = yes         create mask = 0777  [www]         path = /var/www         writeable = yes         read only = no         browseable = yes         guest ok = yes         create mask = 0777 

I am unable however to write to either of these shares from a Windows machine. I have the folders themselves (and all subfolders) at 755, but still nothing.

The only thing that has allowed me to get the shares to be writeable is making them and their subfolders 777 and that just feels wrong.

Am I missing something?