This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some hacks to demonstrate _changes | |
1-3: display an MsgBox for each change (with more content) | |
4: Write to the Windows Event Log on each change | |
5: Create an asana task on each change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(understand basic motivations, drivers, chances and pitfalls) | |
- info hub - get everyone on the same page: the cool part | |
- automate - structure and batch: the scale part | |
- enforce some process: the dumb part (if this is the only reason: RUN) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn package -X -Dgwt.style=DETAILED | tee compile.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scope of Replacement (legacy renovation) | |
Significant part of one screen, no less; | |
services are easier, as long as you've got tests | |
(see HTML 5 Article: http://blog-de.akquinet.de/2015/02/04/renewal-legacy-ui-vaadin-html5-postmessage/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- tables as they are | |
create sequence post_id_seq; | |
create table post (id bigint not null, content text not null, constraint post_pkey primary key(id)); | |
create sequence post_comment_id_seq; | |
create table post_comment (id bigint not null, post_id bigint not null, content text not null, constraint post_comment_pkey primary key(id), constraint fk_post_comment_post_id foreign key(post_id) references post(id)); | |
-- basics for triggers | |
create sequence changes_seq; | |
create or replace function changes_seq_fkt() returns trigger as $$ begin NEW.seq=nextval('changes_seq'); NEW.ts=now(); return NEW; end; $$ language plpgsql; | |
-- add sequence / ts info to our tables | |
alter table post add ts timestamp, add seq bigint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev/run -n 1 --with-admin-party-please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In order to kick it (based on more or less pleasant experience), you should... | |
... have few but good documents - most importantly one of them should be a VERY GOOD EXAMPLE (a walkthrough in painstaking detail: invent IDs, names, also Phone #s and so on) | |
... another one is a comprehensive list of Use Cases (and surrounding systems supporting them; acc. 2 MCQ, you need just few days 2 compile) | |
... write down what will be checked before signing off the result (aka ATDD) | |
... rock-solid and well-thought-through core classes (data model, UI structure) | |
... adjust regularly, but not always (i.e. do sprints) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "_design/login", | |
"redir": "/somepath", | |
"usage": "Deploy (i.e. add as doc - verbatim) to a DB that is public, call as /dbname/_design/login/_show/login?redir?/someredirpath (where the query param is optional and falls back to 'redir' in the design doc. Advantage: Browsers (esp. iPhone) can remember credentials", | |
"shows": { | |
"login": "function(doc, req){return \"<html><head><meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\" /></head><body><form action=\\\"/_session?next=\"+(req.query.redir?req.query.redir:this.redir)+\"\\\" method=\\\"POST\\\">User: <input type=\\\"text\\\" name=\\\"name\\\" /><br />Pass: <input type=\\\"password\\\" name=\\\"password\\\" /><br /><input type=\\\"submit\\\" /></form></body></html>\"}" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bash | |
for i in $(find . -name '*pec.react.js') | |
do | |
if [ ! -f ${i}x ] | |
then | |
echo $i | |
fi | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bash | |
export PGPASSWORD=testpw #fill in no-priv PW | |
wt=0 | |
while [ true ] | |
do | |
psql -U vaadin -c 'select * from dual' #create dual | |
if [ $? = 0 ] | |
then | |
echo "all is OK" | |
break |