text:
{
  "title": "Brilliant Collection of One-page Survival Guides to do #DataScience with R: https://t.co/7ON7bUA4lB ————— #abdsc #Rstats #Statistics #BigData #MachineLearning #DataMining #PredictiveAnalytics #Coding #DataScientists ————— ➕See the book here: https://t.co/E2eqDz40qU https://t.co/1jaLyDbMn1",
  "date": "2019-12-05"
}

# rstats

> **IAM Platform** (@IAM__Network; 21/18): Brilliant Collection of One-page Survival Guides to do #DataScience with R: https://t.co/7ON7bUA4lB
—————
#abdsc #Rstats #Statistics #BigData #MachineLearning #DataMining #PredictiveAnalytics #Coding #DataScientists
—————
➕See the book here: https://t.co/E2eqDz40qU https://t.co/1jaLyDbMn1  [↪](https://twitter.com/dataandme/status/1202362917984837632)

<!-- -->

> **Thomas Hütter** (@DerFredo; 19/8): ¿Os dedicáis a la formación en R? Esta librería os puede dar la vida #rstats https://t.co/f1hbmCECXz  [↪](https://twitter.com/dataandme/status/1202343232270741504)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 18/7): If you're interested in easily creating sequentially-built-up plots (e.g., axes first, then data, then more data) in #Rmarkdown slides, check out @xieyihui's answer to this question. This will make plots in your presentations easier to explain. #rstats https://t.co/1atJ3FWCdN  [↪](https://twitter.com/dataandme/status/1202342948354117633)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 16/28): Open-Sourcing Metaflow, a Human-Centric Framework for #DataScience.  #BigData #Analytics #AI #MachineLearning #IoT #IIoT #PyTorch #Python #RStats #TensorFlow #Java #JavaScript #ReactJS #GoLang #CloudComputing #Serverless #DataScientist #Linux
https://t.co/YiMr0Hpecp https://t.co/2U6otNMtMO  [↪](https://twitter.com/dataandme/status/1202340562927403008)

<!-- -->

> **claudîus** (@dataclaudius; 16/2): Hey #rstats , @rstudio and @hadleywickham, just made my first R-package today for my unit in my public sector gov job, ❤’d roxygen docs and I had SO much fun writing the test_that unit tests, I want more use cases to write more unit tests now! R is such a joy to work with ❤  [↪](https://twitter.com/dataandme/status/1202346422005223424)

<!-- -->

> **Mɪʟᴏꜱ Pᴏᴘᴏᴠɪᴄ** (@milos_agathon; 14/3): I'm experimenting with mixing regular geoms and geom_sf() in #ggplot, and I have to say I find it convenient. #rstats https://t.co/EhXXdmO1O0  [↪](https://twitter.com/dataandme/status/1202395705748402177)

<!-- -->

> **Dikayo Data** (@dikayodata; 11/5): Godinu dana od početka protesta i uzbudljivog i nezaboravnog mapiranja svakog četvrtka, petka i vikendom. Da se podsetimo kako su se protesti širili od decembra 2018. do kraja marta 2019.
>
#stopkrvavimkosuljama
#1od5miliona
#dataviy #maps #rstats https://t.co/wP38nguxCO  [↪](https://twitter.com/dataandme/status/1202336606033784832)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 10/4): The latest version of the #rstats 𝚋𝚊𝚌𝚔𝚋𝚘𝚗𝚎 package is now on CRAN! It features a huge speedup of SDSM, a couple bells & whistles, and small bug fixes. Plus, it's puppy approved.  Check out how it can extract a backbone #network from two-mode data! @zpneal @SocNetAnalysts https://t.co/5KnFxWcggY  [↪](https://twitter.com/dataandme/status/1202356709173407745)

<!-- -->

> **Mark Murphy** (@murphy_mv; 10/2): Looking back on 3 years of @macleans #chartapalooza charts.
>
From tolls to coal power to electric vehicles. Pleased with my progression to bigger fonts 🤓
>
Good times! #cdnecon #rstats https://t.co/Yr01NW61iN  [↪](https://twitter.com/dataandme/status/1202331179346612224)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 8/6): The clusters you get from PubMed abstracts and articles containing the word "Data Science".  Analysis made with Adjutant (https://t.co/lyvpYbI6tZ). Thanks again past self #rstats #DataScience https://t.co/IlnXjRJcQw  [↪](https://twitter.com/dataandme/status/1202342709215682560)

<!-- -->

> **Gabriel Fernando** (@girsanov; 8/3): 📦 Managing dependencies in packages  {https://t.co/l5WMZOYGKk} #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1202334616021061633)

<!-- -->

> **Melissa Key** (@tygereye80; 8/3): Experimenting with mixing text with data, with the #TidyTuesday data using {datalegreyar} (https://t.co/Ygt1MAU27h).
Inspired by a post by @Emil_Hvitfeldt (https://t.co/hNrj3WyoNY)
The HTML document can be seen at: https://t.co/2MkwDqoVIX
I ❤ #rstats https://t.co/ALmVOKOiOg  [↪](https://twitter.com/dataandme/status/1202335472271405056)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 7/6): PRUEBAS DE HIPÓTESIS ESTADÍSTICAS
#statistician #statistics #Maths #Stats #Econometrics #dataanalysis #Estadistico #Estadistica #Econometria #AnalisisDeDatos #datascience #CienciaDeDatos #datascientist #probability #data #datos #statistical #coaching #scientist #rstats #rstatses https://t.co/GWr83Ts2Je  [↪](https://twitter.com/dataandme/status/1202358391466840065)

<!-- -->

> **Pachá 帕夏** (@pachamaltese; 6/8): Day 2 Looking at data types in Python and comparing them to R #rstats #100DaysOfCode #WomenWhoCode  [↪](https://twitter.com/dataandme/status/1202338851802488834)

<!-- -->

> **Colin Fraser** (@colin_fraser; 6/1): DID YOU KNOW?
>
You can use the carrot emoji 🥕 interchangeably with the ^ symbol when raising a number to an exponent in #rstats?
>
2 🥕 2 == 4
>
[1] TRUE
>
#itscalledmath #AcademicTwitter #phdchat  [↪](https://twitter.com/dataandme/status/1202348067976077313)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 5/3): Day 04 of #AdventofCode #rstats
>
I mean....I'm always mapslaining (definition in thread), but even I solved this with just filters, no iterations required:
>
https://t.co/4RjWivdFou
>
Oh and I used DT::datatable() and backgroundColor to help debug my filters #dataviz #datascience https://t.co/tTpKcz9RFu  [↪](https://twitter.com/dataandme/status/1202352241967013888)

<!-- -->

> **Keshav Bhatt** (@bhatt_keshav; 5/2): Does anyone know of any resources that walk through running an individual-based model in #rstats? I am willing to read wildlife literature if I must...
>
#stats #modeling #fisheries #fishsci  [↪](https://twitter.com/dataandme/status/1202334636870795264)

<!-- -->

> **Shane Smith** (@Smith80D; 5/1): Playing with the Gray-Scott algorithm and #rstats, the result reminds me to Keith Haring's drawings #generative #maths https://t.co/SfEgt4Iehx  [↪](https://twitter.com/dataandme/status/1202363730467704832)

<!-- -->

> **Joshua Ulrich** (@joshua_ulrich; 5/1): Just in case you're not making an #rstats tutorial or blog post because you think what you know is too basic and no one will care, I present this Excel "How to make a bar chart" video. 98k views in 2 years. https://t.co/FNDzQrYyu2  [↪](https://twitter.com/dataandme/status/1202328895040753667)

<!-- -->

> **Nicola Righetti** (@NicRighetti; 4/4): Já leu nosso post sobre o sistema de  cotas da Fuvest? https://t.co/mLlRdm5Mmn
O que acharam?
>
#datascience
#rstats
#rstudios
#blog
#Fuvest
#Cotas https://t.co/RPD2RzbkaY  [↪](https://twitter.com/dataandme/status/1202332927301967877)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 4/2): DID YOU KNOW?
>
in @rstudio you can use CTRL + SHIFT + M to generate and display a random meme #rstats meme?

@rstatsmemes @hadleywickham #tidyverse #ggplot2 #phdchat #AcademicTwitter #AcademicChatter https://t.co/LHlEKJ7jG7  [↪](https://twitter.com/dataandme/status/1202343496088199174)

<!-- -->

> **JARS3N** (@JARS3N; 4/2): DID YOU KNOW?
>
in @rstudio you can use CTRL + SHIFT + M to generate and display a random meme #rstats meme?

@rstatsmemes @hadleywickham #tidyverse #ggplot2 https://t.co/ad9HwHur17  [↪](https://twitter.com/dataandme/status/1202334007180111873)

<!-- -->

> **ZJ** (@evalparse; 4/1): I'm currently holding how {datapasta} works in my head, looking to release this week or next. If there's any nagging issues, now is the time to get them sorted! #rstats  [↪](https://twitter.com/dataandme/status/1202390824836722688)

<!-- -->

> **Scott** (@sckottie; 4/1): The hardest thing so far about learning the Python data science stack is remaining all chill and neutral about the relative merits of #rstats and #pydata while doing so.
>
Ignorance truly is bliss!  [↪](https://twitter.com/dataandme/status/1202375237716738048)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 3/4): Day 4 of #packagecalendar! 🥤🥤
We are back with another gem from @yoniceedee looking at {carbonate}!
>
“carbon.js is the easiest way to create beautiful images of your source code.”
>
https://t.co/XLTeEazhry
#rstats  [↪](https://twitter.com/dataandme/status/1202341232887775232)

<!-- -->

> **Dorris Scott** (@Dorris_Scott; 3/3): just posted how I create these nice ordination plots on my GitHub if anyone wants to have better #dataviz #rstats
https://t.co/7ajGdFnJZg https://t.co/VB0ycgJAVZ  [↪](https://twitter.com/dataandme/status/1202366029763997696)

<!-- -->

> **Andrew Heiss, PhD** (@andrewheiss; 3/2): Our second invited speaker @joshuawkho is telling us about easy detection of circular rna with a cool #rstats shiny tool. #biocasia https://t.co/8LknwZkVMC  [↪](https://twitter.com/dataandme/status/1202390127835660288)

<!-- -->

> **Kos'data** (@kos_data; 3/2): 25 days of #rdiskframe (5/25)
>
`map`, from {purrr}, is how I envisioned {disk.frame} at its best
>
In #diskframe context, `map(df, fn)` applies the `fn` to each chunk of `df`
>
Best way to apply arbitrary R-native user-defined functions to each chunk of a disk.frame
>
#rstats https://t.co/qVkUpF8xhZ  [↪](https://twitter.com/dataandme/status/1202379893071237120)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 3/2): Even though I've been writing #rstats code for over 12 years, I've only recently started using packages because I previously thought of packages as a mechanism for sharing code. But I'm now embracing R packages to structure and document code, especially for simulation models.  [↪](https://twitter.com/dataandme/status/1202355551046258689)

<!-- -->

> **Richard D. Morey** (@richarddmorey; 3/1): For one of their final assignments, my program evaluation students had to write a tutorial or code-through to teach someone how to do something with #rstats. They've all be fantastic so far. This one has the best title. https://t.co/IxXdYexnhz  [↪](https://twitter.com/dataandme/status/1202398592222318592)

<!-- -->

> **PyData** (@PyData; 3/1): Didn't expect to be getting a crash course in Bayesian statistics when I woke up this morning. Getting some exciting results though! #rstats #gradlife https://t.co/WRmWePw8f8  [↪](https://twitter.com/dataandme/status/1202362797071327232)

<!-- -->

> **Claus Wilke** (@ClausWilke; 2/2): Slides from the PyData2019 data_algebra lightening talk @WinVectorLLC #rstats #datascience https://t.co/qKboO1intm  [↪](https://twitter.com/dataandme/status/1202387684515176448)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/2): @MTrussart discussing all of #Cytof at #biocasia. Chat to her to know more about her debarcoding method using Gaussian mixtures, #reproducibility and removing batch effect with the #ruv #rstats 📦, #normalization and cell #clustering! https://t.co/Ysr9InoDhs https://t.co/2Beaa8jXqU  [↪](https://twitter.com/dataandme/status/1202369151118929920)

<!-- -->

> **Comunidad R Hispano** (@R_Hisp; 2/1): I am preparing materials for a workshop, and I am planning to build a full static page for the course. Any suggestions of examples using #rstats and #blogdown?  [↪](https://twitter.com/dataandme/status/1202398802243719168)

<!-- -->

> **R Weekly Live** (@rweekly_live; 2/1): https://t.co/ISx58lcvJJ
Lanzamos la versión alfa generador Tris.
De inicio, sólo tomará jugadas que no hayan salido ganadoras.
Todos sus comentarios y sugerencias nos hacen mejorar!
Éxito mi gente!
@pronosticos_mx
#suerte #pakin #ganardinero #rstats #analytics #DataScientists https://t.co/wTjAI7dUOb  [↪](https://twitter.com/dataandme/status/1202376589784289280)

<!-- -->

> **Simon Coulombe** (@CoulSim; 2/1): Diferenca në vota në mes LVV dhe LDK në #Zgjedhjet2019 nëpër komunat e Kosovës.
>
#Vetevendosje #Ldk #rstats #dataviz https://t.co/1KDZFEgDLu  [↪](https://twitter.com/dataandme/status/1202343411040366598)

<!-- -->

> **claudîus** (@dataclaudius; 2/1): what. wait... wh.. WHAT!? #rstats 🤯 https://t.co/cxeHXwazIv  [↪](https://twitter.com/dataandme/status/1202344655230128128)

<!-- -->

> **Florian Mayer** (@fistful_of_bass; 1/3): Updates on RSpectra: new “center” and “scale” parameters for svds()  {https://t.co/4OK1BtIqGk} #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1202368795492438018)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/3): Matchday 15: Manéside Derby! Super clinical #LFC blow away #EFC in 1st half with some exquisite ⚽ control by both Mané & Origi. Still some defensive concerns for #LFC but game leaves #EFC in relegation zone. 8⃣ points clear! #rstats #ggplot2 #MerseysideDerby https://t.co/UZiTq7aLkQ  [↪](https://twitter.com/dataandme/status/1202351821374623744)

<!-- -->

> **Dr. GP Pulipaka** (@gp_pulipaka; 1/2): Slides from the PyData2019 data_algebra lightning talk @WinVectorLLC #rstats #datascience https://t.co/oZDR8g7yCL  [↪](https://twitter.com/dataandme/status/1202397753201967105)

<!-- -->

> **Travis Hinkelman** (@travishinkelman; 1/2): #rstats magick && @PhyloPic https://t.co/8R4KH7Q9aY  [↪](https://twitter.com/dataandme/status/1202390772206600193)

<!-- -->

> **⚽Ryo Nakagawara📊** (@R_by_Ryo; 1/2): Hey Ladies! Our last meetup is happening tonight! Can't wait to meet all the BNE #Pyladies! See you there with some good friends, food and drinks! @PyLadiesAu #Python #rstats  @RLadiesBrisbane #RLadies @justdigitalppl @KierstinMcquown @betsybookworm @pausanzleon @orchid00 https://t.co/hdUDkSiIvs https://t.co/IOj3j0C14g  [↪](https://twitter.com/dataandme/status/1202377247908220928)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/2): Job Posting: Research Software Engineer at EcoHealth Alliance  {https://t.co/PEw30m36Rv} #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1202334563118305280)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/2): Tradestatistics v0.2.7 was sent to CRAN. The package entered a stable lifecycle earlier this year and the only changes were the default parameters. As @danidlsa pointed us, it could be made simpler and we did it. #rstats  [↪](https://twitter.com/dataandme/status/1202359110970290179)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/2): @mt_morgan emphasising the benifits of playing well with others, bringing the powers of #rstats and #python together within @Bioconductor #biocasia https://t.co/VAM3BkDsRT  [↪](https://twitter.com/dataandme/status/1202355699843383296)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/2): #datosdemiercoles  #rstats #python
¿Alguna vez habian visto un error cuadratico medio? https://t.co/TXT44LIhrw  [↪](https://twitter.com/dataandme/status/1202351617930092544)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/2): Hey #rstats #tidyverse folks!
Can you help me calculate survival probabilities from discrete-time hazard values in a tidy way in this SO question ? I have the base r equivalent, but am unable to translate to tidy pipes!
https://t.co/usdQFF9YlZ  [↪](https://twitter.com/dataandme/status/1202351312555429890)

<!-- -->

> **Thomas Hütter** (@DerFredo; 1/2): Last, configurable comparative methods to look for combinations of conditions asssociated with successful implementation. Boolean/set algebra not linear algebra as analytic technique. Packages Qcapro or cna #rstats #discience19  [↪](https://twitter.com/dataandme/status/1202343665563250688)

<!-- -->

> **Bryan Jenks** (@Tall_Viking; 1/1): Advent of Code 2019-03 with R &amp; JavaScript @_ColinFay #rstats #datascience https://t.co/vdQSVmReCB  [↪](https://twitter.com/dataandme/status/1202347412922097666)

<!-- -->

> **Blake Shaffer 📊** (@bcshaffer; 1/1): The past 6 months I'm learning how to use R and it's unimaginable how much I enjoy it. However, although I love taking workshops, online courses and solving exercises I'm still "afraid# every time I set out to code my own projects. Anyone else feeling the same? #rstats #newbie  [↪](https://twitter.com/dataandme/status/1202394403777597441)

<!-- -->

> **R-bloggers** (@Rbloggers; 1/1): Deploy to https://t.co/rsqa4GTBcD doesnt work #tidyverse #rstats https://t.co/pV3KuoEUqc  [↪](https://twitter.com/dataandme/status/1202390936891875329)

<!-- -->

> **Miles McBain** (@MilesMcBain; 1/1): Dplyr summarise with list of function and dependence on other data column #tidyverse #rstats https://t.co/nhBuOfmSvV  [↪](https://twitter.com/dataandme/status/1202360768496328706)

<!-- -->

> **Joshua_Willems** (@JoshuaWillems2; 1/1): @rstatsmemes #rstats #tidyverse https://t.co/AWkRH9czqv  [↪](https://twitter.com/dataandme/status/1202389699958050818)

<!-- -->

> **Anna Quaglieri** (@annaquagli; 1/1): @djnavarro Hey Dani, DJ Navarro is my favourite DJ in the #rstats twitterverse.  [↪](https://twitter.com/dataandme/status/1202385589477109760)

<!-- -->

> **Lucas Enrich** (@lucariel1; 1/1): @KiirstiO Finished Day 3 and Day 4 of the #RadventcalendaR. Definitely going to have to share this resource to those who are completely new to R! Each lesson is short to the point where it won't be overwhelming. Here it is: https://t.co/MtbQaPNcE7  #rstats  [↪](https://twitter.com/dataandme/status/1202371531185303559)

<!-- -->

> **SHONN SLC | 程聖倫** (@shonn2nd; 1/1): @NDXC2015 @ElectionBabe @SenhorRaposa @JMilesColeman @xxxneonslavexxx Check out #rstats. It's free, able to handle your entire analytic process from cleaning data to mapping, includes the free leaflet package for interactive mapping, and has a warm and welcoming community of users who will help when you get stuck.  [↪](https://twitter.com/dataandme/status/1202330971502067712)

<!-- -->

> **Zachary Klukkert, PhD** (@Monkeydentity; 0/3): IAM Platform Curated Retweet:
>
Via: https://t.co/iBhItze3aS
>
Brilliant Collection of One-page Survival Guides to do #DataScience with R: https://t.co/bOO2jIfhyA
—————
#abdsc #Rstats #Statistics #BigData #MachineLearning #DataMining #PredictiveAnalytic  [↪](https://twitter.com/dataandme/status/1202379574878887936)

<!-- -->

> **Kos'data** (@kos_data; 0/3): Keep up with new developments from @NumFOCUS sponsored projects — join our monthly email newsletter: https://t.co/xJeTIhY0Zt
>
#jupyter #matplotlib #pandas #python #pydata #julialang #rstats #bigdata #machinelearning #dataviz #openscience #opendata #opensource #oss #datascience https://t.co/ufpDUDx1Jz  [↪](https://twitter.com/dataandme/status/1202332547147022336)

<!-- -->

> **Riinu Ots** (@RiinuOts; 0/2): Filter groups by occurrence of multiple values in another column #tidyverse #rstats https://t.co/yKy4HsaEev  [↪](https://twitter.com/dataandme/status/1202331799034171392)

<!-- -->

> **Tiago Ventura** (@_Tiagoventura; 0/2): Interfacing with git and GitHub from within R studio? Yes please!
Wednesday, December 11th. 6:30pm to 8:30pm #rstats #github #rstudio https://t.co/f7bQTO1zvb  [↪](https://twitter.com/dataandme/status/1202384838239510528)

<!-- -->

> **Nikos Kyritsis** (@nikos_kyritsis; 0/2): Hey #rstats #Python guys, #MachineLeaning and #epitwitter - This is the best book bundle for you, or to gift a friend. Moreover, we are helping charities! Go for $15 -> The Bayesian book is amazing 🙂 https://t.co/KUBvxaGGqQ  [↪](https://twitter.com/dataandme/status/1202369627143061505)

<!-- -->

> **Rachel Jade Domagalski** (@rdomagalski; 0/1): #TidyTuesday atrasado segue valendo? Um pouco de matemática (Butterfly curve) com o #ggplot2 e #gganimate - código no github: https://t.co/ODSxJSni4k . #rstats https://t.co/3dFWwBxJzp  [↪](https://twitter.com/dataandme/status/1202394978057687042)

<!-- -->

> **Ana Crisan** (@amcrisan; 0/1): I am New to R studio and Have this code that won't run #tidyverse #rstats https://t.co/hftphtWF2F  [↪](https://twitter.com/dataandme/status/1202393471581077505)

<!-- -->

> **Jesus M. Castagnetto** (@jmcastagnetto; 0/1): How to colour and insert text for specific data point in geom_point #tidyverse #rstats https://t.co/QwqQofseFq  [↪](https://twitter.com/dataandme/status/1202346969668227072)

<!-- -->

> **Statisticians and Data Scientists** (@statsanddatasci; 0/1): Support for R package rcbc #tidyverse #rstats https://t.co/BgHY9f2IqX  [↪](https://twitter.com/dataandme/status/1202351928874807298)

<!-- -->

> **𝑺 𝑱 𝑲𝒆𝒓𝒓** (@data_fiend; 0/1): Perform function on and compound assign a subset of data table columns #tidyverse #rstats https://t.co/fElr8BJaJD  [↪](https://twitter.com/dataandme/status/1202351928128233472)

<!-- -->

> **FakeR** (@FakeRtips; 0/1): Why map function of purrr package didnt scrape all urls data? #tidyverse #rstats https://t.co/zwqRV9iUBR  [↪](https://twitter.com/dataandme/status/1202349503187165184)

<!-- -->

> **Christopher J Sullivan** (@fisheries_etc; 0/1): "Spread" na.locf data for irregular time data #tidyverse #rstats https://t.co/hRrvkUSpYt  [↪](https://twitter.com/dataandme/status/1202359482807934977)

<!-- -->

> **Antonio S. Chinchón** (@aschinchon; 0/1): ploting ellipse in log plot with ggforce #tidyverse #rstats https://t.co/U3EJjNd6mc  [↪](https://twitter.com/dataandme/status/1202328023023988736)

<!-- -->

> **Oscar Baruffa 📊🇳🇱** (@OscarBaruffa; 0/1): best way to run child markdowns and/or bookdown chapters interactively in Rstudio? #tidyverse #rstats https://t.co/Pg4olEzJ2d  [↪](https://twitter.com/dataandme/status/1202377097341210624)

<!-- -->

> **curso-r** (@curso_r; 0/1): The labels are below the bars in the R barplot #tidyverse #rstats https://t.co/fMq18l4MGf  [↪](https://twitter.com/dataandme/status/1202329322759098368)

<!-- -->

> **FakeR** (@FakeRtips; 0/1): How to colour and insert text for specific data points in geom_point #tidyverse #rstats https://t.co/kh2PQ5ZOLe  [↪](https://twitter.com/dataandme/status/1202364564496683008)

<!-- -->

> **FakeR** (@FakeRtips; 0/1): Analysis of a coss-over trial #tidyverse #rstats https://t.co/U0EBSP8Lbl  [↪](https://twitter.com/dataandme/status/1202348272255406081)

<!-- -->

> **joranelias** (@joranelias; 0/1): package install problem #tidyverse #rstats https://t.co/ok0aNXexer  [↪](https://twitter.com/dataandme/status/1202341863421857792)

<!-- -->

> **Emil Hvitfeldt** (@Emil_Hvitfeldt; 0/1): Quantile regression error with dummy variables in ggplot #tidyverse #rstats https://t.co/R0Y5hMC926  [↪](https://twitter.com/dataandme/status/1202329323379793921)

<!-- -->

> **Kylie Langlois** (@KylieLanglois; 0/1): Enable copy to clipboard button for blockquotes? #tidyverse #rstats https://t.co/LSWACRlSOq  [↪](https://twitter.com/dataandme/status/1202345674613952513)

<!-- -->

> **Saskia Freytag** (@trashystats; 0/1): Anyway to convert ordinal categories to numerical values? #tidyverse #rstats https://t.co/BD6Sw1QbDD  [↪](https://twitter.com/dataandme/status/1202363268813205507)

<!-- -->

> **R Weekly Live** (@rweekly_live; 0/1): building an #rstats api wrapper package and it's slow going so far https://t.co/Ol3cASmGyp  [↪](https://twitter.com/dataandme/status/1202388467033899008)

<!-- -->

> **Pakin** (@pakinproton; 0/1): I like to start my ad-hoc analysis in R by starting a new environment and attaching all my variables to it. So at the end it is easy to save ENV as RDS . Rstudio autocomplete allows me to just type ENV$ and list all the vars.  #rstats  [↪](https://twitter.com/dataandme/status/1202379957994958848)

<!-- -->

> **R-bloggers** (@Rbloggers; 0/1): Whats Up! Another Great Question for all the Quants. #Data #DataScience #rstats #python #BigData #DataAnalytics
>
What is your favorite part about data Analysis?  [↪](https://twitter.com/dataandme/status/1202377571125649408)

<!-- -->

> **BrisbanePyLadies** (@PyLadiesBNE; 0/1): Hey @github ,
>
I'll buy you a beer if you add the Beerware licence to repository licence choices.
>
#rstats #pystats
https://t.co/Qv9giS7UEq https://t.co/o7UaTQaYUA  [↪](https://twitter.com/dataandme/status/1202373571856752641)

<!-- -->

> **R-bloggers** (@Rbloggers; 0/1): Updates on RSpectra: new “center” and “scale” parameters for svds() via #rbloggers #rstats #datascience https://t.co/lGM8vMWWh6  [↪](https://twitter.com/dataandme/status/1202372094664818689)

<!-- -->

> **Open Trade Statistics** (@opentradestats; 0/1): 📦 Managing dependencies in packages via #rbloggers #rstats #datascience https://t.co/dBg0SEzh2U  [↪](https://twitter.com/dataandme/status/1202340619017957376)

<!-- -->

> **Peter Hickey** (@PeteHaitch; 0/1): Job Posting: Research Software Engineer at EcoHealth Alliance via #rbloggers #rstats #datascience https://t.co/jblrw6N2Zv  [↪](https://twitter.com/dataandme/status/1202340621295505410)

<!-- -->

> **Guilherme Marthe** (@Gui42; 0/1): Posted by R on Yixuan's Homepage, now on R-bloggers: Updates on RSpectra: new “center” and “scale” parameters for svds() #rstats https://t.co/FAEGaxcqPM  [↪](https://twitter.com/dataandme/status/1202371083724378112)

<!-- -->

> **Amanda Van Horne** (@TELLlab; 0/1): Posted by Iegor Rudnytskyi, PhD, now on R-bloggers: 📦 Managing dependencies in packages #rstats https://t.co/fYWUrJZ6kQ  [↪](https://twitter.com/dataandme/status/1202337130661531648)

<!-- -->

> **R Weekly Live** (@rweekly_live; 0/1): Posted by Noam Ross, now on R-bloggers: Job Posting: Research Software Engineer at EcoHealth Alliance #rstats https://t.co/BOXi5TwdgY  [↪](https://twitter.com/dataandme/status/1202337132481843200)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): CRAN updates: BTSPAS cytometree htmlTable idar Luminescence Publish RRreg RSQLite tradestatistics webmockr https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1202362574840434694)

<!-- -->

> **Katy Torres 📊** (@KTorresStats; 0/1): CRAN updates: LSAfun rhoR https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1202332289348308992)

<!-- -->

> **Marcelo Tournier** (@marcelotournier; 0/1): CRAN updates: gamCopula https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1202347375370604546)

<!-- -->

> **gustavovital** (@gustavoovital; 0/1): New CRAN package recurse with initial version 1.1.2 https://t.co/0QdYpl5sce #rstats  [↪](https://twitter.com/dataandme/status/1202362532461195265)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): @opentradestats shall use golem by @_ColinFay very soon after my PR to use AGPL with usethis was accepted! If you found this package to be useful, you can always contribute at https://t.co/T8mrzSCzna to convert coffee into code. #rstats https://t.co/l0rULfSKmG  [↪](https://twitter.com/dataandme/status/1202359862216339457)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): @NextNOLA @neworleansbio @GNOinc @helloNOEW @TheIdeaVillage @LookFar_Ideas @iSeatzcom @GoPropeller @launchpad give the new @rladiesnola some love! Anyone who wants to learn about programming in @rstudio/using open #data/#rstats to create change, sign up! https://t.co/HYvwJkcI0V  [↪](https://twitter.com/dataandme/status/1202355639047069696)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): Does anyone else get frustrated that recode has format recode(., old = "new") and fct_recode is fct_recode(., new = "old")  #rstats  I can never remember which is which.  😞  [↪](https://twitter.com/dataandme/status/1202353646580772866)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): All these years I was told do not use for loop in #rstats. While that makes sense when working with list-like objects like a data-frame. For some tasks you do need a for loop and r just performs fine.
#Dogma is dangerous  [↪](https://twitter.com/dataandme/status/1202350661523951618)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/1): For sure an interesting paper to read and a very useful R library to try out  —>> https://t.co/R09An81aHR #rstats #R https://t.co/b0fF1H8bZV  [↪](https://twitter.com/dataandme/status/1202349349679902722)

<!-- -->

> **The New Statistician** (@TheNewStat1; 0/1): Rezultatet e gjitha partive ne #Zgjedhjet2019 neper komunat e Kosoves
>
#Kosovoelections #rstats #dataviz https://t.co/YavGf1wKX0  [↪](https://twitter.com/dataandme/status/1202346629552054272)

<!-- -->

> **claudîus** (@dataclaudius; 0/1): OK who's going to #BES2019 and wants to chat #insects #pollinators #parasitoids #bees #wasps #foodwebs #networks #biodiversity  #woodlands #Landscapes #globalchange #ClimateChange #data #Statistics #rstats #GIS #life #universe #everything ?  [↪](https://twitter.com/dataandme/status/1202344628646797315)

<!-- -->

> **Thomas Hütter** (@DerFredo; 0/1): #rstats is booming in Taipei 🇹🇼 https://t.co/01sSOc9hu4  [↪](https://twitter.com/dataandme/status/1202343854453788674)

<!-- -->

> **Kirk Borne** (@KirkDBorne; 0/0): Is it a map? Is it a fractal? No...
>
It's @accidental__aRt!!!
#rstats https://t.co/wjDZmEuvgG  [↪](https://twitter.com/dataandme/status/1202401099455631362)

<!-- -->

repository: batpigandme/twitter-blogdown

repo_name: batpigandme/twitter-blogdown


text:
# Countingworkspro

```text
simpleicons-8/C/Countingworkspro
```

```text
include('simpleicons-8/C/Countingworkspro')
```

| Illustration | Countingworkspro |
| :---: | :---: |
| ![illustration for Illustration](../../simpleicons-8/C/Countingworkspro.png) | ![illustration for Countingworkspro](../../simpleicons-8/C/Countingworkspro.Local.png) |

## Sprites
The item provides the following sriptes:

- `<$CountingworksproXs>`
- `<$CountingworksproSm>`
- `<$CountingworksproMd>`
- `<$CountingworksproLg>`

## Countingworkspro

### Load remotely
```plantuml
@startuml
' configures the library
!global $LIB_BASE_LOCATION="https://raw.githubusercontent.com/tmorin/plantuml-libs/master/distribution"

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('simpleicons-8/bootstrap')

' loads the Item which embeds the element Countingworkspro
include('simpleicons-8/C/Countingworkspro')

' renders the element
Countingworkspro('Countingworkspro', 'Countingworkspro', 'an optional tech label', 'an optional description')
@enduml
```

### Load locally
```plantuml
@startuml
' configures the library
!global $INCLUSION_MODE="local"
!global $LIB_BASE_LOCATION="../.."

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('simpleicons-8/bootstrap')

' loads the Item which embeds the element Countingworkspro
include('simpleicons-8/C/Countingworkspro')

' renders the element
Countingworkspro('Countingworkspro', 'Countingworkspro', 'an optional tech label', 'an optional description')
@enduml
```

license: MIT

repository: tmorin/plantuml-libs

branch_name: refs/heads/master

extension: md

gha_language: TypeScript

gha_license_id: MIT

license_type: permissive

repo_name: tmorin/plantuml-libs


text:
# Spring Data SimpleDB #

The primary goal of the [Spring Data](http://www.springsource.org/spring-data) project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.

[Amazon SimpleDB](http://aws.amazon.com/simpledb) is a highly available and flexible non-relational data store that offloads the work of domainPrefix administration. When using Amazon SimpleDB, you organize your structured data in *domains* within which you can _put data_, _get data_, or _run queries_. Domains consist of *items* which are described by *attribute* name-value pairs.

The Spring Data SimpleDB module aims to provide a familiar and consistent Spring-based programming model for Amazon SimpleDB while retaining domain-specific features and capabilities. Key functional areas of Spring Data SimpleDB are a POJO centric model for interacting with a SimpleDB domains and easily writing a Repository style data access layer.

## Getting Started ##

Clone the Spring Data SimpleDB module into and define it as a dependency in your project's Maven file:

    <dependency>
        <groupId>com.3pillarglobal.labs/groupId>
        <artifactId>spring-data-simpledb</artifactId>
        <version>1.0.1</version>
    </dependency>

First, set up the SimpleDb configuration.

    <bean id="simpleDb" class="org.springframework.data.simpledb.core.SimpleDb">
        <property name="accessID" value="$AWS_ACCESS_ID" />
        <property name="secretKey" value="$AWS_SECRET_KEY"/>
        <property name="domainPrefix" value="$DOMAIN_PREFIX"/>
        <property name="domainManagementPolicy" value="$DOMAIN_MANAGEMENT_POLICY"/>
        <property name="consistentRead" value="$CONSISTENT_READ_VALUE"/>
    </bean>
The following can be configured here:

**SimpleDB access credentials** via __accessID__ and __secretKey__ tags.

**SimpleDB domain prefixes** via __domainPrefix__ tag.

If a value is specified here, each SimpleDB domain name created by the application will be prefixed with this value.

For:

    <property name="domainPrefix" value="testDB"/>
and persisted class has Name "UserJob", the generated SimpleDB domain will be testDB.userJob

**SimpleDB Domain management policies** via __domainManagementPolicy__ tag.

If a value is specified here, at application startup Amazon SimpleDB domains are created/updated accordingly.
$DOMAIN_MANAGEMENT_POLICY possible values:

* **DROP_CREATE**    -  Amazon simple db domains will be dropped and recreated at startup; recommended for testing purposes.
* **UPDATE**            -  Amazon simple db domains will be created only if they are not already existing.
* **NONE**            -  This option implies that all domains are created in simple db manually.

_Default value_: **UPDATE**

**SimpleDB default read behavior**

If a value is specified here, the default read operations performed to SimpleDB will be performed accordingly.
$CONSISTENT_READ_VALUE possible values:

 * **true** - All operations in CRUDRepository or PaginatingAndSortingRepository will be made *with* consistent reads.
 * **false** - All operations in CRUDRepository or PaginatingAndSortingRepository will be made *without* consistent reads.

If some operations need consistent reads and inconsistent reads at the same time, $CONSISTENT_READ_VALUE should not be declared or set to false, and repository classes should extend SimpleDbPagingAndSortingRepository.

This repository has an additional parameter __readConsistent__ on each repository method.

Next declare a template bean.

    <bean id="simpleDbTemplate" class="org.springframework.data.simpledb.core.SimpleDbTemplate">
           <constructor-arg name="simpleDb" ref="simpleDb" />
    </bean>
SimpleDbTemplate is the central support class for SimpleDb database operations. To declare a template, a reference to SimpleDb configuration bean is needed.
Several templates can be configured for an application.

Next, optionally, configure a spring data repository.

    <simpledb:repositories base-package="org.springframework.data.simpledb.sample.simpledb.repository" />
A repository can contain a __simpledb-template-ref__ tag which specifies the id of the template to be used for this repository.

    <simpledb:repositories base-package="org.springframework.data.simpledb.sample.simpledb.repository" simpledb-template-ref="template"/>
If no simpledb-template-ref is specified, the default value is __simpleDbTemplate__, so a template with this id must be present in the configuration file.

Here is a .xml configuration file containing a SimpleDb configuration bean, a template and a package for repositories:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:jpa="http://www.springframework.org/schema/data/jpa"
       xmlns:simpledb="http://www.springframework.org/schema/data/simpledb"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"

       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/data/jpa
        http://www.springframework.org/schema/data/jpa/spring-jpa.xsd
        http://www.springframework.org/schema/aop
        http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
        http://www.springframework.org/schema/data/simpledb
        http://www.springframework.org/schema/data/simpledb/spring-simpledb.xsd">

        <simpledb:repositories base-package="org.springframework.data.simpledb.sample.simpledb.repository" />

        <bean id="simpleDb" class="org.springframework.data.simpledb.core.SimpleDb">
            <property name="accessID" value="$AWS_ACCESS_ID" />
            <property name="secretKey" value="$AWS_SECRET_KEY"/>
            <property name="domainPrefix" value="$DOMAIN_PREFIX"/>
            <property name="domainManagementPolicy" value="$DOMAIN_MANAGEMENT_POLICY"/>
            <property name="consistentRead" value="$CONSISTENT_READ_VALUE"/>
        </bean>

        <bean id="simpleDbTemplate" class="org.springframework.data.simpledb.core.SimpleDbTemplate">
            <constructor-arg name="simpleDb" ref="simpleDb" />
        </bean>

        <bean class="org.springframework.data.simpledb.sample.simpledb.logging.LoggingConfiguration"/>

    </beans>

Next, create and entity to model your domain:

    public class SimpleDBUser {
        @org.springframework.data.annotation.Id
        private String itemName;
        //... additional properties here

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }
        public String getItemName() {
            return itemName;
        }

        //... additional getters and setters
    }

To specify the attribute holding the SimpleDB **itemName** you can either annotate one of the class attributes with the standard **org.springframework.data.annotation.Id** annotation, or you can simply define an **id** field as part of your domain class.

In addition to that, any attribute needs to have __getter__ and __setter__ in order to be persisted.
If a domain field does not contain getter and/or setter it will **not** be persisted into simpleDB.

Create a repository interface:

    public interface BasicSimpleDbUserRepository extends CrudRepository<SimpleDbUser, String> { }

Write a test client using repository:

    @RunWith(SpringJUnit4TestRunner.class)
    @ContextConfiguration("classpath:your-config-file.xml")
    public class BasicSimpleDbUserRepositoryTest {

        @Autowired
        BasicSimpleDbUserRepository repository;

        @Test
        public void sampleTestCase() {
            SimpleDbUser user = new SimpleDbUser();
            repository.save(user);

            user.setItemName("TestItemName");

            user = repository.save(user);

            Assert.notNull(repository.findAll());
        }
    }

Or write a test client using the SimpleDb template:

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = "classpath:simpledb-configured-template-context.xml")
    public class SimpleDbTemplateTest {
        @Autowired
        private SimpleDbOperations operations;

        @Test
        public void save_should_persist_single_item() {
            String itemName = "FirstItem";

            SimpleDbUser user = SimpleDbUserBuilder.createUserWithSampleAttributes(itemName);
    		operations.createOrUpdate(user);

    		SimpleDbUser foundUser = operations.read(user.getItemName(), user.getClass());

    		assertEquals(user.getItemName(), foundUser.getItemName());
    		assertEquals(user, foundUser);
    	}
    }
If only the template is used for working with SimpleDb, no repository should be defined in .xml configuration file.

### Using custom queries ###
SimpleDb native queries can be run using a custom **@Query** annotation.

Parameters can be bound to queries using  **@Param** annotation or by their position in method's signature if **?** are presents in queries.

Queries may return Single Values or Multiple values.
Is it possible for instance to select individual fields of a given Entity, by specifying the field name in the select condition.

    @Query(value = "select primitiveField from `testDB.simpleDbUser`")
    Set<Float> primitiveFieldSelect();

Also, whole entities can be returned as in the following example.

    @Query("select * from `testDB.simpleDbUser` where primitiveField = :primitiveField")
    List<SimpleDbUser> customSelectWithNamedParamsQuery(@Param(value="primitiveField") String primitiveField);

To select multiple fields of a given Entity, a query like the one bellow can be used.

    @Query(value = "select coreField from `testDB.simpleDbUser` where itemName()='Item_0'")
    List<List<Object>> selectCoreFields();

Queries are validated against method's returned type. The following query won't be run.

    @Query(value = "select * from `testDB.simpleDbUser`")
    List<String> customSelectAllWrongReturnType();

Custom queries can also be derived directly from the method name. For example, the following query

    List<SimpleDbUser> findByPrimitiveFieldGreaterThan(final float value);

is a valid query and will return all SimpleDbUsers having primitiveField greater than the specified value. Spring data supports a set of operators you can apply uppon your attributes, but we only support the ones that have an equivalent operator in simpleDb.

The following is the list of supported operators:

* Is, Equals, IsNot, Not
* IsGreaterThan, GreaterThan, IsLessThan, LessThan
* IsGreaterThanEqual, GreaterThanEqual, IsLessThanEqual, LessThanEqual
* Like, NotLike
* Between, IsBetween
* IsNotNull, IsNull
* In

To be noted: when using the LIKE operator, the provided method parametr must be of one of the following forms (from the simpleDb simpleDb API):

* %value
* value%
* %value%

Using an unsupported operator will result into a MappingException.
####@Query annotation ####

Query annotation may have the fallowing parameters:

* value
* select
* where

A query annotation can contain:

 * only the value parameter
 * a select parameter
 * a where parameter
 * a select and where parameter.

Any other combinations are invalid.

A query annotation with a value parameters must contain a valid simple db query.

    @Query(value = "select * from `testDB.simpleDbUser`")

A query with only a select parameter must contain a valid array of fields, and the domain name will be completed using the repository metadata.

    @Query(select = {"sampleAttribute", "sampleList"})
A query with only where parameter must contain a string containing a valid simpleDb where condition. This query will be generated as a "select * from 'domainName' " fallowed by given where condition.

    @Query(where = "sampleAttribute<='3' or sampleName like '%test'")
A query with select and where parameters must contain an array of fields for select parameter and a string representing a correct simpleDb condition for where parameter.

    @Query(select = {"item_id"}, where = "item_id >= `3` and item_id <= `5`")
The field representing the id of the entity will be replace in select and where clauses with itemName() before the query is executed.

### Paging ###
We support pagination by extending the **PagingAndSortingRepository** which provides a `Page<T> findAll(Pageable pageable)` method. Otherwise, you can also define the findAll method in any repository. The following repository defines the findAll paged query:

    public interface MyRepository extends Repository<SimpleDbUser, String> {
        Page<SimpleDbUser> findAll(Pageable pageable);
    }

Moreover, any custom annotated query can be paginated by simply adding a **Pageable** parameter to the query method's signature. The parameter must be placed after the mandatory parameters and the method's return type can be only `Page<T>` or `List<T>`. The following example depicts a few different query methods:

    @Query(value = "select * from `testDB.simpleDbUser` where primitiveField > ?")
    Page<SimpleDbUser> findUsers(float primitiveField, Pageable page);

    @Query(value = "select * from `testDB.simpleDbUser` where primitiveField > ?")
    List<SimpleDbUser> findUsersList(float primitiveField, Pageable page);

### @Configuration ###

Besides XML configuration, SimpleDb supports also Java based configuration. This means user can create classes annotated with @Configuration and produce beans later to be managed by the Spring container.

SimpleDb contains an abstract class called **AbstractSimpleDbConfiguration**. The class will configure the simpleDbTemplate bean. It contains one abstract method **getAWSCredentials** the user needs to implement providing the credentials(accessKey and secretId) for the AmazonDB. The remaining properties such as policy,  consistentRead,  domainPrefix can be set overrring the **setExtraProperties** method.

In order to use this java based configuration class the user must create his own configuration class:

    @Configuration
    public class SampleConfiguration extends AbstractSimpleDBConfiguration {

        @Override
        public AWSCredentials getAWSCredentials() {
            return new AWSCredentials("sampleAccessId", "sampleSecretKey");
        }

        @Override
         public void setExtraProperties(SimpleDb simpleDb) {
	    	simpleDb.setConsistentRead(true);
	    	simpleDb.setDomainPrefix(HostNameResolver.readHostname() + "testDB");
    	}
    }

The test client code will look like this:

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(classes = SampleConfiguration.class)
    public class SampleConfigurationTest {

        @Autowired
        private SimpleDbTemplate template;

        @Test
        public void testConfig() {
            assertNotNull(template);
       }
    }
The test client code needs to contain the **@ContextConfiguration** annotation for specifying which configuration class is to be used.

If the user wants to manipulate by himself the producing of the beans he is able to create his own configuration class without exteding the AbstractSimpleDbConfiguration class.

Here is an example with producing 2 simpleDbTemplates beans:

    @Configuration
    public class MySimpleDbConfiguration {

        @Bean
	    public SimpleDbTemplate simpleDBTemplate1(){
             SimpleDb simpleDb = new SimpleDb("foo1","bar1");
             simpleDb.setConsistentRead(true);
             simpleDb.setDomainPrefix("testDB_1");
             simpleDb.setDomainManagementPolicy("DROP_CREATE");
             simpleDb.afterPropertiesSet();
             return new SimpleDbTemplate(simpleDb);

         }

        @Bean
        public SimpleDbTemplate simpleDBTemplate2(){
             SimpleDb simpleDb = new SimpleDb("foo2","bar2");
             simpleDb.setConsistentRead(true);
             simpleDb.setDomainPrefix("testDB_2");
             simpleDb.afterPropertiesSet();
             return new SimpleDbTemplate(simpleDb);
         }
      }

And the test client code:

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(classes = MySimpleDbConfiguration.class)
    public class MyClass {

        @Autowired
        private SimpleDbTemplate simpleDBTemplate1;

         @Autowired
        private SimpleDbTemplate simpleDBTemplate2;
    }

As a note, user need to call also **afterPropertiesSet** method after the simpleDb object it's created, for extra processing.

### @EnableSimpleDbRepositories ###

Part of Java based configuration is also @EnableSimpleDbRepositories which offers support for activate the simpleDbRepositories. Instead of using an XML containg the element:

    <simpledb:repositories base-package="org.springframework.data.simpledb.sample.simpledb.repository" />
simply use the annotation and repositories will be loaded.

Below is an example:

    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration
    public class EnableSimpleDBRepositoriesAnnotationTest {

        @Configuration
	    @EnableSimpleDBRepositories(basePackages = "org.springframework.data.simpledb.sample.simpledb.repository")
	    static class Config {

		    @Bean
		    public SimpleDbOperations simpleDBTemplate() throws Exception {
			    SimpleDb simpleDb = new SimpleDb("<REDACTED_AWS_ACCESS_KEY>", "Nzy6w0iq8JI+DHgdiPPiuqixiMoWQmPhWFgQzOZY");
			    simpleDb.setConsistentRead(true);
			    simpleDb.setDomainPrefix(HostNameResolver.readHostname() + "testDB");
			    simpleDb.afterPropertiesSet();
			    return new SimpleDbTemplate(simpleDb);
		}
	    }

	    @Autowired
	    BasicSimpleDbUserRepository userRepository;

	    @Test
	    public void enable_repositories_should_be_used_by_core_spring_data() {
		    assertNotNull(userRepository);
	    }
}

### @Reference ###
We support spring-data-core standard @Reference annotation.
For each object annotated with @Reference, a new domain will be created and the object will be serialized into that domain.
In terms of SimpleDB, @Reference is suported for fields that are not primitives or primitive wrappers and don't contain the @Id annotation.

SimpleDBTemplate methods like createOrUpdate(), delete() check if entities contain @Reference annotations.
If a field is annotated with this annotation, it will be validated. Furthermore, if domain update policy is not NONE, SimpleDbTemplate will create a separate domain for the field.

For example let's check the following class with nested objects annotated with @Reference:

    public class SimpleDbReferences {

        @Id
        private String itemName;

    	@Reference
	    private FirstNestedEntity firstNestedEntity;

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public FirstNestedEntity getFirstNestedEntity() {
            return firstNestedEntity;
        }

        public void setFirstNestedEntity(FirstNestedEntity firstNestedEntity) {
            this.firstNestedEntity = firstNestedEntity;
    }

    public static class FirstNestedEntity {

        @Id
    	private String itemName;

        @Reference
    	private SecondNestedEntity secondNestedEntity;

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
         }

        public SecondNestedEntity getSecondNestedEntity() {
            return secondNestedEntity;
        }

        public void setSecondNestedEntity(SecondNestedEntity secondNestedEntity) {
            this.secondNestedEntity = secondNestedEntity;
        }
      }

     public static class SecondNestedEntity {

        @Id
    	private String itemName;

        public String getItemName() {
         return itemName;
        }

         public void setItemName(String itemName) {
            this.itemName = itemName;
        }

    }

and the following code which creates the entities:

    SimpleDbReferences ref = new SimpleDbReferences();
    FirstNestedEntity first = new FirstNestedEntity();
    SecondNestedEntity second = new SecondNestedEntity();
    first.setItemName("first");
    second.setItemName("second");
    ref.setFirstNestedEntity(first);
    first.setSecondNestedEntity(second);

After calling createOrUpdate method of the SimpleDbTemplate three domains will be created : testDB.simpleDbReferences, testDB.firstNestedEntity and testDB.secondNestedEntity.

The links between the domains are specified via SimpleDB attributes as shown bellow:

    testDB.simpleDbReferences.firstNestedEntity = "first"
    testDB.firstNestedEntity.secondNestedEntity = "second"

### @Persistent ###

The Spring Data standard `@Persistent` annotation is supported on a field. A field thus annotated will be persisted and populated even if there are no public getter and setter methods for the field. This can be useful for persisting properties which are not directly accessible to clients but are needed for transformation by other methods.

## Retries ##
Being a fully restfull database, the probability to retrieve an un-expected Service Unavailable Exception (Http 503 Exception) has to be handled appropriatelly.
An "abstraction" over the API is implemented that simplifies the user interaction with SimpleDB database.

The Service Unavailable Exception is a resource-not-being-available exception, for eg: the server communication is overloaded;

Curent release resolves this problem, by implementing an alghorithm for retry query the database when this exception is thrown by the database layer.
The retry mechanism is configurable, from Java Configuration Bean, or from within the context configuration xml file. The xml configuration overwrites the Java Configuration.

## Mapped SimpleDb Exception to Spring Exceptions ##
Each possible thrown SimpleDb Exception are mapped and translated to Spring Core, or Spring Data related Exceptions.

## Known Limitations ##

### Serialization limitations

When serializing fields of type List, Set or Map, a json object is created and is stored in database.
This json object contains the actual values and also class information about the serialized field.
Serializing/deserializing an object of type `Map<Object, Object>` is not supported by jackson, so no field of this type will correctly be serialized/deserialized.
(JSON object data structure is a map, a collection of name/value pairs, where the element names must be strings.)
From the reasons mentioned about `Map<String, Object>, Map<Integer, Object>` are *supported*

Amazon SimpleDB can only store values represented as string having a maximum width of 1024 characters. In the current implementation we can easily exceed this length if we serialize a long list, a long string etc.
To overcome this issue, the attribute values exceeding the length limit are split into **chunks** of maximum 1024 characters. Hence, an attribute **stringKey** having a value of 1030 characters long would be split into two attributes: **stringKey@1** having as value the first 1024 characters and **stringKey@2** having as value the last 6 characters. This mechanism is implemented both when serializing and deserializing the attributes.

### Primitive field conversions ###

The current version supports converting all primitive types but *Character*. More that that, *Float.MIN_VALUE* and *Double.MIN_VALUE* cannot be converted accurately.

### Delete
Both in the repository and the template, a method to delete an entity by ID is provided. Using this method will not cascade the deletion in case of @Reference attributes.

### Custom select
Methods annotated with @Query can run custom SimpleDb valid queries.

Since nested object fields are stored in SimpleDb as multiple Items

    public class Company {
        private Customer customer;
    }

will be stored in SimpleDb as a list of attributes for each customer field:
- customer.name
- customer.age
etc.

A select like the following won't be a SimpleDB valid select statement and __won't be executed__:

    select customer from `testDb.company`

Nevertheless the following will be a valid SimpleDb select statement and __will be executed__:

    select customer.name from `testDb.company`

Since we've implemented the **attribute chunks** mechanism for long values, partial queries are not yet supported on chuncked attributes. For example: if attribute **customer.name** would be chunked into **customer.name@1** and **customer.name@2** the following query will return no results

    select customer.name from `testDb.company`

Nevertheless, querying an entire entity would correctly deserialize the chuncked attributes. Hence, the following query will work:

    select * from `testDb.company`

Although Spring Data supports nested attributes in query methods, simpleDb custom queries derived from method names cannot use attributes from nested entities. For instance, the following query is not valid:

    SimpleDbUser findByNesteEntity_NesteField(int value);

### Paging
Currently, paginating partial annotated queries will return a collection of the queried entity instead of a collection of the queried partial fields. The following example is a valid partial query and each item in the collection will have the itemName and the requested partial fields populated with values. All the other fields will be empty.

    @Query(value = "select primitiveField from `testDB.simpleDbUser`")
    List<SimpleDbUser> pagedPartialQuery(Pageable page);

### Reference
Currently, @Reference serialization and deserialization is not supported for custom queries: fields marked with @Reference annotations are not allowed in the where clause of a custom query.

### Retries
The current timeout defaults to a fixed 400ms between each retry. This limitation needs to be translated to the Exponential Backoff algorithm( for eg: the first retry 400ms, the second 600ms, the third 1200ms )

### Design notes
[Repository Generation sequence diagram](http://www.websequencediagrams.com/?lz=dGl0bGUgUmVwb3NpdG9yeSBHZW5lcmF0aW9uCgpDbGllbnQtLT5TcHJpbmdEYXRhQ29yZToAHQhlIG15IHIANAhpZXMKbm90ZSByaWdodCBvZiBTaW1wbGVEYk9wAEwHczoAARMgaW50ZXJmYWNlXG5oYXMgYSBzaW5nbGUgY29uY3JldGUgAEIFbWVudACBEwVcbigAUQhUZW1wbGF0ZS5jbGFzcylcbnNpbWlsYXIgd2l0aCBIaWJlcm5hdGUAHwgKCgCBOw4tPgCBDhRpbnN0YW50aQAUHQCCKApGYWN0b3J5AH0GADENAIEeCQCBdgopCgpsb29wIEZvciBlYWNoIGphdmEgZmlsZSBpbgCCQQp5IHBhY2thZ2UAgR8SAIJ7D3BhcnMAgzQMTWV0YWRhdGEAggwGAIEOMmdldFRhcmdldACECQooAEwSKQoAgWkfAIQiEgCCJxJJbXBsCmVuZACDBRAtPgCEcgY6AIRODCByZWFkeSBmb3IgQEF1dG93aXJl&s=rose)

DEV_NOTES: Please use [Dillinger](http://dillinger.io/) when editing this file

# About this project

![3Pillar Global] (http://www.3pillarglobal.com/wp-content/themes/base/library/images/logo_3pg.png)

**Spring Data SimpleDB** is developed and maintained by [3Pillar Global](http://www.3pillarglobal.com/).

repository: amanurat/spring-data-simpledb

repo_name: amanurat/spring-data-simpledb


text:
# My House

## TODO

### General
* ~~Implement outside rooms (LaundryOutside, Patio, GymOutside, GarageSide, FrontEntry)~~
* ~~Dont trigger lights to turn on when presence ended, just start timer~~
* ~~Ensure light triggers all obey "motion enabled" and rename to be more generic~~
* ~~Security notifications when doors/windows/covers opened and sleeping or not home~~
* ~~Implement concept of supplemental lighting for feature lights~~
* Ignore lights on based on lux
* ~~Set google home volume based on time of day / bed presence~~
* Bin day notification
* Blinds https://everythingsmarthome.co.uk/esp8266/diy-motorised-smart-blinds/

### Presence
* Turn off ~~lights~~ and devices when left home
* Implement concept of "always on" switches so they dont get switched off by automations
* ~~Disable motion when no one home~~
* Turn off lights when someone left and other person is in bed
* Dog BT trackers

### Security
* open/close notification when sleeping

### Cooling / Heating
* Enable/Disable fan / air conditioning when room has presence for x and temperature is x

### Notifications
* ~~TTS and app notification depending on presence / occupancy~~
* ~~Low batteries~~ -TO BE TESTED
* ~~Device dropped from zigbee/wifi for x period~~ - TO BE TESTED
* Traffic to work notification
* Weather notifications
* Greeting notification with events since left
* Janet inspired conversation -https://github.com/Lentron/Janet---Home-Assistant/blob/master/packages/janet.yaml
* Calendar events upcoming, and time to leave

### Vacuum
* Stop vacuum when tv show started
* ~~Stop vacuum when someone returns home~~

### Room Specific

#### Laundry
* ~~Migrate washing machine automation~~ - TO BE TESTED

#### Master Bedroom
* ~~Get bed occupancy working~~
* Sleeping bayesian sensors
* Wake / Sleep automations
* ~~General motion based on wake/sleep~~
* ~~Master switches to turn off devices/lights~~
* Add double switch for fan
* ~~Bed accent lighting~~
* ~~Turn on / of lights depending on if bed state is off and has been off for > 10 minutes~~
* ~~Master off switches action depends on number of people in bed and people home~~
* Cycle secondary light colours
* Turn off secondary lights when everyone is in bed
** When someone gets in bed turn off
** When bed count changes but someone still in bed turn on
* ~~Turn down speaker volume when someone gone to bed~~

#### Ensuite Shower
* Turn on fan when humidity is high after shower
* ~~Turn off fan after on for x time~~  - TO BE TESTED

#### Ensuite Toilet
* ~~Turn off fan when on for x time~~ - TO BE TESTED

#### Bathroom
* ~~Turn off fan when on for x time~~ - TO BE TESTED

#### Pantry
* ~~Fridge left open notification~~ -  TO BE TESTED

#### Kitchen
* ~~Migrate dishwasher automation~~
* Trigger vacuum in kitchen after dishwasher on, if tv not on and no one in bed

#### Media
* ~~Figure out why lights turn off when chair has presence / power detected~~
* ~~Light off when movie playing~~ - TO BE TESTED
* ~~Lights back on when paused / finished~~ - TO BE TESTED
* TV / Amp power monitoring
* IR to turn on tv and amp
* Google voice to turn on tv etc

#### Study
* ~~Implement IoTLink for pc idle status override https://gitlab.com/iotlink/iotlink/-/wikis/Addons/Windows-Monitor~~
* Verify monitors turn off when pc off

#### Garage
* ~~Door left open notification~~
* ~~Disable motion when everyone in bed~~


text:
---
title: "Context References"
sub_link: "context/references"
meta_title: "Context References - Polyaxon Specification"
meta_description: "Params can be resolved based on literal values or can be resolved based on a reference."
visibility: public
status: published
tags:
  - specification
  - api
  - polyaxon
  - yaml
  - json
  - python
sidebar: "core"
---

## Overview

Param values can be resolved based on literal values or can be resolved based on a reference.
When a reference is used, it is important to not be confused about the source of the information.

When a reference is created, Polyaxon will automatically collect a lineage information and expose it in the lineage table under upstream/downstream tabs.

## Definition

Anytime a param is using the `ref` key, users should be aware that the `value` key is not pointing to the current run's context anymore, rather,
it's requesting information from the reference.

For example:

```yaml
params:
  param_upstream_op_uuid:
    ref: ops.upstream1
    value: globals.uuid
  param_upstream_op_input:
    ref: ops.upstream1
    value: inputs.in_name_foo
```

or from a pipeline:

```yaml
params:
  param_dag_uuid:
    ref: dag
    value: globals.uuid
  param_dag_input:
    ref: dag
    value: inputs.in_name_foo
```

The following `param_foo` is not going to use the current run `globals.*` instead it will use whatever run instance of the upstream operation,
which means that every time a dag is executed there will new runs with new uuids, one for the current run and one for the upstream run, `param_foo` will be pointing to the upstream run.

this is the only way to use `globals.*` of the upstream run without clashing with the default `globals.uuid` of the current run.
We made the decision to force an explicit request of any reference that does not belong to the current context via a parameter.

## References

Each parameter can use the following references:

 * `ref: runs.UUID`: if you need to request an information from some previous run and delegate the logic of fetching those values to Polyaxon to be performed automatically.
 * `ref: dag`: if defined in the context of a DAG, and you need to request some information from the pipeline that manages the DAG.
 * `ref: ops.NAME`: if defined in the context of a DAG, and you need to request some information from an upstream operation.

## Values

Each parameter with `ref` can request the following information that reference:

 * `globals`: All general context information from the reference as a dictionary.
 * `globals.*`: Specific general context value from the reference.
 * `io`: All Inputs/outputs/artifacts information from the reference as a dictionary `{"inputs": {}, "outputs": {}, "artifacts": {}}`.
 * `inputs`: All inputs (key -> value) from the reference as a dictionary.
 * `inputs.*`: Specific input value from the reference.
 * `outputs`: All outputs (key -> value) from the reference as a dictionary.
 * `outputs.*`: Specific output value from the reference.
 * `artifacts`: All artifacts lineage paths as a dictionary.
 * `artifacts.base`: The base path of the run, basically the path defined by `uuid`.
 * `artifacts.outputs`: The base outputs path of the run, basically the path defined by `uuid/outputs`.
 * `artifacts.*`: Specific path coming logged in the lineage table, e.g. `artifacts.tensorboard`.
 * `{"file": [..., ...], "dirs": [..., ...]}`: An [ArtifactsType](/docs/core/specification/types/#v1artifactstype) definition, and it can be used with `toInit` or can be passed to the `init` section.

## Exceptions

It's important to note that you cannot provide `ref` to joins' params or matrix params.
Each join constructs the references based on the query/sort/limit/offset specification.

repository: polyaxon/polyaxon

gha_language: Python

repo_name: polyaxon/polyaxon


text:
# PangoBot Version 0.1 (in development).

![Licence](https://img.shields.io/github/license/Jonasslv/pangobot)
![Commited](https://img.shields.io/github/last-commit/Jonasslv/pangobot/main)

Open Source discord bot for showing useful information in general about Pangolin Exchange.

Shows PNG price in the bot personal status.

Using p! prefix for commands.

# Automatic Functions (Turnable on/off)
- Send welcome DM message when a member enter the server with useful information. (Links and Rules)
- Reflect Twitter activity in sets chat room. (Github scrapped since you can easily do a webhook)

# Command List:

Server Commands:
- Help    (p!help)
  - Command List  (p!help cmd)
  - What's Pangolin (p!help pangolin)
  - Links    (p!help links) (Link to pangolin exchange, analytics, forum and official discord invite). Useful for using the bot in other discord servers.

- APY. Shows top APY pools.
  - p!apy

- Token check (Input Ticker/Token Name). Shows the current price for ticker/Token, Liquidity and 24h Volume
  - p!token PNG / p!token Pangolin

- Info check. Shows Exchange 24h Volume and total liquidity.
  - p!info

# Personal Commands:
- Alert (Input Ticker or Token Name/Price) (Set the bot to send you a DM if the price of a coin reach determined value).
  - p!alert PNG 4.50 / p!alert Pangolin 4.50

# Future possible Commands:
- Chart command.
- Top tokens.
- Command to input a wallet address to show info about all PGL pools of this wallet.
- Command to show PNG/PGL top wallet addresses.
- Current Governance proposals and % Votes (There's a way to query this?).
- Random pangolin GIFs?

repository: Jonasslv/pangobot

branch_name: refs/heads/main

repo_name: Jonasslv/pangobot


text:
# economyManager

## Unity version: 2020.1.4f1
A Unity framework to make an economy management game

The game is a 2D narrative focused base/staff/resource management sim set in a space station. The Player creates their character and the game begins as you set up your transport company in the space station.  This process is mainly menu and text driven, like the away missions in Metal Gear Solid: Peace Walker and Metal Gear Solid 5: The Phantom Pain but instead of sending out a team of mercenaries, you send your ships out and they come back with a report of what went down, like how much money they made, if they ran into any trouble, damage taken and repairs needed, experience points earned, etc...
The game follows an internal clock, a day to day cycle that turn into seasons and eventually years.

There are eventually other ways to make money too, like resource collecting, gambling and other stuff but this is the main one, and the one that moves the main story forward.

## Features
- Menu Driven
- Randomly Generated NPCs (Names, looks, etc...) from a list of names and surnames.
- "Email" inbox with plot and flavour text
- Upgrades for pilots (complete missions faster etc...)
- For Missions that take longer or "Special Missions" (more than 10 minutes), there is a chance it might not be succesful. you get a special report once it's completed telling you if it worked out, it it didn't and why.
- "Mailbox"/"Message Board" where the player recieves messages with text to forward the plot or for worldbuilding so that the pacing and flow of the game isn't compromised.

repository: oneleif/economyManager

branch_name: refs/heads/develop

gha_language: C#

repo_name: oneleif/economyManager


text:
---
title: Renyoo API Reference

language_tabs: # must be one of https://git.io/vQNgJ
  - shell: cURL

toc_footers:
  - Sign Up for a Developer Key
  - Get the latest Postman collection # must be linked to a GDrive with managed access
  - Documentation Powered by Slate

includes:
  - errors

search: true
---

# Introduction

Welcome to Renyoo API !! If you are here, you know what Renyoo is all about and chances are you've contributed, in whichever capacity, to make it what it is today. Yeah i know the negative connations .. that is intentional :).

So without much ado, lets do what you intend to do here. The UI is pretty self-explanatory and in this age of Digital Navigation, am pretty sure you will not be lost here.

Browse through the menu or search to find your endpoint of interest. Click on one to read about the endpoint in detail and go through the code examples and sample request/response to understand it better. Reach out to us<EMAIL_ADDRESS>in case you need any further assistance.

Do visit here often and more importantly, contribute to this documentation regularly and make the world a better place for your fellow devlopers.

# Authentication

> To authorize, use this code:

```shell
# With shell, you can just pass the correct header with each request
curl "api_endpoint_here"
  -H "Authorization: meowmeowmeow"
```

> Make sure to replace `meowmeowmeow` with your API key.

I am not sure if Renyoo uses API keys to allow access to the API. If it is, this section must guide on how to do that.

In case of using API keys, Renyoo expects the API key to be included in all API requests to the server in a header that looks like the following:

`Authorization: meowmeowmeow`

You must replace meowmeowmeow with your personal API key.

# Posts

## Get All Posts

```shell
curl "http://example.com/api/Posts"
  -H "Authorization: meowmeowmeow"
```

> The above command returns JSON structured like this:

```json
[
  {
    "id": 1,
    "name": "Fluffums",
    "breed": "calico",
    "fluffiness": 6,
    "cuteness": 7
  },
  {
    "id": 2,
    "name": "Max",
    "breed": "unknown",
    "fluffiness": 5,
    "cuteness": 10
  }
]
```

This endpoint retrieves all Posts.

### HTTP Request

`GET http://example.com/api/Posts`

### Query Parameters

Parameter | Default | Description
--------- | ------- | -----------
include_cats | false | If set to true, the result will also include cats.
available | true | If set to false, the result will include Posts that have already been adopted.

Remember — a happy Post is an authenticated Post!

## Get a Specific Post

```shell
curl "http://example.com/api/Posts/2"
  -H "Authorization: meowmeowmeow"
```

> The above command returns JSON structured like this:

```json
{
  "id": 2,
  "name": "Max",
  "breed": "unknown",
  "fluffiness": 5,
  "cuteness": 10
}
```

This endpoint retrieves a specific Post.

Inside HTML code blocks like this one, you can't use Markdown, so use <code> blocks to denote code.

### HTTP Request

`GET http://example.com/Posts/<ID>`

### URL Parameters

Parameter | Description
--------- | -----------
ID | The ID of the Post to retrieve

## Delete a Specific Post

```shell
curl "http://example.com/api/Posts/2"
  -X DELETE
  -H "Authorization: meowmeowmeow"
```

> The above command returns JSON structured like this:

```json
{
  "id": 2,
  "deleted" : ":("
}
```

This endpoint deletes a specific Post.

### HTTP Request

`DELETE http://example.com/Posts/<ID>`

### URL Parameters

Parameter | Description
--------- | -----------
ID | The ID of the Post to delete

repository: sandeep-gleecus/slate

repo_name: sandeep-gleecus/slate


text:
# GitHub Actions Workflows

workloads run using [GitHub self-hosted runners](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners)

## Setup

1. Create a GCE instance for running tests
    - VM should be at least n1-standard-4 with 50GB persistent disk
    - VM should be created with no service account
2. SSH into new VM through Google Cloud Console
3. Follow the instructions to add a new runner on the [Actions Settings page](https://github.com/GoogleCloudPlatform/stackdriver-sandbox/settings/actions) to authenticate the new runner
4. Set GitHub Actions as a background service
    - `sudo ~/actions-runner/svc.sh install ; sudo ~/actions-runner/svc.sh start`
5. Run the following command to install dependencies
    - `wget -O - https://raw.githubusercontent.com/GoogleCloudPlatform/stackdriver-sandbox/master/.github/workflows/install-dependencies.sh | bash`

## Setup - Push Enabled

Some actions require authentication to GCP to push container images. These workers need extra setup

**Note:** only one worker in the pool requires this additional setup. Try to avoid granting privileges to workers that don't need them

1. Provision the VM with a service account with write access to your GCR data bucket
2. Ensure `PROJECT_ID` is set properly in the [repo's secrets](https://github.com/GoogleCloudPlatform/stackdriver-sandbox/settings/secrets)
3. Tag the new worker with `push-privilege` on the [Actions Settings page](https://github.com/GoogleCloudPlatform/stackdriver-sandbox/settings/actions)

---
## Workflows

### ci.yaml

#### Triggers

- commits pushed to master
- PRs to master
- PRs to release/ branches

#### Actions

- ensures kind cluster is running
- builds all containers in src/
- deploys local containers to kind
  - ensures all pods reach ready state
  - ensures HTTP request to frontend returns HTTP status 200

### push-master.yaml

#### Triggers
- commits pushed to master

#### Actions
- builds and pushes images to official GCR repo tagged with git commit
- builds and pushes images to official GCR repo tagged as latest

### push-tags.yaml

#### Triggers
- tags pushed to repo

#### Actions
- builds and pushes images to official GCR repo tagged with git tag name

repository: ftmorsun/stackdriver-sandbox

repo_name: ftmorsun/stackdriver-sandbox


text:
# Running SQL Statements

## Running a Common SQL Statement

To enable an application to operate data in the database by running SQL statements \(statements that do not need to transfer parameters\), perform the following operations:

1.  Create a statement object by calling the  **createStatement**  method in  **Connection**.

    ```
    Connection conn = DriverManager.getConnection("url","user","password");
    Statement stmt = conn.createStatement();
    ```

2.  Run the SQL statement by calling the  **executeUpdate**  method in  **Statement**.

    ```
    int rc = stmt.executeUpdate("CREATE TABLE customer_t1(c_customer_sk INTEGER, c_customer_name VARCHAR(32));");
    ```

    >![](public_sys-resources/icon-note.gif) **NOTE:**
    >If an execution request \(not in a transaction block\) received in the database contains multiple statements, the request is packed into a transaction.  **VACUUM**  is not supported in a transaction block. If one of the statements fails, the entire request will be rolled back.

3.  Close the statement object.

    ```
    stmt.close();
    ```

## Running a Prepared SQL Statement

Prepared statements are complied and optimized once but can be used in different scenarios by assigning multiple values. Using prepared statements improves execution efficiency. If you want to run a statement for several times, use a precompiled statement. Perform the following operations:

1.  Create a prepared statement object by calling the prepareStatement method in Connection.

    ```
    PreparedStatement pstmt = con.prepareStatement("UPDATE customer_t1 SET c_customer_name = ? WHERE c_customer_sk = 1");
    ```

2.  Set parameters by calling the setShort method in PreparedStatement.

    ```
    pstmt.setShort(1, (short)2);
    ```

3.  Run the prepared statement by calling the executeUpdate method in PreparedStatement.

    ```
    int rowcount = pstmt.executeUpdate();
    ```

4.  Close the prepared statement object by calling the close method in PreparedStatement.

    ```
    pstmt.close();
    ```

## Calling a Stored Procedure

To call an existing stored procedure through JDBC in openGauss, perform the following operations:

1.  Create a call statement object by calling the  **prepareCall**  method in  **Connection**.

    ```
    Connection myConn = DriverManager.getConnection("url","user","password");
    CallableStatement cstmt = myConn.prepareCall("{? = CALL TESTPROC(?,?,?)}");
    ```

2.  Set parameters by calling the  **setInt**  method in  **CallableStatement**.

    ```
    cstmt.setInt(2, 50);
    cstmt.setInt(1, 20);
    cstmt.setInt(3, 90);
    ```

3.  Register an output parameter by calling the  **registerOutParameter**  method in  **CallableStatement**.

    ```
    cstmt.registerOutParameter(4, Types.INTEGER);  // Register an OUT parameter of the integer type.
    ```

4.  Call the stored procedure by calling the  **execute**  method in  **CallableStatement**.

    ```
    cstmt.execute();
    ```

5.  Obtain the output parameter by calling the  **getInt**  method in  **CallableStatement**.

    ```
    int out = cstmt.getInt(4);  // Obtain the OUT parameter.
    ```

    Example:

    ```
    // The following stored procedure (containing the OUT parameter) has been created:
    create or replace procedure testproc
    (
        psv_in1 in integer,
        psv_in2 in integer,
        psv_inout in out integer
    )
    as
    begin
        psv_inout := psv_in1 + psv_in2 + psv_inout;
    end;
    /
    ```

6.  Close the call statement by calling the  **close**  method in  **CallableStatement**.

    ```
    cstmt.close();
    ```

    >![](public_sys-resources/icon-note.gif) **NOTE:**
    >-   Many database classes such as Connection, Statement, and ResultSet have a close\(\) method. Close these classes after using their objects. Closing Connection will close all the related Statements, and closing a Statement will close its ResultSet.
    >-   Some JDBC drivers support named parameters, which can be used to set parameters by name rather than sequence. If a parameter has the default value, you do not need to specify any parameter value but can use the default value directly. Even though the parameter sequence changes during a stored procedure, the application does not need to be modified. Currently, the openGauss JDBC driver does not support this method.
    >-   openGauss does not support functions containing OUT parameters, or stored procedures and function parameters containing default values.

    >![](public_sys-resources/icon-notice.gif) **NOTICE:**
    >-   If JDBC is used to call a stored procedure whose returned value is a cursor, the returned cursor cannot be used.
    >-   A stored procedure and an SQL statement must be run separately.

## Batch Processing

When a prepared statement processes multiple pieces of similar data, the database creates only one execution plan. This improves compilation and optimization efficiency. Perform the following operations:

1.  Create a prepared statement object by calling the prepareStatement method in Connection.

    ```
    Connection conn = DriverManager.getConnection("url","user","password");
    PreparedStatement pstmt = conn.prepareStatement("INSERT INTO customer_t1 VALUES (?)");
    ```

2.  Call the setShort parameter for each piece of data, and call addBatch to confirm that the setting is complete.

    ```
    pstmt.setShort(1, (short)2);
    pstmt.addBatch();
    ```

3.  Perform batch processing by calling the executeBatch method in PreparedStatement.

    ```
    int[] rowcount = pstmt.executeBatch();
    ```

4.  Close the prepared statement object by calling the close method in PreparedStatement.

    ```
    pstmt.close();
    ```

    >![](public_sys-resources/icon-note.gif) **NOTE:**
    >Do not terminate a batch processing action when it is ongoing; otherwise, database performance will deteriorate. Therefore, disable automatic commit during batch processing. Manually commit several rows at a time. The statement for disabling automatic commit is  **conn.setAutoCommit\(false\);**.


text:
# HTTPSERVER

A tiny concurrent and fault-tolerant HTTP server.

## Usage

### Using Docker:
Run `docker-compose up` and send requests to localhost:8000 with the paths defined in app/myapp.exs.

Everytime you make a change in a file, please run `docker-compose down`and `docker-compose up`.

If you want to make use of this application without docker, please install elixir with erlang v22. After you can create an app file:

```elixir
# in myapp.exs
defmodule MyApp do
  # handle the / path
  def call(%{method: "HEAD", path: "/"}),
    do: %{code: 200, type: "text/plain", body: ""}

  # everything else is a 404 response
  def call(_),
    do: %{code: 404, body: "The requested resource was not found"}
end
```
### To run locally

Build the script:

```shell
mix deps.get
mix escript.build
```

Then start the server:

```shell
./http_server examples/myapp.exs --port 3000
```

And send request to the given port.

License: MIT

gha_language: Elixir


text:
# Pyrenophora dactylidis Ammon, 1963 SPECIES

#### Status
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Phytopath. Z. 47(3): 256 (1963)

#### Original name
Pyrenophora dactylidis Ammon, 1963

### Remarks
null

repository: mdoering/backbone

repo_name: mdoering/backbone


text:
---
layout: default
---

# 1997-02-05 - Re: "alt.cypherpunks" people?

## Header Data

From: Anil Das<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: 3c866a72ade1e929a05f515f97042949105c2e4f60f2c5064863d42e17348501

Message ID<EMAIL_ADDRESS>Reply To<EMAIL_ADDRESS>UTC Datetime: 1997-02-05 01:18:23 UTC

Raw Date: Tue, 4 Feb 1997 17:18:23 -0800 (PST)

## Raw message

```
{% raw  %}From: Anil Das<EMAIL_ADDRESS>Date: Tue, 4 Feb 1997 17:18:23 -0800 (PST)
To<EMAIL_ADDRESS>Subject: Re: "alt.cypherpunks" people?
In-Reply-To<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Adam Back wrote:
>
> What do people think of starting an alt.cypherpunks USENET newsgroup?
>

I have only one objection. I will never post to an Usenet group
under my real email address for fear of ending up in spammer
databases.

--
Anil Das

{% endraw %}
```

## Thread

+ Return to [February 1997](/archive/1997/02)

+ Return to "[Anil Das <das@sgi.com>](/authors/anil_das_das_at_sgi_com_)"

+ _Unknown thread root_
  + 1997-02-05 (Tue, 4 Feb 1997 17:18:23 -0800 (PST)) - Re: "alt.cypherpunks" people? - _Anil Das<EMAIL_ADDRESS>


text:
---
title: Understanding BASIC
layout: post
author: billy.craddock
permalink: /understanding-basic/
source-id: 1lZemfUh-m7SD91qiJMZ7YmEUwMbPmcbUYCGAdRxK4oo
published: true
---

    Title
    Understanding the basics-BASIC
    Date
    13/09/16

    Starting point:
    Start The Code In The Book

    Target for this lesson?
    Understanding the basics-BASIC

    Did I reach my target?
(add details to "Lesson Review")
    I did reach my target as I got to complete 3 scripts and saved them.

    Lesson Review

    How did I learn? What strategies were effective?

    I learnt by following the book given out at the start of the lesson and followed the instructions on there. It took some reading and some experimenting but eventually me and my partner got 3 scripts all saying different things on them onto our memory sticks. The effective strategies I used where just to listen and do what it said in the book because that had most of the useful information.

    What limited my learning? Which habits do I need to work on?

    The things that limited my learing were that I kept getting distracted by other people and helping them then actually working on my own work and developing that. Like last week, I still need to majorly work on not getting distracted.

    What will I change for next time? How will I improve my learning?

    I will improve my learning by taking more chances and seeing if they work and if they don't work, seeing what I can do to make them work. If they still don’t work I will revert to the book and if all else fails, I’ll ask for help from my classmates or the teacher as I will learn nothing by constantly asking for a teacher’s help.