This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10.29.14 | |
I was following this tutorial: http://www.elixirdose.com/post/lets-build-web-app-with-phoenix-and-ecto | |
Could not mix compile | |
==> postgrex | |
warning: the dependency postgrex requires Elixir "0.15.0" but you are running on v1.0.1 | |
Compiled lib/postgrex/binary_utils.ex | |
Compiled lib/postgrex/error.ex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1. nano ~/.bash_profile | |
#2. add these two lines | |
bind '"\e[A": history-search-backward' | |
bind '"\e[B": history-search-forward' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Are templates scoped to a controller by naming convention? And is that convention two layers deep | |
and implemented with filenames? | |
First convention describes rules for a controller's filename; stipulating that Controller filenames | |
get two parts seperated by | |
an underscore. An application with these three controllers -- PageController, HelloController, and | |
UserController -- should manifest the following file names: | |
controllers | |
|- page_controller.ex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To find the proper cfbundlerid when writing an appmethod or firemonkey delphi application, go to the tools/options/provisioning | |
Then select the build type and provisioning file, then the developer certificate. | |
That will show the "Applicateion Identifier" it will look like: | |
S3AB5SSYN.com.domain.appname | |
Put that in the CFBUNDLER in the project/option/versioninfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quick guide to getting inlineradio buttons when using boolean values with Crispy Forms. | |
1. create chocies | |
BOOLEAN_YN = ( | |
(True, u'Yes'), | |
(False, u'No'), | |
) | |
2. update model to point at the choices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EtreCheck version: 2.9.12 (265) | |
Report generated 2016-05-06 16:55:34 | |
Download EtreCheck from https://etrecheck.com | |
Runtime 1:36 | |
Performance: Excellent | |
Click the [Support] links for help with non-Apple products. | |
Click the [Details] links for more information about that line. | |
Problem: Other problem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This works | |
var elmDiv = document.getElementById('elm-main') | |
, elmApp = Elm.WordGame.embed(elmDiv) | |
// but this works too. Why to both work, which is preferred? | |
var elmDiv = document.getElementById('elm-main') | |
Elm.WordGame.embed(elmDiv) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | |
for v 0.17 | |
http://guide.elm-lang.org/architecture/user_input/text_fields.html | |
1. reverse and uppercase input. Check | |
2. count & display the number of characters. Check | |
3. change text color if even number of characters . . . Check, but ugly. | |
-} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
import multiprocessing | |
# use htop to see the utilization rates spread across cores | |
# use locust --help to see all the options | |
# the cmd launches 500 concurrent users on each core, hatch 5 per second, issue 10k requests then stops | |
# logs to results.txt, prints the summary in the terminal |