How do I enable an autoresponder on a group using a headless script? - google-groups

When my support staff home they have to enable the auto responder every single day. I want to automate this. I'm really not picky as to how to do this. The scripts interface doesn't seem to allow this and the restful API seems to only work interactively and not on a group. Any advice as to where to start?

Related

How to automate MacOS OS user interaction tests?

At work I am setting up a product that sets up and manages security policies on MacOs systems among others. Unfortunately I could not find in the documentation of this product exactly which OS mechanism is used for the application and local management of the policies, but I think for my question this knowledge is not essential.
I am looking for a solution to test the policy itself. Currently, I have to manually log in to the test system and manually call various apps and services to check if the policy blocks or allows the correct actions. Are there any tools/libraries in the Mac world to automate this task?
For GUI testing I found this library by a quick google https://github.com/google/EarlGrey/tree/earlgrey2. But I don't know if it is suitable for testing any apps/services in the sense of my use case. For example, would I have to find all the window ID's etc. by hand before I can write the test? Can I use them in my scenario at all?
Are there any other Swift/Objective-C libraries for this kind of tests? Or maybe even some in Ruby?
It would be ideal if this solution could also be integrated into a CI/CD pipeline.
Thanks a lot for your help!
You might be able to make your own set of test scripts based on some existing helper tools and scripts (potentially many different ones).
Some pointers are:
AppleScript - it allows automating GUI apps among other things
Automator and analogs
Alfred
For CI if you are able to wrap running your manual workflow in a shell script, that produces a well-defined output (an expected screenshot or a text file), then it could be a base for your test suite. This test suite itself could be coded in any language as long as it has access to the shell (Ruby, Python, etc. including bash/zsh itself).

Making User Interface smart in eclipse based applications

I am currently developing a desktop application based on eclipse.
Currently the user needs to perform many redundant actions like doing step A in View 1 then doing step B in View 2 then repeat. I am wondering if anybody knows a solution that records/recommends user actions in eclipse based applications.
Maybe based on the history much like the web based solutions.
Any help would be good.
Thanks.
1)
Do you want to record the user clicks (actions)?
If so eclipse provides a Location tracker, so you can analyse the use cases from the field.
OperationHistoryActionHandler
2)
Do you want to have a smarter way the user uses your tool?
Think about using Wizards. in a Wizard you can have a defined number of execution steps. The user does not need to search some button in a view.
With a Wizard a specific execution flow is very clean and good to understand.
3)
As Jonah mentioned you can use cheatsheets as well.
We once did something similar, where we had a rather big user interface that had heaps and heaps and heaps of different functionalities. Our solution was this:
We abstracted all actions into commands. They were all implemented in a way that they can be cascaded, undone, redone etc. See for example IUndoableOperation
The commands had conditions that made it easy to decide if one could combine these commands.
All commands have an ID and can be easily identified
We then continued to integrate our own run configurations. We added a UI that gave the user the option to cascade multiple commands into one big one. For example, A user wanted to create a new file, apply a template, generate some graphs, export them into a given location etc, the user would create a run configuration adding those commands together.
That way we kept the UI comprehensive but gave the expert user the ability to create their own workflow based on what they do every day.
Our users liked that quite a bit.

Programmatically add an alert for a user in Sharepoint Online (Office 365)

We have an Office 365/Sharepoint Online instance, and a complicated Ticket system that we've migrated there. However, we don't seem to have the ability to set up "Everyone" to receive alerts when they're listed in a ticket (via custom fields). We could manually add each and every person in the company to a list view to accomplish what we want, but that is both tedious and silly. I've done some research, and talked with a consultant, and it appears that we may not have access to create Alerts any other way than manually.
Does anyone have any insight into this issue? I don't care if the solution is .NET, Powershell, or even fancy javascript. Any help would be appreciated.

First web server questions

Just looking for some help/suggestions with this. I require my own server for an upcoming project that will be hosting users websites. I want to build a control panel the user can log into and modify their website which will be stored elsewhere on the server. This all seems easy enough, It's just managing domains and emails that confuse me.
What should I look for to manage domain names and point them to the correct website and also what would be the best way to manage email accounts/set up new ones etc. I want to avoid cPanel/WHM if possible, I'm looking to control most things through the control panel I will be building. So any suggestions on this would be useful as well, as I will be wanting to add email accounts through php (Can be done using a shell I assume?).
I will also be wanting to measure bandwidth used on the websites contained in each users directory, any suggestions on making this possible?
I'm really looking for some suggestions on what software to use to set this up, any advice would be really helpful!
Thanks,
Graeme
It sounds like you've got a lot of creative room. May I suggest a web framework? Django. With it you can build out a nice control panel, it's template system is clean and concise. It's also based on Python and thats why I suggest it. If there is a python module for it, you can use it in Django... so things like altering, creating, etc. local data/files is a breeze. you simply us Python (you can even forget it's "django"), crunch your data and then spit it out (into django... out to templates.. to display to the user).
You'll likely want AJAXY biznazz, their is a nice Django App for that, Dajax. Django has a rich and helpful community and tons of resources. Just hop on GitHub.com and search for Django, You'll find tons of stuff.
Im building a DNS Control Panel with it. Which sounds like a minimal version of what you're doing.

web applications tend to have a admin panel?

i wonder if large web applications like twitter and facebook have admin panels to handle CRUD for users, posts, images, themes and so on just like in CMS like drupal?
so programmers have to code the front for the regular users AND back for the administrators?
if i develop an web application is it recommended that i also code the admin part? or is it unnecessary since i can handle it all directly in mysql and by editing php scripts directly?
share your thoughts!
thanks
This question is almost too open-ended to be answered here. But from my experience, most web applications of any scale need administrative capabilities, and a lot more than just basic CRUD, in the sense that there may be business logic that applies to how fields may be updated, and records may have interdependencies. As a web application developer, you are often responsible for both the front-end functionality and any administrative interface as well. If anyone other than a web technologist (i.e., someone who CAN just jump into the SQL and PHP) needs to make updates, you'll quickly find that admin interfaces become an essential part of the site, not just a nice-to-have.
If you have particular admin functions which are separate from general functionality, then you ought to provide one. Dealing directly with the database and scripts is a pain, and prone to mistakes. Many web frameworks, however, will automatically generate rudimentary admin functions, which makes the task of providing a complete set much easier.
You'll usually need an administrative interface for your web application unless you or another user with coding/database/SQL expertise handles the actual administration of the web application.
Usually the appointed administrator of the web application would prefer to use an administrative interface simply because it's faster and less error-prone to update the database/content through it. Not all administrators possess the necessary skills or time to interact at the database or code level of the application when the site needs updating.