Giter VIP home page Giter VIP logo

oldhippo's Introduction

This project has been moved to https://github.com/dilawar/HippoIgnited . This is read-only repository.

NCBS Hippo

AWS scheduler cum even manager for NCBS.

Dependencies

  • Requires PHP >= 7.x
  • php7, php7-imap, php7-ldap, php7-imagick
  • mysql
  • python-pypandoc
  • sudo pip install mysql-connector-python-rf
  • pandoc >= 1.19.2.1
  • python-PIL (for background image processing).
  • python > 3.6 (Photography club scripts require it)

Optional

To train the NN with AWS abstract.

  • torch-rnn

Apache behind proxy

To communicate to google-calendar, apache needs to know proxy server. Write following in httpd.conf file

SetEnv HTTP_PROXY 172.16.223.223:3128
SetEnv HTTPS_PROXY 172.16.223.223:3128

How to setup google-calendar.

  1. Go to google-api console, and setup an API key. Download the key and store it in /etc/hippo/hippo-f1811b036a3f.json.

  2. Go to google calendar and add google-service account email in share calendar settings. Grant all permissions to new account.

  3. Following is the snippet to construct API.

$secFile = '/etc/hippo/hippo-f1811b036a3f.json';
putenv( 'GOOGLE_APPLICATION_CREDENTIALS=' . $secFile );
$this->client = new Google_Client( );
$this->client->useApplicationDefaultCredentials( );
// Mimic user (service account).
$this->client->setSubject( '[email protected]' );
$this->client->setScopes( 'https://www.googleapis.com/auth/calendar');

oldhippo's People

Contributors

dilawar avatar

Watchers

 avatar  avatar

oldhippo's Issues

Remove invalid AWS requests

Once requests are approved or passed the time, they must be made ACCEPTED/INVALID respectively and should not show up in AWS page.

If a slot is opened up, let other confirmed speaker 'claim' it

If for some reason, a AWS slot is open; the speakers scheduled after a week from this slot, should be able to claim it. If that slot could not be filled by other speaker, the slot is lost.

Should the original speaker on this slot looses her turn for the whole year?

After scheduling, to sure that not all 3 slots are occupied by freshers or seniors

Once the schedule is computed, reassign to make sure the following

  • Not all three slots are filled by freshers.
  • Not all three slots are filled by students with more than 2 AWS.
  • At least 1 slot is filled by student with <= 1 AWS whenever possible.

To do so, I can construct one more network flow graph with the results of previous computation and assign weight to satisfy above three.

PI names in AWS drop down menu

  1. Can there be a custom option for TCM members outside NCBS/inStem campus?
  2. The PI names are ordered alphabetically, some by name or some by surname. But the name is always displayed as first name, last name. It might be a little difficult to find some names like this.

For example:
Sandeep Krushna
Sanjay Sane
Apurva Sarin
Shachi Gosavi...

Sunil Laxman
Mukund Thattai
Tina Mukherjee

Navigation bar

Create navigation bar out of home page. Currently it requires many click from ADMIN to navigate her way in Hippo.

Feature request: Academic Process Status

I was wondering if it is possible to implement status of few academic process in Hippo. For example, for me I have to constantly inquire with academic office regarding status of my thesis (e.g. is it approved by TIFR board, it is in review, are there comments etc). Similar milestones or processes can be seen throughout year like comprehensive exams, TCM and their reports, credit requirement, fee submission forms etc. Acad office can update such updates on Hippo and student can check its status and further requirements (if any). One can also link all forms associated with such task(s) along with it if needed.

Logo Design

Hi, concrats for your project!
Do you have a logotype? If you need one I can do it for free, I love to contribute to opensource projects, so if you want one just say it, Im here to help!

Greetings!
Nuno Jesus

Institute details does not update

I tried changing/updating my institute details in my profile (user_info.php). They are not updating. I always get blank space in Institute name field.

One more bug

While downloading pdf version of previous talk !

bug

Auto synchornization using API key

Currently ADMIN has to login before synchronizing the calendar. This should be
done automatically. Instead of JSON oauth, use API key.

In case of recurrent boking

  • If some dates are in conflict, let the user know in his email (as conflict).
  • If someone books in advance on a slot where labmeet/JC are known to happen. Raise a warning for both admin and booking party.

Fatal error in statistics page

I am getting following exception in "https://ncbs.res.in/hippo/statistics.php" page,

Fatal error: Uncaught TypeError: Argument 1 passed to get() must be of the type array, boolean given, called in /var/www/html/hippo/database/helper.php on line 2779 and defined in /var/www/html/hippo/methods.php:251 Stack trace: #0 /var/www/html/hippo/database/helper.php(2779): get(false, 'pi_or_host', '') #1 /var/www/html/hippo/statistics.php(324): getPIOrHost('ashwinig') #2 {main} thrown in /var/www/html/hippo/methods.php on line 251

untitled

HTML tag support in talk title

Currently I can't add superscript or subscript while writing talk title. Maybe some HTML tags should be allowed in the title.

Tweaks in Hippo

  • Fix google calendar link.
  • Generate pdf of all events, currently only last one is being generated.
  • Different email for helpdesk queue.
  • Don't show admin any button unless request is selected.
  • APPROVEED -> APPROVED
  • Change background of public events in the allevents.php page.

Email interface

Following events must be notified

  • When a request of booking is created. Receiver: user and bmv_admin.
  • When a request is approved/rejected. Receiver: user.
  • When a event is updated. Receiver : user.
  • When AWS is scheduled (3 months in advance). Receiver: USER.
  • When user create a request to modify his AWS date: AWS_ADMIN.
  • When AWS_ADMIN reject/approve request for modification. Receiver: USER.
  • Each Friday, send email to tcm members and PI.
  • Add Reply-To header in emails.

Test repeat pattern

Currently repeat pattern does not create a request of the very next date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.