text:
---
title: "\n\t\t\t\tI Went To The Hospital and All I Got Was This Lousy Prescription\t\t"
date: 2012-05-28 13:01:00 Z
categories:
- jim
author<EMAIL_ADDRESS>comments: true
excerpt: "\n\t\t\t\t\t\t"
layout: post
link: https://jim.am/i-went-to-the-hospital-and-all-i-got-was-this-lousy-prescription/
wordpress_id: 5287
---

[![](http://jim.am/images/2012/05/drugs.png)](http://jim.am/images/2012/05/drugs.png)

It always happened in the library. I could feel it coming sometimes and then other times it would hit me like a Mack Truck.  I’m epileptic and as a kid I would have big seizures that would take over my entire body but  I would also just have leg seizures too where my entire right leg would shake uncontrollably

And for some reason, I remember that library days were worse. You’d be in class with all your friends in your bad 1970s wear (dad, plaid pants - really?) and the shaking would start and continue. I’d lunge for the table to hang on while my leg shook and shook and shook and I couldn’t do a thing about it.

What I remember being the worst about this was the embarrassment - that I wasn’t normal, that I didn’t fit in. I had epilepsy. I was different. Luckily, with either my age or the meds or a bit of luck I outgrew the shakes and spent a good part of my life without any epileptic symtoms at all.

Then in my early 30s the cat came back and I decided it would be a good idea to have a seizure in the checkout lane at the grocery store. Twice.  For some reason, the checkout lanes and grocery stores don’ t mix. Luckily, there’s a drug for that and it’s called dilantin and for years and years and years I’ve been happily functioning with the right amount of dilantin in my bloodstream

All that changed about a week ago, I started to feel a bit woozy, for lack of a better term. No seizures, and not really dizzy per se, just weird. Just not right. Being a man, I did what anybody would do: I ignored it. Until last night when I got to experience my very first hospital visit in the USA.

Finally, B had enough of me being weird and out of sorts so off to the Emergency Room we go. In Canada, I had the pleasure of paying a whole lot of taxes and In return I would get free health care. In  the USA, if you don’t  have health care you are hosed. Admitting in emergency in the US is far different, as there’s an extra step in getting you admitted. I call it  the money room.

Now, I’m not up on the intricacies of health care in the United States, but in Canada you have to show proof of your ‘health card’ and that’s pretty much it.  In the US, they want to be certain of your ability to pay. There’s also differences in how they treat once you get in the door and pass the payment screening, but once you’re in they’ll order every test and plug you in to so many doo-hickeys your head will spin (In my case, it already was)

Upon admittance I felt ‘woozy’. There’s no technical term for ‘woozy’ and they didn’t know what to do with me but once admitted - the hospital performed every test they could think of, and I had:

  *

bloodwork

  *

cat scan

  *

chest x-ray

  *

ekg

I fear the hospital bill for all this if B had not included me on her insurance plan. One of the differences I found in my very first visit to a US hospital was at the end when the released me I was given a list of specific instructions and who to call, what to take and how to continue now that I’ve been released.

After all the tests, it was determined my dilantin levels to be too low, so they’ve upped the prescription and I’m to call  and make an appointment with an neurologist now that I’m back home to continue with the next step.

The moral of this story?

If you feel ill, get fixed. Maybe it’s the Canadian in me showing through but they have lots of doctors and technical stuff at hospitals and if  you have insurance - go. If you don’t have insurance, I would do my best to get health insurance at any cost in the USA.

Listen to your doctor. A few months ago, I got a call from my new Doctor in the USA after some bloodwork was done and they called and said my dilantin levels were low. I didn’t think too much about it  because I have been taking the exact same dose for years and years - what could change I thought?

Apparently I was wrong and my levels had changed and even though I didn’t have an epileptic seizure, I came close, and made others worry due to my stubborn/stupid self diagnosis. I’m not  a Doctor and I don’t play one on TV either

Lessons Learned:

Do what your wife says.

Do what your doctor says.

Do get help if you feel ill.

Don’t self prescribe.

Bring a book.

Hospitals here have Tim Hortons

repository: ramseeker/sidey

extension: markdown

repo_name: ramseeker/sidey


text:
# CSS Grid example for Vaadin

Small example how to use examples from https://gridbyexample.com/examples/ with Vaadin.
View is implemented [as a PolymerTemplate](https://github.com/samie/cssgridlayout/blob/master/src/main/webapp/frontend/main-view.html) which includes both HTML and CSS.

To run the project, run `mvn jetty:run` and open [http://localhost:8080](http://localhost:8080) in browser.

To update to the latest available Vaadin release, issue `mvn
versions:update-properties`

license: Unlicense

repository: samie/cssgridlayout

branch_name: refs/heads/master

extension: md

gha_language: HTML

gha_license_id: Unlicense

license_type: permissive

repo_name: samie/cssgridlayout


text:
---
published: true
layout: post
title: (Bash) Let `echo` print newline using `\n`
---

By default `echo` simply prints `\n` literally as is, instead of printing a newline.
To force it to print newline, use `-e` flag to parse as regex, e.g.:
```
echo "Hello\nWorld!"      # Prints "Hello\nWorld!" in a single line
echo -e "Hello\nWorld!"   # Prints "Hello", breaks line, then "World!"
```

Or, simply use `printf` instead.

References:
- <https://stackoverflow.com/questions/8467424/echo-newline-in-bash-prints-literal-n?rq=1>

license: MIT

path: /_posts/2021-10-19-Bash echo print newline.md

filename: 2021-10-19-Bash echo print newline.md


text:
# Creating a new user on Ubuntu Server
When setting up a new Ubuntu linux server, the first thing you should do is create a separate user to administer the machine, instead of using the root account. Additionally, this would allow you to set up accounts for multiple users to have access to the server. Since I always seem to Google the steps necessary to do this, I figured I'd document the couple of commands needed to make this happen.

Side note: if you're not logged on as the root user, you'll need to add `sudo` to the front of your commands to make this work.

To create a user, type:
```
adduser [insert user name here]
```

Type in and confirm a new password for the user.

You'll then be prompted to answer a few questions about the user (Name, location, phone number, etc.) I usually just enter the name and leave the rest of the fields blank, but they could be useful in an enterprise setting.

Now you have a user that can login to the server and run some basic commands. In order to do administrative work, however, the user will need to have sudo access.

To do this, enter the following command:
```
visudo
```

A file will appear with a bunch of information related to sudo users. You'll need to find the line that looks like this:

```
root	ALL=(ALL:ALL) ALL
```

Using the format shown above, use the new user's name in place of root.  If you type `logout` you'll be signed out as root. Using the new user account we just set up, sign into the server. Anytime you run a command that requires advanced privileges, add `sudo` to the start of it and you'll have full control over the server!

repository: boldlybryan/til

repo_name: boldlybryan/til


text:
### [CVE-2020-36642](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36642)
![](https://img.shields.io/static/v1?label=Product&message=jobe&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%201.0%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-77%20Command%20Injection&color=brighgreen)

### Description

A vulnerability was found in trampgeek jobe up to 1.6.x and classified as critical. This issue affects the function run_in_sandbox of the file application/libraries/LanguageTask.php. The manipulation leads to command injection. Upgrading to version 1.7.0 is able to address this issue. The name of the patch is 8f43daf50c943b98eaf0c542da901a4a16e85b02. It is recommended to upgrade the affected component. The identifier VDB-217553 was assigned to this vulnerability.

### POC

#### Reference
- https://github.com/trampgeek/jobe/issues/39

#### Github
- https://github.com/Live-Hack-CVE/CVE-2020-36642

repository: trickest/cve

branch_name: refs/heads/main

gha_license_id: MIT

repo_name: trickest/cve


text:
### 2017-02-18

#### swift
* [
        KelvinJin / AnimatedCollectionViewLayout
](https://github.com/KelvinJin/AnimatedCollectionViewLayout):
        A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.

* [
        WenchaoD / FSPagerView
](https://github.com/WenchaoD/FSPagerView):
        FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders.

* [
        saoudrizwan / Dance
](https://github.com/saoudrizwan/Dance):
        A radical & elegant animation library built for iOS.

* [
        roberthein / TinyConstraints
](https://github.com/roberthein/TinyConstraints):
        Nothing but sugar.

* [
        vsouza / awesome-ios
](https://github.com/vsouza/awesome-ios):
        A curated list of awesome iOS ecosystem, including Objective-C and Swift Projects

* [
        631106979 / WCLShineButton
](https://github.com/631106979/WCLShineButton):
        This is a UI lib for iOS. Effects like shining.

* [
        eggswift / ESTabBarController
](https://github.com/eggswift/ESTabBarController):
        ESTabBarController is a Swift model for customize UI, badge and adding animation to tabbar items. Support lottie!

* [
        lkzhao / Hero
](https://github.com/lkzhao/Hero):
        Elegant transition library for iOS & tvOS

* [
        lhc70000 / iina
](https://github.com/lhc70000/iina):
        The modern video player for macOS.

* [
        malcommac / Hydra
](https://github.com/malcommac/Hydra):
        Promises & Await - Write better async code in Swift

* [
        raywenderlich / swift-algorithm-club
](https://github.com/raywenderlich/swift-algorithm-club):
        Algorithms and data structures in Swift, with explanations!

* [
        LinXunFeng / LXFWeChat
](https://github.com/LinXunFeng/LXFWeChat):
        Swift 3.0 WeChat

* [
        realm / SwiftLint
](https://github.com/realm/SwiftLint):
        A tool to enforce Swift style and conventions.

* [
        ninjaprox / NVActivityIndicatorView
](https://github.com/ninjaprox/NVActivityIndicatorView):
        Collection of awesome loading animations

* [
        Ramotion / folding-cell
](https://github.com/Ramotion/folding-cell):
        FoldingCell is an expanding content cell inspired by folding paper material

* [
        SwiftyJSON / SwiftyJSON
](https://github.com/SwiftyJSON/SwiftyJSON):
        The better way to deal with JSON data in Swift

* [
        remirobert / Dotzu
](https://github.com/remirobert/Dotzu):

📱👀 In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.

* [
        ReactiveX / RxSwift
](https://github.com/ReactiveX/RxSwift):
        Reactive Programming in Swift

* [
        Moya / Moya
](https://github.com/Moya/Moya):
        Network abstraction layer written in Swift.

* [
        danielgindi / Charts
](https://github.com/danielgindi/Charts):
        Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

* [
        xmartlabs / Eureka
](https://github.com/xmartlabs/Eureka):
        Elegant iOS form builder in Swift

* [
        PerfectlySoft / Perfect
](https://github.com/PerfectlySoft/Perfect):
        Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)

* [
        Alamofire / Alamofire
](https://github.com/Alamofire/Alamofire):
        Elegant HTTP Networking in Swift

* [
        nickoneill / PermissionScope
](https://github.com/nickoneill/PermissionScope):
        Intelligent iOS permissions UI and unified API

* [
        onevcat / Kingfisher
](https://github.com/onevcat/Kingfisher):
        A lightweight, pure-Swift library for downloading and caching images from the web.

#### objective-c
* [
        airbnb / lottie-ios
](https://github.com/airbnb/lottie-ios):
        An iOS library to natively render After Effects vector animations

* [
        alibaba / BeeHive
](https://github.com/alibaba/BeeHive):

🐝 BeeHive is a solution for iOS Application module programs, it absorbed the Spring Framework API service concept to avoid to coupling between modules.

* [
        WenchaoD / FSCalendar
](https://github.com/WenchaoD/FSCalendar):
        A fully customizable iOS calendar library, compatible with Objective-C and Swift

* [
        nerdycat / NerdyUI
](https://github.com/nerdycat/NerdyUI):
        An easy way to create and layout UI components for iOS.

* [
        Jasonette / JASONETTE-iOS
](https://github.com/Jasonette/JASONETTE-iOS):

📡 Native App over HTTP, on iOS

* [
        Naituw / HackingFacebook
](https://github.com/Naituw/HackingFacebook):
        Kill Facebook for iOS's SSL Pinning

* [
        Draveness / iOS-Source-Code-Analyze
](https://github.com/Draveness/iOS-Source-Code-Analyze):
        深入解析 iOS 开源项目

* [
        linkedin / bluepill
](https://github.com/linkedin/bluepill):
        Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine

* [
        banchichen / TZImagePickerController
](https://github.com/banchichen/TZImagePickerController):
        一个支持多选、选原图和视频的图片选择器，同时有预览、裁剪功能，支持iOS6+。 A clone of UIImagePickerController, support picking multiple photos、original photo、video, also allow preview photo and video, support iOS6+

* [
        realm / realm-cocoa
](https://github.com/realm/realm-cocoa):
        Realm is a mobile database: a replacement for Core Data & SQLite

* [
        rs / SDWebImage
](https://github.com/rs/SDWebImage):
        Asynchronous image downloader with cache support as a UIImageView category

* [
        kevinzhow / PNChart
](https://github.com/kevinzhow/PNChart):
        A simple and beautiful chart lib used in Piner and CoinsMan for iOS

* [
        square / Valet
](https://github.com/square/Valet):
        Valet lets you securely store data in the iOS or OS X Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

* [
        iphone5solo / PYSearch
](https://github.com/iphone5solo/PYSearch):

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .

* [
        mwaterfall / MWPhotoBrowser
](https://github.com/mwaterfall/MWPhotoBrowser):
        A simple iOS photo and video browser with grid view, captions and selections.

* [
        jdg / MBProgressHUD
](https://github.com/jdg/MBProgressHUD):
        MBProgressHUD + Customizations

* [
        ibireme / YYKit
](https://github.com/ibireme/YYKit):
        A collection of iOS components.

* [
        Kapeli / Dash-iOS
](https://github.com/Kapeli/Dash-iOS):
        Dash gives your iPad and iPhone instant offline access to 150+ API documentation sets

* [
        CocoaLumberjack / CocoaLumberjack
](https://github.com/CocoaLumberjack/CocoaLumberjack):
        A fast & simple, yet powerful & flexible logging framework for Mac and iOS

* [
        marcuswestin / WebViewJavascriptBridge
](https://github.com/marcuswestin/WebViewJavascriptBridge):
        An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews

* [
        jessesquires / JSQMessagesViewController
](https://github.com/jessesquires/JSQMessagesViewController):
        An elegant messages UI library for iOS

* [
        Flipboard / FLEX
](https://github.com/Flipboard/FLEX):
        An in-app debugging and exploration tool for iOS

* [
        Instagram / IGListKit
](https://github.com/Instagram/IGListKit):
        A data-driven UICollectionView framework for building fast and flexible lists.

* [
        johanneslumpe / react-native-fs
](https://github.com/johanneslumpe/react-native-fs):
        Native filesystem access for react-native

* [
        mstarke / MacPass
](https://github.com/mstarke/MacPass):
        A native OS X KeePass client

#### go
* [
        wallix / awless
](https://github.com/wallix/awless):
        A Mighty CLI for AWS

* [
        tj / mmake
](https://github.com/tj/mmake):
        Modern Make

* [
        muesli / beehive
](https://github.com/muesli/beehive):
        A flexible event and agent system with lots of bees

* [
        mholt / caddy
](https://github.com/mholt/caddy):
        Fast, cross-platform HTTP/2 web server with automatic HTTPS

* [
        asciimoo / wuzz
](https://github.com/asciimoo/wuzz):
        Interactive cli tool for HTTP inspection

* [
        golang / go
](https://github.com/golang/go):
        The Go programming language

* [
        shiyanhui / hero
](https://github.com/shiyanhui/hero):
        A handy, fast and powerful go template engine.

* [
        docker / docker
](https://github.com/docker/docker):
        Docker - the open-source application container engine

* [
        cockroachdb / cockroach
](https://github.com/cockroachdb/cockroach):
        CockroachDB - the scalable, survivable, strongly-consistent SQL database

* [
        kubernetes / kubernetes
](https://github.com/kubernetes/kubernetes):
        Production-Grade Container Scheduling and Management

* [
        avelino / awesome-go
](https://github.com/avelino/awesome-go):
        A curated list of awesome Go frameworks, libraries and software

* [
        meshbird / meshbird
](https://github.com/meshbird/meshbird):
        Distributed private networking

* [
        astaxie / build-web-application-with-golang
](https://github.com/astaxie/build-web-application-with-golang):
        A golang ebook intro how to build a web with golang

* [
        dimonomid / geekmarks
](https://github.com/dimonomid/geekmarks):
        API-Driven, Geeky Bookmarking Service

* [
        grafana / grafana
](https://github.com/grafana/grafana):
        The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & More

* [
        gogits / gogs
](https://github.com/gogits/gogs):
        Gogs is a painless self-hosted Git service.

* [
        hashicorp / terraform
](https://github.com/hashicorp/terraform):
        Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.

* [
        pingcap / tidb
](https://github.com/pingcap/tidb):
        TiDB is a distributed NewSQL database compatible with MySQL protocol

* [
        spf13 / hugo
](https://github.com/spf13/hugo):
        A Fast and Flexible Static Site Generator built with love in GoLang

* [
        astaxie / beego
](https://github.com/astaxie/beego):
        beego is an open-source, high-performance web framework for the Go programming language.

* [
        kubernetes / minikube
](https://github.com/kubernetes/minikube):
        Run Kubernetes locally

* [
        justwatchcom / gopass
](https://github.com/justwatchcom/gopass):
        The slightly more awesome standard unix password manager for teams

* [
        xtaci / kcptun
](https://github.com/xtaci/kcptun):
        A Secure Tunnel Based On KCP over UDP

* [
        spf13 / cobra
](https://github.com/spf13/cobra):
        A Commander for modern Go CLI interactions

* [
        getlantern / lantern
](https://github.com/getlantern/lantern):

🔴Lantern lastest version https://github.com/getlantern/lantern/releases/tag/latest 🔴 蓝灯最新版本下载 https://github.com/getlantern/forum/issues/833 🔴

#### javascript
* [
        freeCodeCamp / freeCodeCamp
](https://github.com/freeCodeCamp/freeCodeCamp):
        The https://freeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.

* [
        vadimdemedes / trevor
](https://github.com/vadimdemedes/trevor):

🚦 Your own Travis CI to run tests locally

* [
        maartenbreddels / ipyvolume
](https://github.com/maartenbreddels/ipyvolume):
        IPython widget for rendering 3d volumes and glyphs in the Jupter notebook

* [
        vuejs / vue
](https://github.com/vuejs/vue):
        A progressive, incrementally-adoptable JavaScript framework for building UI on the web.

* [
        googlecreativelab / aiexperiments-ai-duet
](https://github.com/googlecreativelab/aiexperiments-ai-duet):
        A piano that responds to you.

* [
        queckezz / fmt-obj
](https://github.com/queckezz/fmt-obj):
        Prettifies any javascript object in your console. Make it look awesome! 💄

* [
        botpress / botpress
](https://github.com/botpress/botpress):

🤖 The only sane way of building great bots. 👉

* [
        d4t4x / data-selfie
](https://github.com/d4t4x/data-selfie):
* [
        Okazari / Rythm.js
](https://github.com/Okazari/Rythm.js):
        A javascript library that makes your page dance.

* [
        getify / You-Dont-Know-JS
](https://github.com/getify/You-Dont-Know-JS):
        A book series on JavaScript. @YDKJS on twitter.

* [
        facebookincubator / create-react-app
](https://github.com/facebookincubator/create-react-app):
        Create React apps with no build configuration.

* [
        facebook / react
](https://github.com/facebook/react):
        A declarative, efficient, and flexible JavaScript library for building user interfaces.

* [
        airbnb / javascript
](https://github.com/airbnb/javascript):
        JavaScript Style Guide

* [
        mzabriskie / axios
](https://github.com/mzabriskie/axios):
        Promise based HTTP client for the browser and node.js

* [
        skidding / illustrated-algorithms
](https://github.com/skidding/illustrated-algorithms):
        Interactive algorithm visualizations

* [
        twbs / bootstrap
](https://github.com/twbs/bootstrap):
        The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

* [
        tameemsafi / typewriterjs
](https://github.com/tameemsafi/typewriterjs):
        A simple yet powerful native javascript plugin for a cool typewriter effect.

* [
        fuse-box / fuse-box
](https://github.com/fuse-box/fuse-box):
        A blazing fast js bundler/loader with a comprehensive API 🔥

* [
        webpack / webpack
](https://github.com/webpack/webpack):
        A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders," modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

* [
        facebook / react-native
](https://github.com/facebook/react-native):
        A framework for building native apps with React.

* [
        bodymovin / bodymovin
](https://github.com/bodymovin/bodymovin):
        after effects to html library

* [
        d3 / d3
](https://github.com/d3/d3):
        Bring data to life with SVG, Canvas and HTML. 📊📈🎉

* [
        nodejs / node
](https://github.com/nodejs/node):
        Node.js JavaScript runtime ✨🐢🚀✨

* [
        littlstar / s3-lambda
](https://github.com/littlstar/s3-lambda):
        Lambda functions over S3 objects with concurrency control (each, map, reduce, filter)

* [
        transloadit / uppy
](https://github.com/transloadit/uppy):

🐶 The next open source file uploader for web browsers — a work in progress ⚠ 🚧

#### ruby
* [
        jekyll / jekyll
](https://github.com/jekyll/jekyll):

🌐 Jekyll is a blog-aware, static site generator in Ruby

* [
        fastlane / fastlane
](https://github.com/fastlane/fastlane):

🚀 The easiest way to automate building and releasing your iOS and Android apps

* [
        rails / rails
](https://github.com/rails/rails):
        Ruby on Rails

* [
        jondot / awesome-react-native
](https://github.com/jondot/awesome-react-native):
        An "awesome" type curated list of React Native components, news, tools, and learning material

* [
        Homebrew / brew
](https://github.com/Homebrew/brew):

🍺 The missing package manager for macOS

* [
        Thibaut / devdocs
](https://github.com/Thibaut/devdocs):
        API Documentation Browser

* [
        ruby / ruby
](https://github.com/ruby/ruby):
        The Ruby Programming Language

* [
        Homebrew / homebrew-core
](https://github.com/Homebrew/homebrew-core):

🍻 Core formulae for the Homebrew package manager

* [
        Tim9Liu9 / TimLiu-iOS
](https://github.com/Tim9Liu9/TimLiu-iOS):
        iOS开发常用三方库、插件、知名博客等等

* [
        kilimchoi / engineering-blogs
](https://github.com/kilimchoi/engineering-blogs):
        A curated list of engineering blogs

* [
        caskroom / homebrew-cask
](https://github.com/caskroom/homebrew-cask):
        A CLI workflow for the administration of Mac applications distributed as binaries

* [
        jnunemaker / flipper
](https://github.com/jnunemaker/flipper):
        feature flipping for ANYTHING

* [
        mitchellh / vagrant
](https://github.com/mitchellh/vagrant):
        Vagrant is a tool for building and distributing development environments.

* [
        rapid7 / metasploit-framework
](https://github.com/rapid7/metasploit-framework):
        Metasploit Framework

* [
        thoughtbot / guides
](https://github.com/thoughtbot/guides):
        A guide for programming in style.

* [
        exercism / exercism.io
](https://github.com/exercism/exercism.io):
        Quickly ramp up in new programming languages.

* [
        kaminari / kaminari
](https://github.com/kaminari/kaminari):
        ⚡ A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Ruby webapps

* [
        bayandin / awesome-awesomeness
](https://github.com/bayandin/awesome-awesomeness):
        A curated list of awesome awesomeness

* [
        elastic / logstash
](https://github.com/elastic/logstash):
        Logstash - transport and process your logs, events, or other data

* [
        discourse / discourse
](https://github.com/discourse/discourse):
        A platform for community discussion. Free, open, simple.

* [
        hanami / hanami
](https://github.com/hanami/hanami):
        The web, with simplicity.

* [
        CocoaPods / CocoaPods
](https://github.com/CocoaPods/CocoaPods):
        The Cocoa Dependency Manager.

* [
        shakacode / react_on_rails
](https://github.com/shakacode/react_on_rails):
        Integration of React + Webpack + Rails to build Universal (Isomorphic) Apps

* [
        spree / spree
](https://github.com/spree/spree):
        Spree is a complete open source ecommerce solution for Ruby on Rails.

* [
        stympy / faker
](https://github.com/stympy/faker):
        A library for generating fake data such as names, addresses, and phone numbers.

repository: josephyzhou/github-trending

gha_language: Go

repo_name: josephyzhou/github-trending


text:
# Deployment of SUSE Linux Enterprise Server VM (SLES 12)

![Azure Public Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/PublicLastTestDate.svg)
![Azure Public Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/PublicDeployment.svg)

![Azure US Gov Last Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/FairfaxLastTestDate.svg)
![Azure US Gov Last Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/FairfaxDeployment.svg)

![Best Practice Check](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/BestPracticeResult.svg)
![Cred Scan Check](https://azurequickstartsservice.blob.core.windows.net/badges/vm-simple-sles/CredScanResult.svg)

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fvm-simple-sles%2Fazuredeploy.json)  [![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fvm-simple-sles%2Fazuredeploy.json)

This template allows deploying a SUSE Linux Enterprise Server VM (SLES 12), using the latest image for the selected SLES version. This will deploy a Standard D1 VM in the location of your chosen resource group with an additional 100 GiB data disk attached to the VM.

Have a lot of fun ...

repository: baoxingx/azure-quickstart-templates

repo_name: baoxingx/azure-quickstart-templates


text:
# Aio-pika Macrobase Driver
Use wrapper for the Pika for asyncio and humans. With him.
[![Build Status](https://api.travis-ci.com/mbcores/aiopika-macrobase.svg)](https://travis-ci.com/github/mbcores/aiopika-macrobase)

Driver with [aio-pika](https://github.com/mosquito/aio-pika/) implementation from [Macrobase framework](https://github.com/mbcores/macrobase).

repository: mbcores/aiopika-macrobase

gha_language: Python

repo_name: mbcores/aiopika-macrobase


text:
# titi

## Features😄

- extremely simple MVC schema
- security
- path_info URLs
- build-in Vue.js
- CRUD demo
- Ajax demo
- suppose native PHP code
- uses PDO for any database requests
- uses PSR-4 autoloader

With this framework, you can easily build your application,
or get the PHP / MVC schema / Vue.js knowledge for learn.😇

## Requirements🧐

- PHP >= 5.6
- MySQL
- mod_rewrite activated

repository: itibbers/titi

repo_name: itibbers/titi


text:
# mqtt-python-client
A simple client for Mqtt testing

# Install
The paho-mqtt libary is needed for the mqtt client
You can install this libary via pip
```
pip install paho-mqtt
```
or
```
python -m pip install paho-mqtt
```

# Using this client
Just start the python file in your cmd or terminal and a menu will show up for your client (client == window)

# Example SUB // PUB Clients
Start to cmd/terminal windows with the mqtt client an connect them to your mqtt-server/mqtt-broker.

Client 1 (sub client):

Client 2 (pub client):

repository: parcivad/mqtt-python-client

repo_name: parcivad/mqtt-python-client


text:
---
layout: essay
type: essay
title: Other Evidence of Professional Capacity
date: 2019-11-12
labels:
  - PhD Portfolio
---

*This page presents other evidence of my professional capacity in computer science as required for the [ICS Ph.D. Portfolio](http://www.ics.hawaii.edu/academics/graduate-degree-programs/ph-d-in-ics/#phd-portfolio).

## Teaching Assistant Courses
ICS 211 Introduction to Computer Science II

ICS 314 Software Engineering I

ICS 361 Introduction to Artificial Intelligence Programming

ICS 321 Database Systems I

ICS 462 Artificial Intelligence for Games

ICS 451 Data Networks (Over 3 consecutive semesters)

## Research
I have focused most of my efforts in research towards the HI-SEAS experiment. I have been working on my own research into forecasting energy consumption in the habitat and its relationship with the crew emotional state. Thus far I have published:

1 Masters thesis

2 journal articles (peer review)

7 Conference papers

2 Technical Documents

Please see my [CV](https://simonengler.github.io/bio/)  or [Evidence of Scholarly Ability](https://simonengler.github.io/essays/evidence-of-scholarly-ability.html)

### HI-SEAS

I was a participant in the first HI-SEAS study as a Crew Engineer and I lived in the dome for four months. Upon taking up the position as Graduate Assistant to Dr. Binsted, I helped operate and run next 4 experiments. This involved a lot of travel between Oahu and the Big Island. I would stay on the BI for extended periods watching the crew, running multiple logistical operations for setting up/tearing down the experiments. It was a large job with a lot of scientific studies happen that we had to ensure went as smoothly as possible. I also conducted my own research into forecasting energy consumption in the habitat and its relationship with the crew emotional state.

Please see [Project HI-SEAS](https://simonengler.github.io/projects/HI-SEAS) for more details

### Robotic Companion Study

I created and deployed a robotic companion study for the HI-SEAS experiment. I obtained and reprogrammed the robots myself, helped design the experiment, and collected data on the crew members. I then presented the results at the 15TH INTERNATIONAL CONFERENCE ON UBIQUITOUS ROBOTS in 2018, which was then published in the conference proceedings.

Please see [Project Robot Companion](https://simonengler.github.io/projects/roboticCompanion) for more details.

### Centaur Sentry Robot

The Centaur Sentry Robot was a project I worked on at the University of Calgary. I designed and developed a robotic platform for the purpose of security patrol applications in remote work areas. I conducted a lot of R&D looking at the economic feasibility of the application and also conducted interviews with security companies to see what their interest level was, and how much of a market existed. Based on their needs I designed the robot and built it to the point where it was ready to be sent for production.

Please see [Project Centaur](https://simonengler.github.io/projects/centaur) for more details.

### Prairie Dog

The Prairie Dog is a robot platform I build while I was serving as a Combat Engineer in the Canadian Forces. I was seeing a number of my friends coming home with the bottom of one or both their legs missing from anti-personnel mines when they were checking areas for Improvised Explosive Devices (IED). I wanted a remote camera to be able to drive up to a dangerous location and have a look around prior to myself walking up. I self-taught myself about robotics and constructed a small robot platform which came to be known as 'Prairie Dog'. I managed to finished the robot and bring with me to Afghanistan and used the robot in an operational setting.

Please see [Combat Field Trials](https://simonengler.github.io/projects/prairieDog) for more details.

### Canadian Forces: Direct Action

While in-between training sessions in the Canadian Army, I was placed in a small team to help develop a training video game called Canadian Forces: Direct Action. It was a multiplayer FPS that we modeled to be like the training areas. Basically, soldiers were able to play the video game against each other prior to entering into the real training area. It had some interesting results such as soldiers having developed their own strategies among each other which went on display in the real training scenario. The game was produced on the Unreal game engine and I was helping program in the new equipment and modifying the physics of the weapons to make them more realistic to our own. I also used the video game to create movies of tactical formations using the AI characters in the game. These videos are still being used to train troops prior to deployment today.

## More Details

More details can be found on my [CV](https://simonengler.github.io/bio/).


text:
## Open-Source Saturdays: _notes and minutes_

#### January 7, 2018

##### Attendees

4 - Tracy, Ben, Keith and Dan

##### _Minutes_

* Introductions, background and current interests.
* Interest around learning modern libraries and web development practices.
* Reviewed in-browser sandboxes, git tutorials and JS resources.
* Intention to collaborate on a OSS project to include some kind of API, local environment and frontend.
  Going to meet with Habib to see if this can be derived from wants of Open Denton and/or upcoming
  smart cities projects.

##### Links

| Library              | Description                                                | Links                                                                                |
| :------------------- | :--------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
| **[React]**          | Modern view library.                                       | ([docs](https://reactjs.org/docs/hello-world.html) / [:octocat:](https://github.com/facebook/react/))                               |
| **[React-Native]**   | Build cross-platform mobile apps with React components.    | ([docs](https://facebook.github.io/react-native/docs/getting-started.html) / [:octocat:](https://github.com/facebook/react-native)) |
| **[Expo]**           | Dev tools and React-Native sandbox.                        | ([docs](https://docs.expo.io) / [:octocat:](https://github.com/expo/expo))                                                          |
| **[GraphQL]**        | Application query language, expressed as a graph.          | ([docs](http://graphql.org/learn/) / [:octocat:](https://github.com/graphql/graphql-js))                                            |
| **[Graph.cool]**     | Developer tools and services for GraphQL.                  | ([docs](http://www.graph.cool/docs) / [:octocat:](https://github.com/graphcool))                                                    |
| **[Apollo]**         | Cool tools for GQL client/server.                          | ([docs](https://www.apollographql.com/docs/) / [:octocat:](https://github.com/apollographql))                                       |
| **[Graphile]**       | Auto-generated GraphQL API for Postgres                    | ([docs](https://www.graphile.org/postgraphile/introduction/) / [:octocat:](https://github.com/postgraphql/postgraphql))             |
| **[Sanity.io]**      | Fully featured, headless CMS, scaffold and query language. | ([docs](https://www.sanity.io/docs/introduction/getting-started) / [:octocat:](https://github.com/sanity-io/sanity))                |
| **[Meteor]**         | Full-stack framework, DX-focused.                          | ([docs](http://docs.meteor.com) / [:octocat:](https://github.com/meteor/meteor))                                                    |
| **[Hapi]**           | Configurable, smooth API framework.                        | ([docs](https://hapijs.com/api) / [:octocat:](https://github.com/hapijs/hapi))                                                      |
| **[Auth0]**          | OAuth-as-a-service + integrations.                         | ([docs](https://auth0.com/docs) / [:octocat:](https://github.com/auth0))                                                            |
| **[Webpack]**        | A module bundler asset pipeline.                           | ([docs](https://webpack.js.org/concepts/) / [:octocat:](https://github.com/webpack/webpack))                                        |
| **[Home Assistant]** | Open-source :house: automation.                            | ([docs](https://home-assistant.io/docs/) / [:octocat:](https://github.com/home-assistant/home-assistant))                           |

[React]: https://reactjs.org/
[React-native]: https://facebook.github.io/react-native/
[Expo]: https://expo.io/
[Graphql]: http://graphql.org/
[Graph.cool]: http://www.graph.cool/
[Apollo]: https://www.apollographql.com/
[Graphile]: https://www.graphile.org/
[Sanity.io]: https://www.sanity.io/
[Meteor]: https://www.meteor.com/
[Hapi]: https://hapijs.com/
[Auth0]: https://auth0.com/
[Webpack]: https://webpack.js.org/
[Home assistant]: https://home-assistant.io/

##### :green_book: Learning Resources

| Resource | Description |
| :------------- | :------------- |
| [Robust Client-Side JavaScript](https://molily.de/robust-javascript/)       | A dang-near complete, single page developer guide    |
| [The React Event System Explained](https://levelup.gitconnected.com/how-exactly-does-react-handles-events-71e8b5e359f2?ref=reddit) | Great overview for React and React-Native |
| [How To GraphQL](https://www.howtographql.com/) | An :star:excellent:star: GraphQL learning resource |

##### Other

- Axios, popular XHR library, seeking open source maintainer. [link](http://www.mattzabriskie.com/blog/axios-help-wanted)

repository: techmilldenton/open-source-saturdays

repo_name: techmilldenton/open-source-saturdays


text:
# groptim
Groptim is a Groovy DSL for Linear Programming. It uses the [Apache Commons Mathematics Library](http://commons.apache.org/proper/commons-math/) and its [Simplex](https://en.wikipedia.org/wiki/Simplex_algorithm) implementation (see org.apache.commons.math3.optim.linear.SimplexSolver) to solve the LP instances.

For more details read: http://ytheohar.blogspot.co.uk/2015/06/groptim-groovy-dsl-for-linear.html

# Dependencies & License
Groptim is an open source project licensed under [the Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).
[Gradle](https://gradle.org/) is used for building and dependency management.
The only compile time dependency is the [Apache Commons Mathematics Library](http://commons.apache.org/proper/commons-math/), while testing is done with [Spock](http://spockframework.github.io/spock/docs/1.0/index.html).

# Run with Groovy code
```groovy
  def lp = new LPSolver()

  lp.max {
    15*x0 + 10*x1 + 7.c
  } subjectTo {
    x0 <= 2.c
    x1 <= 3.c
    x0 + x1 <= 4.c
    -x0 - x1 <= -4.c
  }

  assert lp.x0.value == 2.0
  assert lp.x1.value == 2.0
  assert lp.objectiveValue == 57.0
```
# Run as a script
Create a file (e.g. named with 'test.lp') with the following content
```txt
max {
  15*x0 + 10*x1 + 7.c
} subjectTo {
  x0 <= 2.c
  x1 <= 3.c
  x0 + x1 <= 4.c
  -x0 - x1 <= -4.c
}
```

Then, given that you have groovy installed and added in your path, run:
```txt
> cd groptim/script
> groptim test.lp
optimum = 57.0
x0 = 2.0
x1 = 2.0
```

repository: ytheohar/groptim

repo_name: ytheohar/groptim


text:
# [MDX](https://github.com/mdx-js/mdx)

## Links

- [MDX Blocks](https://mdx-blocks.netlify.com/) - Write content in MDX. Build layouts with blocks. Customize with themes.

repository: Workster/knowledge

repo_name: Workster/knowledge


text:
# Contributing to AdonisJs Compression

The following is a set of standard guidelines that applies to all JavaScript
projects at Verdigris Technologies.

## Tables of Contents

* [Pull Requests](#pull-requests)
* [Styleguides](#styleguides)
  * [Git branches and commit messages](#git-branches-and-commit-messages)

## Pull Requests

* Fill in the required template
* Include thoughtfully worded, well-structured specs in the `./test` folder in
  the form of `<subject> should <expected behavior> when <condition>`
  * **Example:** `Array.map should raise a TypeError when argument is not a function`
* End all files with a newline
  * **Tip:** Use [editorconfig][editorconfig] plugin for your favorite text
    editor
* Place requires in the following order:
  * Built-in Node modules
  * Dependencies (modules in `./node_modules`)
  * Local modules (either via `require` or AdonisJs style `use`)

## Styleguides

### Git branches and commit messages

* Use dashes, not underscores in branch names
  * ✅ `some-awesome-feature`
  * 🚫 `some_awesome_feature`

* Use present tense
  * ✅ `Add check for array bounds`
  * 🚫 `Added check for array bounds`

* Use imperative mood
  * ✅ `Move cursor to...`
  * 🚫 `Moves cursor to...`

* Limit first line to 72 characters or less

* Code pairing should include the following lines at the end of the commit
  message after double newlines:

      Add support for my awesome feature

      Extra description about this commit message.

      Co-authored-by: Andrew Jo<EMAIL_ADDRESS>      Co-authored-by: Hannah Hagen<EMAIL_ADDRESS>
[editorconfig]: https://editorconfig.org/

repository: VerdigrisTech/adonis-compression

gha_language: JavaScript

repo_name: VerdigrisTech/adonis-compression


text:
# Ruby Clipboard [![version](https://badge.fury.io/rb/clipboard.svg)](https://badge.fury.io/rb/clipboard) [<img src="https://travis-ci.org/janlelis/clipboard.png" />](https://travis-ci.org/janlelis/clipboard)

Lets you access the clipboard on Linux, MacOS, Windows and Cygwin.

## Usage

* `Clipboard.copy`
* `Clipboard.paste`
* `Clipboard.clear`

## Setup

Add to `Gemfile`:

```ruby
gem 'clipboard'
gem 'ffi', :platforms => [:mswin, :mingw]
```

- **Linux**: You will need the `xclip` or `xsel` program. On debian/ubuntu
this is: `sudo apt-get install xclip`

## Remarks
### Multiple Clipboards

On Linux, you can choose from which clipboard you want to `paste` from by
passing it as an argumument. The default is CLIPBOARD.

`copy` copies to all clipboards in `Clipboard::Linux::CLIPBOARDS`.

### Windows Encoding

Windows uses [UTF-16LE](https://en.wikipedia.org/wiki/UTF-16) as its default
encoding, so pasted strings will always come in UTF-16LE. You can manually
convert them to your desired encoding (e.g. UTF-8) using the
[String#encode](ruby-doc.org/core-2.3.0/String.html#method-i-encode) method:

```ruby
Clipboard.paste.encode('UTF-8')
```

### SSH

To use the clipboard through ssh, you need to install `xauth` on your server
and connect via `ssh -X` or `ssh -Y`. Please note that some server settings
restrict this feature.

### Java

There is a Java implementation included (`Clipboard::Java`) as an option for
JRuby. On Linux, it always operates only on the CLIPBOARD clipboard.

### TODO

* Native support on X (don't depend on `xclip`/`xsel`) would be great

### blip

**blip** is a handy commandline wrapper that lets you quickly copy file
content to your clipboard: [blip](http://rubygems.org/gems/blip)!

### Copyright

Copyright (c) 2010-2016 Jan Lelis <http://janlelis.com> released under the MIT
license. Contributions by and thanks to Michael Grosser and [all the other
contributors!](https://github.com/janlelis/clipboard/graphs/contributors)

repository: junara/toruken

repo_name: junara/toruken


text:
---
layout: post
title: "ASR-based Features for Emotion Recognition: A Transfer Learning Approach"
date: 2018-05-23 14:38:39
categories: arXiv_AI
tags: arXiv_AI Speech_Recognition Transfer_Learning Deep_Learning Relation Recognition
author: Noé Tits, Kevin El Haddad, Thierry Dutoit
mathjax: true
---

* content
{:toc}

##### Abstract
During the last decade, the applications of signal processing have drastically improved with deep learning. However areas of affecting computing such as emotional speech synthesis or emotion recognition from spoken language remains challenging. In this paper, we investigate the use of a neural Automatic Speech Recognition (ASR) as a feature extractor for emotion recognition. We show that these features outperform the eGeMAPS feature set to predict the valence and arousal emotional dimensions, which means that the audio-to-text mapping learning by the ASR system contain information related to the emotional dimensions in spontaneous speech. We also examine the relationship between first layers (closer to speech) and last layers (closer to text) of the ASR and valence/arousal.

##### Abstract (translated by Google)
在过去的十年中，信号处理的应用随着深度学习而急剧提高。然而，影响计算的领域，如情感语音合成或口头语言的情绪识别仍然具有挑战性。在本文中，我们研究了使用神经自动语音识别（ASR）作为情感识别的特征提取器。我们表明，这些功能优于eGeMAPS功能集来预测效价和觉醒情绪维度，这意味着ASR系统的音频 - 文本映射学习包含与自发言语中情绪维度相关的信息。我们还研究了ASR的第一层（接近言语）和最后一层（接近文本）与价/觉醒之间的关系。

##### URL
[http://arxiv.org/abs/1805.09197](http://arxiv.org/abs/1805.09197)

##### PDF
[http://arxiv.org/pdf/1805.09197](http://arxiv.org/pdf/1805.09197)


text:
quietschbox Tone Generator
==========================

## Table of Contents

* [What does it do?](#what-does-it-do)
* [Dependencies](#dependencies)
* [Author and License](#author-and-license)

## What does it do?

Parametrically generates and plays random audio samples.

![Screenshot](/assets/screenshot.png)

## Dependencies

* [GTK](https://www.gtk.org)
* [SoX](http://sox.sourceforge.net/)

## Author and License

Written by Kay Stenschke.
licensed under the [New BSD License](http://opensource.org/licenses/BSD-3-Clause)

> Copyright (c), Kay Stenschke
> All rights reserved.
>
> Redistribution and use in source and binary forms, with or without modification,
> are permitted provided that the following conditions are met:
>
> 1. Redistributions of source code must retain the above copyright notice, this
>    list of conditions and the following disclaimer.
>
> 2. Redistributions in binary form must reproduce the above copyright notice,
>    this list of conditions and the following disclaimer in the documentation
>    and/or other materials provided with the distribution.
>
> 3. Neither the name of the copyright holder nor the names of its contributors
>    may be used to endorse or promote products derived from this software without
>    specific prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
> ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
>  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
> ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

repository: kstenschke/quietschbox

repo_name: kstenschke/quietschbox


text:
# How to Setup a Python Environment for Machine Learning and Deep Learning with Anaconda

## 1. Download the Anaconda Python package for your platform

1. Visit the [Anaconda homepage](https://www.continuum.io/).
2. Click “Anaconda” from the menu and click “Download” to go to the [download page](https://www.continuum.io/downloads).
![](http://3qeqpr26caki16dnhd19sv6by6v.wpengine.netdna-cdn.com/wp-content/uploads/2017/02/Click-Anaconda-and-Download.png)

3. Choose the download suitable for your platform (Windows, OSX, or Linux):
- Choose Python 3.6
- Choose the Graphical Installer(Windows, OSX)

![](https://i.imgur.com/4zkN7XG.png)

This will download the Anaconda Python package to your workstation.

## 2. Detailed Anaconda installation information
This step assumes you have sufficient administrative privileges to install software on your system.
For installation instructions, see the following:

- **Installing on Windows** (https://docs.continuum.io/anaconda/install/windows)
- **Installing on macOS** (https://docs.continuum.io/anaconda/install/mac-os)
- **Installing on Linux** (https://docs.continuum.io/anaconda/install/linux)

## 3. Creating an environment from an environment.yml file

In this step, we will install Python libraries used for deep learning, specifically: Theano, TensorFlow, and Keras, nltk.
Most of machine learning and deep learning libraries needed are provided in the ```yaml (.yml)``` files.

1. Create the environment from the ```environment.yml``` file
  - **Linux CPU only**
```sh
$ conda env create -f dl_env_linux.yml
```
   - **Linux With GPU support**
```sh
$ conda env create -f dl_env_linux_gpu.yml
```

 - **Windows CPU only**
```sh
$ conda env create -f dl_env_windows.yml
```

- **macOS CPU only**
```sh
$ conda env create -f dl_env_mac.yml
```

2. Activate the new environment:

- Windows: ```activate myenv```
- macOS and Linux: ```source activate myenv```

NOTE: Replace myenv with the name of the environment.

3. Verify that the new environment was installed correctly:

```sh
$ conda list
```


text:
# 2. Language and File Type

<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->

<link-summary>Sample implementation of Simple language and file type definitions.</link-summary>

<tldr>

**Reference**: [](registering_file_type.md)

**Code**: [`SimpleLanguage`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleLanguage.java),
[`SimpleIcons`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleIcons.java),
[`SimpleFileType`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleFileType.java)

</tldr>

<snippet id="custom_language_tutorial_header">

> This page is part of multi step [](custom_language_support_tutorial.md).
>

</snippet>

The IntelliJ Platform determines file type by examining the name of a file.
Each language has [Language](%gh-ic%/platform/core-api/src/com/intellij/lang/Language.java) and [LanguageFileType](%gh-ic%/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java) objects defining the language.
Register the `LanguageFileType` with the IntelliJ Platform in the plugin configuration file.

## Define the Language

The language implemented in this tutorial is named "Simple" - note the case of the name.
The [`SimpleLanguage`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleLanguage.java) class is defined in the `org.intellij.sdk.language` package of the `simple_language_plugin` code sample:

```java
```
{src="simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleLanguage.java" include-symbol="SimpleLanguage"}

## Define an Icon

The [icon](%gh-sdk-samples%/simple_language_plugin/src/main/resources/icons/jar-gray.png) for the Simple Language is defined by the
[`SimpleIcons`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleIcons.java) class.
Please see [](work_with_icons_and_images.md) for details on how to define and use icons.

```java
```
{src="simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleIcons.java" include-symbol="SimpleIcons"}

## Define a FileType

The [`SimpleFileType`](%gh-sdk-samples%/simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleFileType.java) is defined by subclassing [`LanguageFileType`](%gh-ic%/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java):

```java
```
{src="simple_language_plugin/src/main/java/org/intellij/sdk/language/SimpleFileType.java" include-symbol="SimpleFileType"}

## Register the FileType

The Simple Language file type is registered via the `com.intellij.fileType` extension point in <path>[plugin.xml](plugin_configuration_file.md)</path> and registered with <path>*.simple</path> extension:

```xml
<extensions defaultExtensionNs="com.intellij">
  <fileType
      name="Simple File"
      implementationClass="org.intellij.sdk.language.SimpleFileType"
      fieldName="INSTANCE"
      language="Simple"
      extensions="simple"/>
</extensions>
```

## Run the Project

Run the plugin by using the Gradle [`runIde`](creating_plugin_project.md#running-a-plugin-with-the-runide-gradle-task) task.

Create an empty file with the extension <path>.simple</path>, and IntelliJ IDEA automatically associates it with our language.
Note the appearance of the Simple Language file icon next to the <path>test.simple</path> file in the <control>Project</control> Tool Window, and the editor tab for the file.

![File Type Factory](file_type_factory.png){width="800"}

repository: JetBrains/intellij-sdk-docs

gha_language: Markdown

repo_name: JetBrains/intellij-sdk-docs


text:
# Delete modal

When users delete one or more items, there will be a modal pop up to make users confirm their action. This part specifies the wording of the deletion towards different situations.

### Single delete

![EmailForm](./images/DeleteWording1.png)
  *  A. There is an exclamation-triangle icon.
  *  B. The font of the object to be deleted is bold.
  *  C. The button should be destructive button.

### Batch delete

![ProvideEmailModal](./images/DeleteWording2.png)
  *  A. There is an exclamation-triangle icon.
  *  B. The items that will be deleted are listed out here.

### The result of deletion affects other items

![ProvideEmailModal](./images/DeleteWording3.png)

If deletion of an item affects other items, such as causing other items to be deleted, unassigned, or unassociated, the results should list what will be affected.

  *  A. There is an exclamation-triangle icon. The items that will be automatically deleted are listed out here.
  *  B. There is an info icon. The items that will be are affected but not deleted are listed out here.

repository: keycloak/keycloak-community

repo_name: keycloak/keycloak-community


text:
---
layout: post
title: Hacknews2020-02-15新闻
category: Hacknews
tags: hacknews
keywords: hacknews
coverage: hacknews-banner.jpg
---

Hacker News 是一家关于计算机黑客和创业公司的社会化新闻网站，由保罗·格雷厄姆的创业孵化器 Y Combinator 创建。
与其它社会化新闻网站不同的是 Hacker News 没有踩或反对一条提交新闻的选项（不过评论还是可以被有足够 Karma 的用户投反对票）；只可以赞或是完全不投票。简而言之，Hacker News 允许提交任何可以被理解为“任何满足人们求知欲”的新闻。

## HackNews Hack新闻

- [Flexport is hiring software engineers in Amsterdam](https://www.flexport.com/careers/department/engineering)
- `Flexport正在阿姆斯特丹招聘软件工程师(我们可以帮你拿到签证)`
- [Wardian cases and the process of transporting plants](https://www.bbc.com/news/business-51209050)
- `密封的玻璃箱用于运输植物，而不仅仅是植物学`
- [18-year-old personal website, built with Frontpage and still updated](http://www.fmboschetto.it/)
- `拥有18年历史的个人网站，使用Frontpage构建，并且仍在更新中`
- [Amazon can’t end fake reviews, but its new system might drown them out](https://www.vox.com/recode/2020/2/14/21121209/amazon-fake-reviews-one-tap-star-ratings-seller-feedback)
- `亚马逊无法结束虚假评论，但其新系统可能将其淹没`
- [Problems, not solutions (2018)](https://ben.balter.com/2018/07/16/problems-not-solutions/)
- `产品经理以问题而非解决方案的方式思考（2018）`
- [Introduction to Clifford Algebra (2006)](https://www.av8n.com/physics/clifford-intro.htm)
- `Clifford代数简介`
- [A radio frequency exposure test finds an iPhone 11 Pro exceeds the FCC's limit](https://spectrum.ieee.org/tech-talk/telecom/wireless/radio-frequency-exposure-test-iphone-11-pro-double-fcc-limits)
- `射频暴露测试发现iPhone 11 Pro超过了FCC的限制`
- [I made my own PCBs with a 3D printer](https://www.stavros.io/posts/make-pcbs-at-home/)
- `我如何用3D打印机制作自己的PCB`
- [Flowcharts of programming language constructs](https://www.progsbase.com/blog/flow-charts-of-programming-language-constructs/)
- `编程语言构造的流程图`
- [Early humans in Africa may have interbred with an extinct species: new research](https://theconversation.com/early-humans-in-africa-may-have-interbred-with-a-mysterious-extinct-species-new-research-131699)
- `非洲的早期人类可能与一种神秘的灭绝物种杂交`
- [Founders share the challenges of running a tech business](https://www.indiehackers.com/post/the-biggest-challenges-of-running-a-tech-business-ea87797f6d)
- `创始人面临着经营科技企业的最大挑战`
- [Printing tiny, high-precision objects](https://actu.epfl.ch/news/printing-tiny-high-precision-objects-in-a-matter-o/)
- `几秒钟内即可打印微小的高精度物体– EPFL`
- [Facebook reverses on paid influencers after Bloomberg memes](https://techxplore.com/news/2020-02-facebook-paid-political-messages-ads.html)
- `Facebook允许非广告的付费政治信息`
- [Signal is finally bringing its secure messaging to the masses](https://www.wired.com/story/signal-encrypted-messaging-features-mainstream/)
- `信号终于将其安全消息传递给大众`
- [Apple Edge Cache](https://cache.edge.apple)
- `苹果边缘缓存`
- [A Map of Mathematics](https://www.quantamagazine.org/the-map-of-mathematics-20200213/)
- `数学地图`
- [California’s housing crisis: how a bureaucrat pushed to build](https://www.nytimes.com/2020/02/13/business/economy/housing-crisis-conor-dougherty-golden-gates.html)
- `构建构建构建构建构建构建构建构建构建构建构建构建构建构建`
- [NYC Active Major Construction](https://www1.nyc.gov/assets/buildings/html/nyc-active-major-construction.html)
- `纽约市积极专业建设`
- [Self-driving cars turned out to be harder than expected](https://www.vox.com/future-perfect/2020/2/14/21063487/self-driving-cars-autonomous-vehicles-waymo-cruise-uber)
- `自动驾驶汽车竟比预期的难`
- [Millions of Tiny Databases pdf](https://assets.amazon.science/c4/11/de2606884b63bf4d95190a3c2390/millions-of-tiny-databases.pdf)
- `数百万个微型数据库pdf`
- [To become a good C programmer (2011)](http://fabiensanglard.net/c/)
- `成为一名优秀的C程序员（2011）`
- [Back to the Future](https://www.firstthings.com/article/2020/03/back-to-the-future)
- `回到未来`
- [Why do so many developers get DRY wrong?](https://changelog.com/posts/why-do-so-many-developers-get-dry-wrong)
- `所以许多开发商为什么会干错了吗？`
- [The US Secret Service mistook a cyberpunk RPG for a hacker's handbook](https://www.dicebreaker.com/categories/roleplaying-game/feature/gurps-cyberpunk-rpg-us-secret-service)
- `美国特勤局将计算机朋克RPG误认为黑客手册`
- [Brooklyn Queens Connector streetcar could be a transit equalizer](https://brooklyneagle.com/articles/2020/02/13/opinion-bqx-streetcar-could-be-the-citys-great-transit-equalizer/)
- `布鲁克林皇后区连接器有轨电车可能是公交均衡器`
- [Google cuts jobs at cloud-computing group](https://www.wsj.com/articles/google-cuts-jobs-at-cloud-computing-group-11581719153)
- `谷歌裁员云计算部门`
- [HQ Trivia shuts down after acquisition falls through](https://techcrunch.com/2020/02/14/hq-trivia-shuts-down/)
- `总部琐事正在关闭`
- [Security recommendations for any device that depends on random numbers (2013)](https://www.av8n.com/computer/htm/secure-random.htm)
- `任何依赖于随机数的安全建议`
- [Hamap as SPARQL rules–A portable annotation pipeline for genomes and proteomes](https://academic.oup.com/gigascience/article/9/2/giaa003/5731417)
- `作为SPARQL规则的Hamap –用于基因组和蛋白质组的便携式注释管道`
- [Crystal 0.33](https://crystal-lang.org/2020/02/14/crystal-0.33.0-released.html)
- `水晶0.33.0发布`
- [Designing the most performant row-level security schema in Postgres (2018)](https://medium.com/@cazzer/designing-the-most-performant-row-level-security-strategy-in-postgres-a06084f31945)
- `在Postgres（2018）中设计性能最高的行级安全模式`
- [The dystopian world of software engineering interviews](https://www.jarednelsen.dev/posts/The-horrifically-dystopian-world-of-software-engineering-interviews)
- `反乌托邦式的软件工程世界`
- [Passionate kissing is not a human universal (2015)](https://hraf.yale.edu/romantic-or-disgusting-passionate-kissing-is-not-a-human-universal/)
- `性爱接吻不是人类的普遍生活`
- [Join Dover (YC S19) – building a modern recruiting agency](http://dover.io/careers)
- `加入多佛（YC S19）–建立现代招聘机构`
- [RCMP arrest 'money mules' tied to scam calls from India](https://www.cbc.ca/news/canada/toronto/rcmp-cra-telephone-scam-fraud-investigation-1.5463838)
- `关于“流血时间”：加拿大皇家骑警逮捕了与印度诈骗电话有关的“钱mu子”`
- [Human Universals (2002)](https://condor.depaul.edu/~mfiddler/hyphen/humunivers.htm)
- `唐纳德·布朗的人类世界清单`
- [Core Data Lab, a Full-Featured Core Data Viewer](https://betamagic.nl/products/coredatalab.html)
- `核心数据实验室，功能齐全的核心数据查看器`
- [What made the 1960s CDC6600 supercomputer fast?](https://cpldcpu.wordpress.com/2020/02/14/what-made-the-cdc6600-fast/)
- `是什么使1960年代CDC6600超级计算机快速运行？`
- [Svgbob – convert ASCII diagrams to SVG, now with styling support](https://ivanceras.github.io/svgbob-editor/)
- `Svgbob –现在将ASCII图转换为SVG，并具有样式支持`
- [Astronomers want public funds for intelligent life search](https://www.bbc.co.uk/news/science-environment-51223704)
- `天文学家需要公共资金进行智能生命搜索`
- [The Future of Fossil Fuels](https://rhsfinancial.com/2020/02/12/future-fossil-fuels-collapse/)
- `化石燃料的未来`
- [Bloomberg U.S. Startups Barometer](https://www.bloomberg.com/graphics/startup-barometer/)
- `彭博美国初创公司晴雨表`
- [The geology and geophysics of Kuiper Belt object (486958) Arrokoth](https://science.sciencemag.org/content/early/2020/02/12/science.aay3999)
- `柯伊伯带天体的地质和地球物理学（486958）Arrokoth`
- [Exploring the Web Speech API](https://www.voorhoede.nl/en/blog/exploring-the-web-speech-api/)
- `探索Web Speech API`
- [ActivityPub – The Secret Weapon of the Fediverse](https://homehack.nl/activitypub-the-secret-weapon-of-the-fediverse/)
- `ActivityPub –妖怪的秘密武器`
- [Gentzen's Rules for Natural Deduction](https://blog.plover.com/math/logic/lk.html)
- `根岑自然推论规则`
- [New process for preserving lumber could offer advantages over pressure treating](https://phys.org/news/2020-02-lumber-advantages-pressure.html)
- `保护木材的新工艺可能比压力处理更具优势`
- [Don’t stage off Starship](https://caseyhandmer.wordpress.com/2020/02/15/dont-stage-off-starship/)
- `不要离开星际飞船`
- [Developer salary spreadsheet compiled from tweets](https://docs.google.com/spreadsheets/d/1-xIgk7Mw1S5DXTZSbKBgxlsQAn7XGIu7Mfy72lSVHKk/edit#gid=129993618)
- `通过推文编译的开发人员薪水电子表格`
- [Cancer medicine generates enormous revenues but marginal benefits for patients](https://blogs.scientificamerican.com/cross-check/the-cancer-industry-hype-vs-reality/)
- `癌症药物可带来巨大的收入，但对患者却微不足道`
- [On emulating hypervisors; a Samsung RKP case study](http://www.phrack.org/papers/emulating_hypervisors_samsung_rkp.html)
- `关于模拟管理程序；`
- [A 7KB AWS lambda Node.js library with zero runtime dependencies](https://www.npmjs.com/package/micro-aws-lambda)
- `一个7KB的AWS Lambda Node.js库，零运行时依赖`
- [Classification of the Principal Programming Paradigms](https://www.info.ucl.ac.be/~pvr/paradigms.html)
- `主体编程范例的分类`
- [Qt 5.15 Alpha](https://www.qt.io/blog/qt-5.15-alpha-released)
- `Qt 5.15 Alpha`
- [How HTTPS works – Explained in layman terms](https://medium.com/@animeshgaitonde/how-https-works-part-1-building-blocks-64f9915b1f39)
- `HTTPS的工作原理–用外行术语解释`
- [Blender 2.82 Released](https://www.blender.org/press/blender-2-82-released/)
- `Blender 2.82发布`
- [Ask HN: What job can a “jack of all trades” look for?](item?id=22326109)
- `问HN：“万事通”可以寻找什么工作？`

## HackShows Hacks展示

- [ Docket – A Todo application that serves as a API testing resource](https://docket-test.herokuapp.com/)
- `Docket –一个用作API测试资源的Todo应用程序`
- [ VexFlow – JavaScript Music Notation and Guitar Tablature](https://vexflow.com)
- `VexFlow – JavaScript音乐符号和吉他谱`
- [ React-UFO – A simple React hook to help you with data fetching](https://github.com/marcellomontemagno/react-ufo)
- `React-UFO –一个简单的React钩子，可帮助您获取数据`
- [ Broxy – An HTTP/HTTPS intercept proxy written in Go](https://github.com/rhaidiz/broxy)
- `Broxy：用Go编写的拦截代理`
- [ Mixing canvas with other DOM elements – collision detection](http://scrawl-v8-progress-0919.rikworks.co.uk/dom-013.html)
- `将画布与其他DOM元素混合–冲突检测`
- [ ssltun - simple secure HTTP proxy server with automic HTTPS in Golang](https://github.com/lvht/ssltun/)
- `ssltun-在Golang中具有自动HTTPS的简单安全HTTP代理服务器`
- [ Subscription Score – A browser ext that identifies bad mailing lists](https://subscriptionscore.com)
- `订阅分数–识别不良邮件列表的浏览器扩展`
- [ I published my first website – ShellMagic.xyz](https://shellmagic.xyz)
- `节目HN：我发布了我的第一个网站– ShellMagic.xyz`
- [ Slimbox – a simple tool to declutter your inbox in seconds](http://slimboxapp.com)
- `Slimbox –简单的工具，可在几秒钟内整理收件箱`
- [ BigOofN – job board from the perspective of software engineers](https://www.bigoofn.com/)
- `BigOofN，从软件工程师的角度看工作板`
- [ React hooks that help you do what you already did with more indirection](https://github.com/pveyes/use-less)
- `React挂钩可帮助您通过更多间接操作完成已完成的工作`
- [ A slackbot to anonymously report your coworkers’ bad behavior](https://www.nilats.io/)
- `一个Slackbot匿名举报您同事的不良行为`
- [ Bob – A GUI for DNS Record Management and Name Auctions on Handshake](https://github.com/kyokan/bob-wallet)
- `Show HN：Bob –握手时DNS记录管理和名称拍卖的GUI`
- [ FAS – C distributed Real-Time graphical audio synthesizer server](https://github.com/grz0zrg/fas)
- `FAS – C分布式实时图形音频合成器服务器`
- [ Render Arbitrary 3D Boolean Functions](https://aqnichol.com/apps/solid-trace/)
- `渲染任意3D布尔函数`
- [ Literary Map – Post moments and follow your books around de world](https://literarymap.app)
- `文学地图–发布时光并跟随世界各地的书籍`
- [ ReactJS – Iframe component with maximise to fullscreen button](https://codepen.io/mjunaidi/pen/BaNjwKw)
- `ReactJS –具有最大化至全屏按钮的iframe组件`
- [ ThereOrSquare – Casual event app with planning tools](https://thereorsquare.com/)
- `ThereOrSquare –具有计划工具的休闲活动应用程序`
- [ New simple hash algorithm fast without parallelization](https://github.com/cris691/discohash.git)
- `新的简单哈希算法无需并行即可快速完成`
- [ The largest Node.js CLI Apps best practices list](https://github.com/lirantal/nodejs-cli-apps-best-practices)
- `最大的Node.js CLI应用最佳实践列表`
- [ Wasp – a DSL for building full-stack web apps](https://wasp-lang.dev)
- `Wasp –用于构建全栈Web应用程序的DSL`
- [ A Firefox extension to add latency to distracting webpages](https://addons.mozilla.org/en-US/firefox/addon/delaywebpage/)
- `Firefox扩展程序，可为分散注意力的网页增加延迟`
- [ Business Structure Calculator](https://tjcx.me/tools/business-entity-wizard/)
- `业务结构计算器`
- [ Hacker UI – a React design system for developers](https://hacker-ui.com/)
- `黑客UI –开发人员的React设计系统`
- [ MuseTree – Human-AI interaction for music composition](https://github.com/stevenwaterman/musetree)
- `MuseTree –音乐创作的人机交互`
- [ TypeScript lib to build functions that do not allow parallel executions](https://github.com/garronej/run-exclusive)
- `TypeScript库以构建不允许并行执行的函数`
- [ User flow done in seconds, not hours](http://wwww.pixelic.io/userflow)
- `用户流在几秒钟内完成，而不是几小时`
- [ Editable Data Scientist Resume Templates](https://drive.google.com/open?id=1ahRnIxcLC0qjQD8zqu127kk2ACZ4Tzez)
- `可编辑的数据科学家简历模板`
- [ Tigress 3.1 – Obfuscator for C/Webassembly](item?id=22327324)
- `Tigress 3.1 – C / Webassembly的混淆器`
- [ Critic.sh – Dead simple testing framework for Bash](https://github.com/Checksum/critic.sh)
- `Critic.sh – Bash的简单测试框架`
- [ Auto Formatter for File Structures](https://github.com/benawad/butler-cli)
- `自动格式化文件结构`
- [ My wedding website open-sourced](https://blog.rampatra.com/wedding-website)
- `我的婚礼网站是开源的`
- [ EXP Test Framework](https://www.tesults.com/exp)
- `EXP测试框架`
- [ AudioContext Scrambler – Protection against Web Audio API fingerpriting](https://github.com/Sayrus/audiocontext-scrambler)
- `AudioContext Scrambler –防止Web音频API欺骗`
- [ Alternative Google Web Search API](https://rapidapi.com/apigeek/api/google-search3)
- `备用Google Web搜索API`


text:
# React example that uses Springboot Restful microservices
Contributor: **Sohail Nasim**

[Online Demo](https://radiant-reaches-61878.herokuapp.com/)

Clone and run [Springboot-Rest-Example](https://github.com/sohailnasim1/Springboot-Rest-Example)

## How to run it
1. Make sure you have [Node.js](https://nodejs.org/en/) installed.
2. Install the [Git Bash](https://git-scm.com/download) and clone the repository
 from Git Bash

```
git clone https://github.com/sohailnasim1/React-Redux-Example

```

or download the repository zip file and unzip it to local folder.

Run following command to install npm packages:

```
cd React-Redux-Example
npm install

```

Run [Springboot-Rest-Example](https://github.com/sohailnasim1/Springboot-Rest-Example) project first

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

### `npm run build`

Builds the app for production to the `build` folder.

It correctly bundles React in production mode and optimizes the build for the best performance.


text:
# MobiquityCodeAssignment

Mobiquity Challenge

Usage: java com.mobiquityinc.packer.Packer [input text file]

Requirements: JDK 8+, Maven

Algorithm description

The algorithm runs in 3 steps:

1. Sort items in the package by specific price (price/weight) in desc order.

2. Build the sequence in recursive function, with adding or avoiding an item in the sequence.

3. Sort result by index incrementation, print to text output.

Steps 1 and 3 are unnecessary and added for complexity optimization of step 2. Sorting complexity is O(N ln N) and step 2 worst case complexity is O(N^2).

repository: dmogn/MobiquityCodeAssignment

repo_name: dmogn/MobiquityCodeAssignment


text:
# beginner_php_cafe
Using this codebase:

- If you have existing lamp/wamp stack in your environment:
  - copy www to /var/www/html or public
  - create a database named "cafe" using utf8
  - run mysqldump/schema.sql in your mysql server
  - navigate to localhost and browse
  - use admin/demo for /admin
- Elif you want to run using docker:
  -  First install docker-compose for your environment
    - https://docs.docker.com/compose/install/
  - Then run
    - docker-compose up --build
    - navigate to localhost:8080 for phpmyadmin
    - copy mysqldump/schema.sql to run and create necessary tables in cafe db
    - navigate to localhost and browse
    - use admin/demo for /admin


text:
FieldML Haskell prototype - Discussion notes
============================================

This prototype is an attempt at using Haskell to prototype FieldML design ideas.
These ideas are based on discussions of the FieldML design work group at the Auckland Bioengineering Institute at Auckland University.  Current members of the FieldML design group are: Poul Nielsen, Richard Christie, Andrew Miller, Alan Wu and myself (Randall Britten).
In the past, others have also contributed to these discussions, notably Caton Little, Chris Bradley and Peter Hunter.

 * The key structures are in FieldML/Core.hs
 * Some examples are in FieldML_test_mesh01.hs and FieldML_test1.hs.
 * The unit tests can be run using "runhaskell FieldML_test1.hs".
 * Recent results of the unit tests are in "test-log.txt".

Travis CI status:
[![Build Status](https://travis-ci.org/codecurve/FieldML-Haskell-01.png)](https://travis-ci.org/codecurve/FieldML-Haskell-01)

Comparison with ModML
---------------------
Many ideas from ModML influenced the early development of this prototype.
One important difference is that ModML aims to create a DSL embedded in Haskell that end users can use.  In contrast, the current state of this FieldML Haskell prototype is not to create an end-user language, but rather, to prototype the FieldML object model.
Thus, at this stage, there is still heavy reliance on features of Haskell that would need an equivalent in the FieldML object model, e.g. Haskell lists.

Areas of exploration and features
---------------------------------
 * Domain and codomain inference (mostly implemented, still WIP).
 * Validity checking (mostly implemented, still WIP).
 * Mesh refinement (todo).
 * Mapping from representations in this prototype to representations in FEM software such as OpenCMISS (www.opencmiss.org). (todo).
 * Mapping from representations in this prototype to MathML and XML/FieldML wrapping.

Random thoughts and issues
--------------------------
 * Are list expressions and constructors needed at the FieldML level?  Currently, many constructors depend on lists at the lower level language syntax.  Perhaps tuples are fine, since they serve the role of homogenous lists as well as inhomogenous lists.
 * Possibly an XML representation will naturally allow lists to be expressed where necessary, just by repeating XML element types as children of the relevant parent.

 * Additional algebraic structure, e.g. metric, algebraic operations: for some FSet constructions, these can be induced.
 * Need to be able to recognise massive homogeneity in order to optimise, e.g. for OpenCMISS.

 * Note: Maps and Values can be seen as the same thing, a value is just a map whose domain is the UnitSpace. However, it is pragmatic to differentiate between the two. Also, always treating values as maps from UnitSpace is recursive, i.e. v is the same as us → v is the same as us → (us → v), etc.

 * What about expressions that evaluate to an FSet? E.g. f::Reals → FSet s.t. f(x) = SimpleSubset Reals -x x
Andrew Miller pointed out that "Domains" should be static so that FieldML should be a statically typed language.
Perhaps expressions that produce FSets can still fit into a statically typed FieldML?  Otherwise, perhaps FieldML cannot be statically typed in this way, especially since tangent space declaration depends on the point in a manifold to which the space is tangent.

 * Factors of Cartesian products and Tuples are referred to ordinally, rather than by allocating names to each factor, as is the plan for FieldML.  This shortcut was taken for the sake of simplicity, and to gain some feeling for this style for the sake of comparison with the named style.  Advantages of ordinal style: matches current mathematical convention; makes constructing tuples easy, which makes expressions more terse. Advantages of naming: easier to keep track of the meaning of each factors.

Todo list
---------
 * Instance Show to make expressions pretty (new lines, indentation).  But having Show do Haskell syntax is helpful for debugging.  Rather have another string rendering for simple rendition, and even multiple such rendition options, such as to content or presentation MathML.
 * Use singular names for FSets, as agreed at FieldML meeting on 30 July 2012.
 * Ensure that there is a sensible way to create a value for each FSet, for example, a Tuple is used to represent a value of a disjoint union, but currently it is treated as taking values on a Cartesian product.  This is partially done by the introduction of "Cast", but more examples and testing and thought required.
 * Introduce closures?  Or is the "where" construction sufficient? Since NamedExpression is a valid expression type, this would require implement the model itself, which would have a list of FieldML objects, an assignment of names to expressions would be one way, the other way is to have assignments equating general variables with expressions.
 * Change to using HUnit rather than QuickTest, or use QuickTest properly.
 * Validation:
   Other validation
   When validation fails, report the reason.

 * Represent derivative continuity intention at connected points
 * "Versions", i.e. different values for a field at a node to be used for interpolation of a field, depending on which element.
 * Generate discretised points in an FSet (aka "Grid points").

 * Try use classes for each type of FSet, each type of Expression operator etc. (e.g. Binary Boolean operators).

 * Validation of FSet definitions, and improve validation of Expression's to include validating FSets that are part of definition, and vice versa.

 * Consider using type classes rather than just different constructors.  Might help ensuring that validate, codomain, domain and listOfFreeGeneralVariables are always implemented when new types are introduced.  On the other hand, it means that more of the validation rules have to be included in the validation routines rather than being provided for free by the Haskell syntax rules, which is actually an advantage in terms of making the data model rules more visible.

 * Consider making "Apply" explicit, as in MathML and OpenMath. For most maps, it is implicit, e.g. Plus f g.

 * Conversion to/from MathML (via Andrew Miller's Haskell MathML utility?).

Done:
 * Field template.  Previously had fields that were tied directly to DOFs.  A field template allows DOFs source to be a parameter. An example has been created.
 * Contraction
 * Tensor product basis functions
 * Disjoint Union
 * Separate processing of structure (e.g. validate, domain, codomain, listOfFreeGeneralVariables) from Structure constructors.

 * Read a bit about f5 (fibrebundle.net).
 * Validation:
   Validate Maps like "And" to check that both operands have consistent domains, and codomains are Boolean.
 * Connectivity

 * FEM example:
   DOF mapping

 * Coordinate system transformation

 * Partial application, binding, composition, projection from a general variable.
 * Arbitrary basis function specification using something like MathML

Thoughts on suitability of Haskell vs Scala for this prototype
--------------------------------------------------------------

 * Scala plus factors: has inheritance.  Has case classes.  Nice support in Eclipse.
 * Scala minus factors: syntax more verbose than Haskell. Can't neatly combine case classes with inheritance though, messy "unapply".
 * Haskell plus factors: terse syntax.
 * Haskell minus factors: Tools not great.

Original idea sketch
--------------------
The goal was to be able to represent things similar to the following:
(As at 2012-07-25, this goal has actually essentially been achieved)

```
    M1 :: FSet
    M1 = Reals

    M2 :: FSet
    M2 = CartesianProduct[Reals, Reals]

    f1 :: RealExpression
    f1 = x + y
    domain(f1) == CartesianProduct[Reals, Reals]
    codomain(f1) = Reals

    f2 :: Expression
    domain(f2) == CartesianProduct[Reals, Reals]
    codomain(f2) = Reals
    f2 x = Project(1, x) + Project(2, x)
```

Or

```
    f2 = lambda x → Project(1, x) + Project(2, x)
```

Naming Expressions so that we can write point free composition?

Tensor product:

```
    f3 = Tuple[1-x, x]
    TensorProduct(f3, f3)
```

Would hopefully be:

```
    Tuple[
      (1-x)(1-y)
      x(1-y)
      (1-x)y
      xy
    ]
```

Mapping to OpenCMISS
--------------------

The goal of this will be to represent a mesh and a the relevant fields for a FEM problem that OpenCMISS can solve, and map the FieldML-Haskell representation of the mesh and the fields to the OpenCMISS representation.
It was necessary to try to strike a balance between keeping the prototype simple and getting the prototype's representation of domains and fields abstract enough so that the mapping to OpenCMISS is a reasonable exploration of the issues that may be problematic.
This is now the next main focus of this work.


text:
---
author: 'isuamadog'
date: '2022-08-02'
path: '/tutorial-tuesday/2022-08-02'
title: 'Tutorial Tuesday - Vanilla Cream Tobacco Bakery'
---

## TT: Vanilla Cream Tobacco Bakery $neaky's Babushka (or How to Never Get Bored While Mixing)

Hello fellow mixers,

I'm back with a small recipe share. I dont know if you know my friend, $neakyBabushka, but here he is on [atf](https://alltheflavors.com/users/SneakyBabushka). One day he'd asked me about some old school tobacco flavors and, since I never really had tobaccos when I was buying commercial, I wasn't really sure what to recommend. Based on the comments by redditors from my SC/FE Bacco flavors, I figured this was a good place to start choosing flavors.

To start I thought, let me try to make combination using FE Black Mile, lean into the chocolate notes a bit, pair it with an AP heavy tobacco flavor, graham it up, and dump some vanilla on there:

## v0

# [old school tobacco](https://alltheflavors.com/recipes/share/369afdd5-3de4-41d9-bc00-3395b611e956)

---

| %    | Vendor | Flavor                                                                                |
| ---- | ------ | ---------------------------------------------------------------------------------------------------- |
| 1.5  | FE     | [Black Mile Plus](https://alltheflavors.com/flavors/flavors-express-black-mile-plus)                 |
| 0.75 | TPA    | [French Vanilla Creme](https://alltheflavors.com/flavors/the-flavor-apprentice-french-vanilla-creme) |
| 1.5  | FW     | [Graham Cracker](https://alltheflavors.com/flavors/flavor-west-graham-cracker)                       |
| 2.5  | SC     | [Parlay](https://alltheflavors.com/flavors/super-concentrates-parlay)                                |

Not bad, but it wasn't what I wanted. I wasn't feeling the Chocolate note route and wanted to switch that up. The rest at that point could really just be anything, depending on the recipe at that point. So, if I'm going to lose the chocolate notes, I better start getting to thinking about other ideas...

For inspiration, I decided to watch some Noted and review the comments by ChemicalBurnVictim on the flavors and came across a comment he made about pairing of SC/FE Cigar and TPA RY4D [here](https://www.youtube.com/watch?v=-QGyxqZz8Mw&t=1211s). After hearing him calling that pairing "premium", something just clicked that this was the key to making my friend this mix he might enjoy going back to his early vaping days.

Building up from our central pairing, I remembered all that I'd heard about Boba's Bounty and figured I'd give this VCT (Vanilla Custard Tobacco) a loose stab. I know that I'd never be able to make something that was remotely similar since I neither had the OG nor do I know custards even remotely, so using this as an inspiration, I settled on Creamy Vanilla Tobacco with a hint of graham for texture along the lines of the original idea.

## v1

# [$neaky's babushka v1](https://alltheflavors.com/recipes/274281)

---

Here we see that pairing of RY4D and SC Cigar. It's quite good and a strong basis for any dessert tobacco type mix. [TPA French Vanilla Creme](https://www.youtube.com/watch?v=C7DIH43FnY8&t=2310s) got kept in because I love the way it plays with the baccos. It's sweet and rich and could be subbed out for any creamy vanilla for your tastes. [TPA French Vanilla Deluxe](https://www.youtube.com/watch?v=C7DIH43FnY8&t=2928s), [INW Shisha](https://www.youtube.com/watch?v=C7DIH43FnY8&t=720s), etc. [FW Graham Cracker](https://www.youtube.com/watch?v=SOzpVejpHpA&t=507s) for that old school graham and a bit of a stolen move from u/FomentLife to add a touch of nut to pull it all together with [WF Roasted Pecans & Cream](https://www.youtube.com/watch?v=M5vufhgJSUg&t=4897s). This flavor adds a hint of a coffee note and binds the Graham with the creams to the baccos and the dirty caramel into one cohesive unit. That's the whole thing.

| %    | Vendor | Flavor                                                                                |
| ---- | ------ | ---------------------------------------------------------------------------------------------------- |
| 2    | SC     | [Cigar](https://alltheflavors.com/flavors/super-concentrates-cigar)                                  |
| 1.5  | TPA    | [French Vanilla Creme](https://alltheflavors.com/flavors/the-flavor-apprentice-french-vanilla-creme) |
| 1.25 | FW     | [Graham Cracker](https://alltheflavors.com/flavors/flavor-west-graham-cracker)                       |
| 1    | WF     | [Roasted Pecans & Cream](https://alltheflavors.com/flavors/wonder-flavors-roasted-pecans-cream)      |
| 2    | TPA    | [Ry4 Double](https://alltheflavors.com/flavors/the-flavor-apprentice-ry4-double)                     |

But..

We have to try to see how other flavors will play in those roles, right? No stone left unturned. The problem was that the second version was equally as interesting.

## V2

# [$neaky's babushka v2](https://alltheflavors.com/recipes/274280)

---

The idea here was to see what magic lay beneath the Cigar/RY4D combo and use an equally as delicious flavor, [SC Cohiba](https://www.reddit.com/r/DIY_eJuice/comments/rnkyfv/flavor_review_friday_super_concentratesflavor/), to drive this in a less neutral position and much 'darker' blend. To support that darkness we swap out FW Graham for [FLV Graham Cracker](https://www.youtube.com/watch?v=SOzpVejpHpA&t=636s). They're pretty similar, but this one makes just enough changes to feel 'different' but not completely be so.

| %   | Vendor | Flavor                                                                                |
| --- | ------ | ---------------------------------------------------------------------------------------------------- |
| 2   | SC     | [Cohiba](https://alltheflavors.com/flavors/super-concentrates-cohiba)                                |
| 1.5 | TPA    | [French Vanilla Creme](https://alltheflavors.com/flavors/the-flavor-apprentice-french-vanilla-creme) |
| 1   | FLV    | [Graham Cracker](https://alltheflavors.com/flavors/flavorah-graham-cracker)                          |
| 1   | WF     | [Roasted Pecans & Cream](https://alltheflavors.com/flavors/wonder-flavors-roasted-pecans-cream)      |
| 2   | TPA    | [Ry4 Double](https://alltheflavors.com/flavors/the-flavor-apprentice-ry4-double)                     |

## Possible Subs

For the **baccos**, you could easily sub any nutty, AP heavy, ry4ish mild bacco and just get different results:

- FLV Red Burley
- INW 555 Gold
- INW Gold Ducat
- FLV Mild

or the two listed would probably be my top choices.

For the **vanilla cream**, you could easily sub any creamy vanilla:

- CAP Fr. Vanilla
- TPA Van Creme Deluxe
- INW Shisha Vanilla

Or tweak the whole thing with a Vanilla Marshmallow, Cream (with a little extra vanilla), or any kind of Vanilla Custard to strike your fancy.

For the **nut** portion, tweaks might include:

- WF Hazelnut and Cream (or any other cream and nut offering)
- FW Hazelnut & your favorite nut
- could play into your cherry with some almond/marzipan flavors and swap the vanilla for FLV Smooth Vanilla
- a bit of AP and/or a more AP heavy flavor in place of the Graham

For the **bakery**, tweaks might include:

- CAP Graham
- FW/FLV in either one
- CAP SC, FA Vanilla/Premium Cookie
- JF/INW Biscuit
- use your imagination!

Lastly, there are no spice accents here. Just add whatever makes you happy and you have an even more complex mix. FA Cardamom, CAP CInnamon Sugar, FLV Horchata, VT Bakery Spice, FLV Pumpkin Spice... any of these could elevate the mix to your tastes.

# Final Thoughts

I got hung up at 2 versions that seemed to both be quite good. I asked $neaky which one he liked better, assuming I would just let him decide the final recipe, and he also said that they were both good and yet different enough to make it a tough call. So here they are, as two distinct recipes but all in this vein of Creamy Vanilla Tobacco with a hint of bakery for texture. I like this because I prefer recipes that have room to 'breathe'. I never mix the same thing twice or twice in the same way, so here you have a guide or "template" that you can play off of, or just create your own.

- Vanilla
- Cream
- Tobacco
- Bakery

Comments with your favorite versions of VCBT or VCT would be greatly appreciated.

Thanks for reading,

doggo

repository: diy-ejuice/diy-compendium

repo_name: diy-ejuice/diy-compendium


text:
---
title: About the COVID Tracking Project
nav: About Us
summary: >-
  The COVID Tracking Project obtains, organizes, and publishes high-quality data
  required to understand and respond to the COVID-19 outbreak in the United
  States. We will do this work until official sources take over and make their
  data complete and public.
---
In early March, two journalists at *[The Atlantic](https://www.theatlantic.com/health/archive/2020/03/how-many-americans-have-been-tested-coronavirus/607597/)*, [Robinson Meyer](https://twitter.com/yayitsrob) and [Alexis Madrigal](https://twitter.com/alexismadrigal), built a tracker for their [COVID-19 testing investigation](https://www.theatlantic.com/health/archive/2020/03/how-many-americans-have-been-tested-coronavirus/607597/). Separately, Jeff Hammerbacher, Founder and General Partner at [Related Sciences](https://www.related.vc/), built a tracking spreadsheet. The two efforts came together March 7, and made a call for volunteers, and the COVID Tracking Project was born.

[Alexis Madrigal](https://twitter.com/alexismadrigal) now leads the project. Jeff Hammerbacher has [returned to his work](https://www.related.vc/) and we send eternal gratitude his way. [Erin Kissane](https://twitter.com/kissane) is our managing editor. Our team now includes more than 100 volunteer data-grabbers, journalists, scientists, visualization specialists, designers, project managers, and many other great people. We can't list them all for privacy reasons, but here are some of our stalwart contributors:

## Team leads
* [Kai Curry](https://github.com/webmasterkai)
* [J. Peter Donald](https://twitter.com/JPeterDonald)
* [Amanda French](http://amandafrench.net)
* [Jeremia Kimelman](https://www.jeremiak.com)
* [Elliott Klug](http://elliottklug.com)
* [Julia Kodysh](https://twitter.com/JuliaKodysh)
* [Júlia Ledur](https://julialedur.com.br/)
* [Zach Lipton](https://twitter.com/zachlipton)
* [JD Maresco](https://twitter.com/jdmaresco)
* [Ethan Marcotte](https://ethanmarcotte.com/)
* [Kevin Miller](https://kevee.net)
* [Kara Oehler](https://twitter.com/karaoehler)
* [Dustin Preisler](https://www.linkedin.com/in/dustinpreisler/)

## Contributors
* [Stanley Bishop](https://mltogether.la/)
* [Eric Czech](https://www.linkedin.com/in/eric-czech-2029928/)
* [Shima Dastgheib](https://twitter.com/shimadastgheib)
* [Katerina Dimitratos](https://twitter.com/kdimitratos)
* [Josh Ellington](https://joshellington.com)
* [Casey Faist](https://twitter.com/cfactoid)
* Harrison David Frank
* Nancy Ge
* [Daniel Gilbert](https://www.tall-dog.com/)
* [Lucas Gonze](http://gonze.com)
* Adra Graves
* [Randall Helms](https://www.linkedin.com/in/randallhelms/)
* [Justin Hendrix](https://twitter.com/justinhendrix)
* Luke Herman
* [Ed Hodder](https://www.linkedin.com/in/edhodder/)
* [Esther Kim](https://www.linkedin.com/in/esther-kim-9544201a)
* [Sam Klein](https://twitter.com/metasj)
* [Olivier Lacan](https://twitter.com/olivierlacan)
* [Sara Llanes](https://twitter.com/SaraLlanes)
* [Sharon Machlis](https://twitter.com/sharon000)
* [Mat Marquis](https://hire.wil.to)
* [Gabe O'Leary](https://gabeoleary.com)
* [Ryan Panchadsaram](https://twitter.com/rypan)
* Katherine Paur
* [Colin Popell](https://twitter.com/cpopell)
* [Prajakta Ranade](https://twitter.com/Prajakta_RD)
* [Alex Rubinsteyn](https://twitter.com/iskander)
* [Jason Santa Maria](https://jasonsantamaria.com)
* [Andrew Schwartz](https://aschwartz.me/)
* [Matt Shapiro](http://matthiasshapiro.com)
* Jeff Silver
* [Dylan Smith](http://TucsonSentinel.com)
* [Alan Wilson](https://twitter.com/alangwilson)

We run on Netlify, Slack, GitHub, and intense volunteer effort. Check out our [software repositories and credits](https://covidtracking.com/software/).

repository: lachlanjc/website

repo_name: lachlanjc/website


text:
[Live demo](https://saurabhp75.pythonanywhere.com/)

## Simple blog site developed using Django

### This blog site has following functionalities:
1. Account registration.
2. Login and logout of Account
3. Creating new post.
4. Editing existing post.
5. View account information.
6. Updating password and or email.

**__Use below config file to debug in vscode__**

```

{
            "name": "Python: Flask (0.11.x or later)",
            "type": "python",
            "request": "launch",
            "module": "flask",
            "env": {
                "FLASK_APP": "run.py",
                "FLASK_ENV": "development",
                "EMAIL_USER"<EMAIL_ADDRESS>                "EMAIL_PASS": "password",
                "SECRET_KEY": "5791628bb0b13ce0c676dfde280ba245",
                "SQLALCHEMY_DATABASE_URI": "sqlite:///site.db"
            },
            "args": [
                "run",
                //"--no-debugger",
                //"--no-reload"
            ]
        }

    ```