It's @{u}.
For example, if you are on master branch, and master branch is tracked with origin/master. You can use git merge @{u} instead of git merge origin/master.
Reference: https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches#upstream-shorthand-k9UotnHmIO
Wednesday, August 24, 2016
Tuesday, August 23, 2016
[Solved] An obscure error in case somebody else gets it too
I fixed an error below with `lein clean`. Hope this post can save your time as it used mine.
#error {:cause clojure.core$seq_QMARK___5848:via[{:type clojure.lang.Compiler$CompilerException:message java.lang.NoClassDefFoundError: clojure/core$seq_QMARK___5848, compiling:(clj_gatling/report.clj:1:1):at [clojure.lang.Compiler load Compiler.java 7415]}{:type java.lang.NoClassDefFoundError:message clojure/core$seq_QMARK___5848:at [clojure.core.cache$lru_cache_factory invokeStatic cache.clj 581]}{:type java.lang.ClassNotFoundException:message clojure.core$seq_QMARK___5848:at [java.net.URLClassLoader findClass URLClassLoader.java 381]}]:trace[[java.net.URLClassLoader findClass URLClassLoader.java 381][java.lang.ClassLoader loadClass ClassLoader.java 424][sun.misc.Launcher$AppClassLoader loadClass Launcher.java 331][java.lang.ClassLoader loadClass ClassLoader.java 357][clojure.core.cache$lru_cache_factory invokeStatic cache.clj 581][clojure.core.memoize$lru$fn__2765 invoke memoize.clj 334][clojure.lang.AFn applyToHelper AFn.java 160][clojure.lang.AFn applyTo AFn.java 144][clojure.core$apply invokeStatic core.clj 659][clojure.core.memoize$build_memoizer invokeStatic memoize.clj 152][clojure.core.memoize$lru invokeStatic memoize.clj 332][clojure.core.memoize$lru invoke memoize.clj 292][clojure.core.memoize$lru invokeStatic memoize.clj 328][clojure.core.memoize$lru invoke memoize.clj 292][clojure.tools.analyzer.jvm.utils__init load nil 79][clojure.tools.analyzer.jvm.utils__initnil -1] [java.lang.Class forName0 Class.java -2][java.lang.Class forName Class.java 348][clojure.lang.RT classForName RT.java 2183][clojure.lang.RT classForName RT.java 2192][clojure.lang.RT loadClassForName RT.java 2211][clojure.lang.RT load RT.java 445][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.tools.analyzer.jvm$loading__7118__auto____2196 invoke jvm.clj 9][clojure.tools.analyzer.jvm__init load nil 9][clojure.tools.analyzer.jvm__initnil -1] [java.lang.Class forName0 Class.java -2][java.lang.Class forName Class.java 348][clojure.lang.RT classForName RT.java 2183][clojure.lang.RT classForName RT.java 2192][clojure.lang.RT loadClassForName RT.java 2211][clojure.lang.RT load RT.java 445][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core.async.impl.ioc_macros$loading__7118__auto____1596 invoke ioc_macros.clj 12][clojure.core.async.impl.ioc_macros__init load nil 12][clojure.core.async.impl.ioc_macros__initnil -1] [java.lang.Class forName0 Class.java -2][java.lang.Class forName Class.java 348][clojure.lang.RT classForName RT.java 2183][clojure.lang.RT classForName RT.java 2192][clojure.lang.RT loadClassForName RT.java 2211][clojure.lang.RT load RT.java 445][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core.async$loading__7118__auto____1152 invoke async.clj 9][clojure.core.async__init load nil 9][clojure.core.async__initnil -1] [java.lang.Class forName0 Class.java -2][java.lang.Class forName Class.java 348][clojure.lang.RT classForName RT.java 2183][clojure.lang.RT classForName RT.java 2192][clojure.lang.RT loadClassForName RT.java 2211][clojure.lang.RT load RT.java 445][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core$require doInvoke core.clj 5911][clojure.lang.RestFn invoke RestFn.java 436][clj_gatling.report$eval47$loading__7531__auto____48 invoke report.clj 1][clj_gatling.report$eval47 invokeStatic report.clj 1][clj_gatling.report$eval47 invoke report.clj 1][clojure.lang.Compiler eval Compiler.java 6951][clojure.lang.Compiler eval Compiler.java 6940][clojure.lang.Compiler load Compiler.java 7403][clojure.lang.RT loadResourceScript RT.java 374][clojure.lang.RT loadResourceScript RT.java 365][clojure.lang.RT load RT.java 455][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core$require doInvoke core.clj 5911][clojure.lang.RestFn invoke RestFn.java 457][clj_gatling.core$eval30$loading__7531__auto____31 invoke core.clj 1][clj_gatling.core$eval30 invokeStatic core.clj 1][clj_gatling.core$eval30 invoke core.clj 1][clojure.lang.Compiler eval Compiler.java 6951][clojure.lang.Compiler eval Compiler.java 6940][clojure.lang.Compiler load Compiler.java 7403][clojure.lang.RT loadResourceScript RT.java 374][clojure.lang.RT loadResourceScript RT.java 365][clojure.lang.RT load RT.java 455][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core$require doInvoke core.clj 5911][clojure.lang.RestFn invoke RestFn.java 551][army.core$eval24$loading__7531__auto____25 invoke core.clj 1][army.core$eval24 invokeStatic core.clj 1][army.core$eval24 invoke core.clj 1][clojure.lang.Compiler eval Compiler.java 6951][clojure.lang.Compiler eval Compiler.java 6940][clojure.lang.Compiler load Compiler.java 7403][clojure.lang.RT loadResourceScript RT.java 374][clojure.lang.RT loadResourceScript RT.java 365][clojure.lang.RT load RT.java 455][clojure.lang.RT load RT.java 421][clojure.core$load$fn__7645 invoke core.clj 6008][clojure.core$load invokeStatic core.clj 6007][clojure.core$load doInvoke core.clj 5991][clojure.lang.RestFn invoke RestFn.java 408][clojure.core$load_one invokeStatic core.clj 5812][clojure.core$load_one invoke core.clj 5807][clojure.core$load_lib$fn__7590 invoke core.clj 5852][clojure.core$load_lib invokeStatic core.clj 5851][clojure.core$load_lib doInvoke core.clj 5832][clojure.lang.RestFn applyTo RestFn.java 142][clojure.core$apply invokeStatic core.clj 659][clojure.core$load_libs invokeStatic core.clj 5889][clojure.core$load_libs doInvoke core.clj 5873][clojure.lang.RestFn applyTo RestFn.java 137][clojure.core$apply invokeStatic core.clj 659][clojure.core$require invokeStatic core.clj 5911][clojure.core$require doInvoke core.clj 5911][clojure.lang.RestFn invoke RestFn.java 408][user$eval15 invokeStatic form-init7134710474813340838.clj 1][user$eval15 invoke form-init7134710474813340838.clj 1][clojure.lang.Compiler eval Compiler.java 6951][clojure.lang.Compiler eval Compiler.java 6940][clojure.lang.Compiler eval Compiler.java 6940][clojure.lang.Compiler load Compiler.java 7403][clojure.lang.Compiler loadFile Compiler.java 7341][clojure.main$load_script invokeStatic main.clj 276][clojure.main$init_opt invokeStatic main.clj 278][clojure.main$init_opt invoke main.clj 278][clojure.main$initialize invokeStatic main.clj 309][clojure.main$null_opt invokeStatic main.clj 343][clojure.main$null_opt invoke main.clj 340][clojure.main$main invokeStatic main.clj 422][clojure.main$main doInvoke main.clj 385][clojure.lang.RestFn applyTo RestFn.java 137][clojure.lang.Var applyTo Var.java 700][clojure.main main main.java 37]]}
Tuesday, August 16, 2016
Tar create/extract inside a specific directory
Create
Extract
The dot at the end is importanttar -cf output.tar -C /path/to/directory .
Extract
tar -xf input.tar -C /path/to/directory
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
I ran to this error the other day when I tried to export a dump file from a slave Postgres database. cpg_dump: Dumping the contents of ta...