L'idée de gamification des idées est vraiment super. L'idée de pouvoir liker les idées et commentaires des autres aussi. Ca pousse et encourage la créativité, c'est très stimulant.
Voir :
| cd C:\app\salad74\virtual\admin\DIDI3\wallet | |
| orapki wallet create -wallet C:\app\salad74\virtual\admin\DIDI3\wallet -pwd WalletPasswd123 -auto_login | |
| orapki wallet display -wallet C:\app\salad74\virtual\admin\DIDI3\wallet | |
| orapki wallet add -wallet C:\app\salad74\virtual\admin\DIDI3\wallet -trusted_cert -cert SLACK.cer -pwd WalletPasswd123 | |
| orapki wallet display -wallet C:\app\salad74\virtual\admin\DIDI3\wallet |
| # in case you are in a container database, set some option for user creation | |
| alter session set "_ORACLE_SCRIPT"=true; | |
| create user slack identified by slack; | |
| grant connect to slack; | |
| grant create session to slack; | |
| grant resource to slack; |
| begin | |
| dbms_network_acl_admin.create_acl ( | |
| acl => 'utl_https_slack.xml', | |
| description => 'Slack HTTPS Access', | |
| principal => 'SLACK', | |
| is_grant => TRUE, | |
| privilege => 'connect', | |
| start_date => null, | |
| end_date => null | |
| ); |
| create or replace | |
| procedure slack | |
| is | |
| req utl_http.req; | |
| res utl_http.resp; | |
| -- !!! here PUT YOUR WEBHOOK's url !!! | |
| url varchar2(4000) := 'https://hooks.slack.com/services/THE_REST_OF_YOUR_SECRET_URL'; | |
| buffer varchar2(4000); | |
| content varchar2(4000) := '{"channel":"#general", "username": "sqlplus*", "text":"Hi my tablespace if full :bangbang:"}'; |
| set serveroutput on | |
| call slack(); |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package com.github.adriens.open.data.fromages; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.ResultSet; |
| // Create new configuration that specifies the error correction | |
| Map<EncodeHintType, ErrorCorrectionLevel> hints = new HashMap<EncodeHintType, ErrorCorrectionLevel>(); | |
| hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H); | |
| QRCodeWriter writer = new QRCodeWriter(); | |
| BitMatrix bitMatrix = null; | |
| ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
| try { | |
| // Create a qr code with the url as content and a size of 250x250 px |
Ce serait très intéressant, via de l'open data (csv à priori sreait parfait), de disposer des données d'attente :
Avec des données ouvertes de la sorte, il serait possible de jouer avec les données, de produire du