Re: [chicagoboss] failed make chicagoboss
You might need to downgrade your Erlang installation to what’s in the docs. Thank you. Kai Janson Relator • Ideation • Learner • Individualization • Strategic Achiever • Futuristic • Belief • Restorative • Developer On Oct 23, 2019, 13:06 -0400, Dimas Prawira , wrote: > I tried to compile chicagoboss in my local machine : > - OS : ubuntu 18.04 > - CPU : core i5 > - Memory : 8GB. > > I follow the instructions > git clone https://github.com/ChicagoBoss/ChicagoBoss.git > cd ChicagoBoss/ > git checkout tags/v0.9-beta1 > make > > there is an error when executing make > > Compiled src/error_t.erl > Compiled src/import_as.erl > /home/dimas/erlang-workspace/ChicagoBoss/deps/erlando/src/test.erl:80: > erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for > retrieving the stack backtrace > Compiling /home/dimas/erlang-workspace/ChicagoBoss/deps/erlando/src/test.erl > failed: > ERROR: compile failed while processing > /home/dimas/erlang-workspace/ChicagoBoss/deps/erlando: rebar_abort > > Any idea what should I do to fix this? > > Regards > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CA%2Bp%2BMUeejgv_SM-8pTxZ6bzYKWoLTSiQPreu7yUNsQKXV1AbgQ%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/1ca9b924-3323-473e-adc7-3b334472ae88%40Spark.
Re: [chicagoboss] Form Data Validation
Yes, there is. I’ll have to go through my sources tomorrow but I’ve done it before. I think it was a combination of controller code and JavaScript. Thank you. Kai Janson Relator • Ideation • Learner • Individualization • Strategic Achiever • Futuristic • Belief • Restorative • Developer On Feb 16, 2018, 02:08 -0500, Aurlus Ismael , wrote: > Hi all, > > I'm new to Erlang and ChicagoBoss. I've been looking around to see if there's > a way to do form validation e.g test if a particular field is empty, and > return the form > with the relevant errors. Is there a way to do this? > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/02aadda4-829b-411f-b7b8-0fe6abfdc5bb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/6c70d02b-8eef-487a-8cba-ebf34ab307d2%40Spark. For more options, visit https://groups.google.com/d/optout.
Re: 回复: [chicagoboss] some questions
Hi TX, The deep_post_param function is to get many checkboxes of a kind into your controller. Give it a shot. :) Sent from the trenches > On Sep 27, 2016, at 19:46, TX <2316134...@qq.com> wrote: > > Hi Kai, > > I am afraid this is not what I need. > > Thank you anyway. > > -- 原始邮件 -- > 发件人: "kotedo";; > 发送时间: 2016年9月28日(星期三) 凌晨3:48 > 收件人: "chicagoboss"; > 主题: Re: [chicagoboss] some questions > > Hi TX, > > I found this on the API documentation; > > > deep_post_param( [ Path::string() ] ) -> DeepParam | undefined > Get the value of a given "deep" POST parameter. This function parses > parameters that have numerical or labeled indices, such as "widget[4][name]", > and returns either a value or a set of nested lists (for numerical indices) > and proplists (for string indices). > > Location of the documentation: > > http://chicagoboss.org/doc/api-controller.html > > basically at the end of the API docs. > > —Kai > > >> On Sep 26, 2016, at 22:22, TX <2316134...@qq.com> wrote: >> >> 1. Fuzzy search >> I saw in Chicagoboss's API that for db conditions >> >> {key, 'contains', Token} >> The "key" attribute contains Token. >> >> >> >> I created some products, with item no. being P01, P0101, SP01, then I >> searched by >> >> Products = boss_db:find(product, [{itemno, 'contains', >> string:to_upper(Req:post_param("itemno"))}]) >> >> Then I input P01, only P01 returned, P0101, SP01 didn't return. >> >> >> >> I then tried >> >> Products = boss_db:find(product, [{itemno, 'contains', >> [string:to_upper(Req:post_param("itemno"))}]]) >> >> Nothing returned. >> >> >> >> Then >> >> Products = boss_db:find(product, [{itemno, 'contains_all', >> [string:to_upper(Req:post_param("itemno"))]}) >> >> Only P01 returned >> >> >> >> Does it mean that boss_db:find can't do fuzzy search or my expression is not >> correct? If my expression is wrong, can anyone give me a hint what the >> correct expression should be? >> >> 2. Multiple params >> >> Suppose I have person and person has multiple interests, if there is only >> one interest posted to controller, I can use something like: >> >> CheckedInterest = Req:post_param("interest"), >> >> Interest = interest:new(id, CheckedInterest, PersonId) >> >> If I make a view page, use checkboxes to ask the user to check multiple >> interests(swimming, basketball, football...). When posted, many interests >> will come to the controller, how to save to the interest database? >> >> >> >> Not too many Chicagoboss examples can be found on Internet, appreciate your >> help. >> >> Thanks. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at https://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/tencent_7046602443BE34D7355F6027%40qq.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CD505F22-7938-4FBF-922D-C2D886B8A8FA%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/tencent_7A0F71B84A8031D67246A4D8%40qq.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/18AAE8BC-AF0A-424C-84AA-B22050024083%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] some questions
I think you should be using 'matches' rather than 'contains' Give that a try. --Kai Sent from my non-google-device > On Sep 26, 2016, at 22:22, TX <2316134...@qq.com> wrote: > > 1. Fuzzy search > I saw in Chicagoboss's API that for db conditions > > {key, 'contains', Token} > The "key" attribute contains Token. > > > > I created some products, with item no. being P01, P0101, SP01, then I > searched by > > Products = boss_db:find(product, [{itemno, 'contains', > string:to_upper(Req:post_param("itemno"))}]) > > Then I input P01, only P01 returned, P0101, SP01 didn't return. > > > > I then tried > > Products = boss_db:find(product, [{itemno, 'contains', > [string:to_upper(Req:post_param("itemno"))}]]) > > Nothing returned. > > > > Then > > Products = boss_db:find(product, [{itemno, 'contains_all', > [string:to_upper(Req:post_param("itemno"))]}) > > Only P01 returned > > > > Does it mean that boss_db:find can't do fuzzy search or my expression is not > correct? If my expression is wrong, can anyone give me a hint what the > correct expression should be? > > 2. Multiple params > > Suppose I have person and person has multiple interests, if there is only one > interest posted to controller, I can use something like: > > CheckedInterest = Req:post_param("interest"), > > Interest = interest:new(id, CheckedInterest, PersonId) > > If I make a view page, use checkboxes to ask the user to check multiple > interests(swimming, basketball, football...). When posted, many interests > will come to the controller, how to save to the interest database? > > > > Not too many Chicagoboss examples can be found on Internet, appreciate your > help. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/tencent_7046602443BE34D7355F6027%40qq.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/301C9024-6331-42E6-96CE-323B6BAEDA2A%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Hot Reload and boss_mq
Hi, As far as I recall they should persist between hot code updates. Jesse? --Kai Sent from the trenches > On May 18, 2016, at 15:19, rlander wrote: > > Hi All! > > Are we supposed to lose all boss_mq messages and channels after a hot reload? > I'm using boss_mq for user notifications in a web app, but it's not very > useful if messages and channels are lost between code upgrades since we'll be > doing those daily. > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/ffdf7cf1-87d2-428c-bb65-7038bb608d23%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/52E0D0BD-DFCC-4AAF-9BF4-078FB6A78428%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Using a frontend web server with ChicagoBoss (unnecessary?)
The builtin web server is fast enough. Cowboy has been tested with millions of concurrent connections. It works. Sent from the trenches > On Mar 9, 2016, at 17:58, Matthew Mizrahi wrote: > > Hi List, > I enjoy having some of the controls, configurations, and conveniences that > are already available in web servers such as httpd and nginx. Are these > available built into CB? > > Does ChicagoBoss eliminate the need for a frontend web server? Wouldn't that > bottleneck the performance of CB? > > Thanks in advance, > Matt > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/74edb08b-bc53-4042-a479-7aca565592e7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/A4BA6849-3EED-4F7C-8ADE-A6C8B88A3A71%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Chicago Boss still relevant
Thank you! I could not agree more. It's a fantastic framework after all!!! Sent from the trenches > On Feb 15, 2016, at 18:50, rlander wrote: > > Hey guys, just wanted to share a story. > > Some time ago I inherited the code base for a realtime web app written in > nodejs that was old, very unstable, and leaking memory left and right. As we > decided to rewrite everything, I spent a month prototyping a few different > solutions: > > - python + pushpin + nginx > - clojure + redis + nginx > - go > - elixir + rethinkdb + postgres > > It just bothered me that I had to use so many moving parts or use worse > languages like go. > > Then it hit me: Chicago Boss is the perfect framework for this kind of > problem. To cut the story short, it only took me 1/3 of the time to write the > prototype, it uses less moving parts (I ditched all external services like > pushpin or nginx push module) and performs very well. > > So, I confess I was bearish on Chicago Boss, pmods being deprecated, Evan > leaving and all. But this little experiment made me realize that Chicago Boss > still fills a niche that others don't. Elixir/phoenix is a nice stack, but I > find Erlang much more elegant and succinct. > > So, is anybody else still using Chicago Boss? How can we make it relevant > again? > > BTW, thanks Dmitry for carrying the torch forward and, if there's anyone > still listening, let's make some noise! > > rlander > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at https://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/b454572c-9ffc-4c80-b7ee-8dc30fd14e8a%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/B92B4093-C1FB-4C68-B715-C040AEEF1975%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: ChicagoBoss make error
There are possibly several ways to resolve this: One option would be to put a compiled and working version of bson into the Erlang/lib/ directory. Another one would be creating one server with risk and another one with ChicagoBoss. --Kai Sent from my iPhone > On Aug 5, 2015, at 13:49, Mert Öztürk wrote: > > With OTP 18.0 bson compile without any error and when it comes to riak it > gives error so i tried to compile everything till riak with OTP 18 and the > rest with OTP 17.5 and finally everything is compiled but when i pull the > data from mongodb data come as undefined and it does not work. > > 5 Ağustos 2015 Çarşamba 20:29:41 UTC+3 tarihinde Mert Öztürk yazdı: >> >> I am using ChicagoBoss 0.8.15. Do i have to use 0.8.14? >> >> Thanks >> mert >> >> 5 Ağustos 2015 Çarşamba 20:22:35 UTC+3 tarihinde Kai Janson yazdı: >>> >>> You might want to downgrade the bson package to a previous version ; if it >>> is taking it from HEAD you might have caught an unstable version. >>> >>> Sent from my iPhone >>> >>>> On Aug 5, 2015, at 13:09, Mert Öztürk wrote: >>>> >>>> Dear Kai, >>>> >>>> I downgraded to OTP 17.5 >>>> (http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_esl/esl-erlang_17.5-1~ubuntu~precise_amd64.deb) >>>> I used wget to download it and sudo dpkg -i to install it. >>>> Then i made the thing you said (make clean) and tried and i have the same >>>> error again; >>>> >>>> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: >>>> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use >>>> of variable 'Name' in map >>>> ERROR: compile failed while processing >>>> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >>>> make: *** [all] Error 1 >>>> >>>> Then i cleaned all ebin directories and got the same error again. >>>> >>>> Thanks >>>> Mert >>>> >>>> >>>> >>>> >>>> 5 Ağustos 2015 Çarşamba 18:57:04 UTC+3 tarihinde Kai Janson yazdı: >>>>> >>>>> Looks like you have partially compiled project code. Try a "make clean" >>>>> >>>>> If that fails, remove the beam files from the ebin directories. >>>>> >>>>> --Kai >>>>> >>>>> Sent from my iPhone >>>>> >>>>>> On Aug 5, 2015, at 11:24, Mert Öztürk wrote: >>>>>> >>>>>> Important to mention, i dont get the following error with OTP 18.0; >>>>>> >>>>>> ==> bson (compile) >>>>>> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl >>>>>> failed: >>>>>> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal >>>>>> use of variable 'Name' in map >>>>>> ERROR: compile failed while processing >>>>>> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >>>>>> make: *** [all] Error 1 >>>>>> >>>>>> >>>>>> >>>>>> 5 Ağustos 2015 Çarşamba 17:51:44 UTC+3 tarihinde Mert Öztürk yazdı: >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I upgraded erlang to OTP 18.0 and riak.pb couldnt be compiled so >>>>>>> couldnt complete make. >>>>>>> Then i downgraded and tried with 17.0,17.4, 17.5 and 17.5.3 and now i >>>>>>> am having the error; >>>>>>> >>>>>>> ==> bson (compile) >>>>>>> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl >>>>>>> failed: >>>>>>> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal >>>>>>> use of variable 'Name' in map >>>>>>> ERROR: compile failed while processing >>>>>>> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >>>>>>> make: *** [all] Error 1 >>>>>>> >>>>>>> I am having an urgent trouble with my application and your help will be >>>>>>> appreciated. >>>>>>> >>>>>>> Thanks >>>>>>> Mert >>>>>> >>>>>> -- >>&
Re: [chicagoboss] Re: ChicagoBoss make error
You might want to downgrade the bson package to a previous version ; if it is taking it from HEAD you might have caught an unstable version. Sent from my iPhone > On Aug 5, 2015, at 13:09, Mert Öztürk wrote: > > Dear Kai, > > I downgraded to OTP 17.5 > (http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_esl/esl-erlang_17.5-1~ubuntu~precise_amd64.deb) > I used wget to download it and sudo dpkg -i to install it. > Then i made the thing you said (make clean) and tried and i have the same > error again; > > Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: > /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of > variable 'Name' in map > ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: > rebar_abort > make: *** [all] Error 1 > > Then i cleaned all ebin directories and got the same error again. > > Thanks > Mert > > > > > 5 Ağustos 2015 Çarşamba 18:57:04 UTC+3 tarihinde Kai Janson yazdı: >> >> Looks like you have partially compiled project code. Try a "make clean" >> >> If that fails, remove the beam files from the ebin directories. >> >> --Kai >> >> Sent from my iPhone >> >>> On Aug 5, 2015, at 11:24, Mert Öztürk wrote: >>> >>> Important to mention, i dont get the following error with OTP 18.0; >>> >>> ==> bson (compile) >>> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: >>> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use >>> of variable 'Name' in map >>> ERROR: compile failed while processing >>> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >>> make: *** [all] Error 1 >>> >>> >>> >>> 5 Ağustos 2015 Çarşamba 17:51:44 UTC+3 tarihinde Mert Öztürk yazdı: >>>> >>>> Hello, >>>> >>>> I upgraded erlang to OTP 18.0 and riak.pb couldnt be compiled so couldnt >>>> complete make. >>>> Then i downgraded and tried with 17.0,17.4, 17.5 and 17.5.3 and now i am >>>> having the error; >>>> >>>> ==> bson (compile) >>>> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: >>>> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use >>>> of variable 'Name' in map >>>> ERROR: compile failed while processing >>>> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >>>> make: *** [all] Error 1 >>>> >>>> I am having an urgent trouble with my application and your help will be >>>> appreciated. >>>> >>>> Thanks >>>> Mert >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/chicagoboss. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/chicagoboss/c0447639-55ad-4c69-baf1-1c9ac16f8a21%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/6095b6b7-1bb0-4809-baa1-485666d240e9%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/BB1E81D7-F02F-469F-B0B1-8FDE1D9EE003%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: ChicagoBoss make error
Looks like you have partially compiled project code. Try a "make clean" If that fails, remove the beam files from the ebin directories. --Kai Sent from my iPhone > On Aug 5, 2015, at 11:24, Mert Öztürk wrote: > > Important to mention, i dont get the following error with OTP 18.0; > > ==> bson (compile) > Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: > /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of > variable 'Name' in map > ERROR: compile failed while processing /root/ask_prod2/ChicagoBoss/deps/bson: > rebar_abort > make: *** [all] Error 1 > > > > 5 Ağustos 2015 Çarşamba 17:51:44 UTC+3 tarihinde Mert Öztürk yazdı: >> >> Hello, >> >> I upgraded erlang to OTP 18.0 and riak.pb couldnt be compiled so couldnt >> complete make. >> Then i downgraded and tried with 17.0,17.4, 17.5 and 17.5.3 and now i am >> having the error; >> >> ==> bson (compile) >> Compiling /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl failed: >> /root/ask_prod2/ChicagoBoss/deps/bson/src/bson_binary.erl:55: illegal use of >> variable 'Name' in map >> ERROR: compile failed while processing >> /root/ask_prod2/ChicagoBoss/deps/bson: rebar_abort >> make: *** [all] Error 1 >> >> I am having an urgent trouble with my application and your help will be >> appreciated. >> >> Thanks >> Mert > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/c0447639-55ad-4c69-baf1-1c9ac16f8a21%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/04CB0B51-E268-432F-BB9D-0C405386AED7%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Req:header("referer") is current url, not where the request originated
In afraid that a bit more surrounding code is needed to understand your problem. The usage is correct. --Kai Sent from my iPhone > On May 26, 2015, at 09:07, Caiyun Deng wrote: > > Hi! > Req:header("referer") is current url, not where the request originated. > Do i use it by the wrong way? > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/0dc7404d-7b58-4c14-8484-3a47e1bfca47%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CDAFEAFD-F623-451E-8F4F-193A339B8543%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] 404 obtain the original request URL ?
Take a look at http://chicagoboss.org/doc/api-controller.html specifically the section of simple bridge. The listed functions are all par of the Req passed into your function in a chicagoboss controller. Referer, peer_ip and others can be used to create a meaningful 404 page (i.e. Req:peer_ip()). -Kai Sent from my iPhone > On Apr 27, 2015, at 10:41, ad...@binarytemple.co.uk wrote: > > Hi, > > I'd like to write a 404 handler which sends the original URL to the template > in order to have something like: > "you tried to access '/foobar', I have no idea what /foobar is, support staff > have been notified, thanks" > > But I don't know what the correct parameters for a 404 handler are, the > examples only show "lost('GET',[]) ->" > > Is there an easy way to obtain the original request URL ? > > Bryan > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/3aa2e35e-1e77-455f-bb84-786c1a42267b%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/E6574C17-F6F7-40B7-8A65-776402E95C17%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: Error parsing Boss record id: error:{badmatch,["dV52EVzNs27iOP"]}
Hi, Simply put: you can't do that. MongoDB has its own _id format. BossDB splits the table name off the id after the first "-" it finds; UUIDS have several "-". Use it with id and the world is good again. --Kai Sent from my iPhone > On Apr 28, 2015, at 10:32, Mert Öztürk wrote: > > Hello, > > I changed my model from > > -module(question_data, [Id,QData1,QData2,QData3,QData4,QData5,QData6]). > -compile(export_all). > > to the below; > > -module(question_data, > [Id::uuid(),QData1,QData2,QData3,QData4,QData5,QData6]). > -compile(export_all). > > Then i tried again to save a record to mongodb as below; > > NewQData = question_data:new(id,Data1,Data2,Data3,Data4,Data5,Data6), > {ok,SavedQData} = NewQData:save(), > > Every Data (Data1,Data2,Data3,Data4,Data5,Data6) i am trying to save are > strings. I face with the same error again: Error parsing Boss record id: > error:{badmatch,["Y39OPvJ1PrVf4"]} > And Data1 is saved to mongodb database as []. Whatever i put after id gets > the same error and saved to mongo database as []. > > Thanks > Mert > > > > > 28 Nisan 2015 Salı 13:00:22 UTC+3 tarihinde Dmitry Polyanovsky yazdı: >> >> more info about it here https://github.com/ErlyORM/boss_db#primary-keys >> >>> On Tuesday, April 28, 2015 at 12:53:19 AM UTC+3, Mert Öztürk wrote: >>> Hello, >>> >>> This happens when i want to save a record to mongodb. A new record is >>> created but doesnt save the value after id which is automatically generated >>> by mongodb and shows it as []. >>> Also i get the error : Error parsing Boss record id: >>> error:{badmatch,["dV52EVzNs27iOP"]} >>> Did this happen to anyone before? >>> >>> Thanks Mert > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/1e587a99-704f-478d-aa8c-58ea8bc175e0%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/D4A75A6E-AD1F-44EA-B2CB-DD0DD6824A42%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: Has anyone tried to setup ssl on nginx working over cb app working with websocket?
Hi Mert, How did you solve it? --Kai Sent from my iPhone > On Apr 23, 2015, at 05:45, Mert Öztürk wrote: > > Hello, > > Thanks for all your support. > I solved my problem. > > Thanks > Mert > > 23 Nisan 2015 Perşembe 11:18:18 UTC+3 tarihinde Mert Öztürk yazdı: >> >> Hello Chan, >> >> I cloned it and make. >> Then recompile again (./rebar get-deps compile) >> But didnt work again. The worst thing is that it doesnt show any errors to >> track. Just dont compile websocket in production mode but compiles and works >> great in dev :( >> >> Thanks >> Mert >> >> 23 Nisan 2015 Perşembe 05:27:49 UTC+3 tarihinde mihawk yazdı: >>> >>> this is one of problem of the the actual compile scheme, in dev mod no beam >>> are generated, compile and load in memory. >>> in prod you need to compile your app before to start it. >>> >>> you may try this branch i made earlier this year to fix many problem of >>> compile scheme. >>> >>> https://github.com/mihawk/ChicagoBoss/tree/new_compile_scheme >>> >>> chan. >>> >>> >>> >>> >>> 2015-04-23 4:38 GMT+08:00 Mert Öztürk : I am actually checking the logs now. I tried with dev and also production. PROD; 2015-04-22 23:29:06.864 [notice] <0.68.0>@lager_app:132 Deprecated lager_file_backend config detected, please consider updating it 2015-04-22 23:29:07.775 [info] <0.7.0> Application lager started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:07.838 [info] <0.56.0> Starting Boss in production mode 2015-04-22 23:29:07.860 [info] <0.56.0>@boss_db:start:77 Start Database Adapter boss_db_adapter_mock options [{adapter,mock},{cache_enable,false},{cache_prefix,db},{shards,[[{db_host,"localhost"},{db_adapter,mongodb},{db_port,27017},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database"},{db_shard_id,asksomething},{db_shard_models,[saved_client]}],[{db_host,"localhost"},{db_adapter,mock},{db_port,1978},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database2"},{db_shard_id,asksomething2},{db_shard_models,[ip_database]}]]},{is_master_node,true}] 2015-04-22 23:29:07.948 [info] <0.7.0> Application mongodb started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.053 [info] <0.56.0> Starting master services on 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.071 [info] <0.7.0> Application tinymq started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.142 [info] <0.56.0> SSL:[] 2015-04-22 23:29:08.144 [info] <0.56.0> Starting cowboy... on 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.159 [info] <0.7.0> Application cowlib started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.175 [info] <0.7.0> Application ranch started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.246 [info] <0.7.0> Application cowboy started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:29:08.246 [info] <0.56.0> Starting http listener... on 0.0.0.0:8001 2015-04-22 23:29:08.336 [notice] <0.56.0>@boss_compiler:compile:47 Compile file "../asksomething/priv/init/ask_something_01_news.erl" with options [{include_dirs,["/home/mert/Desktop/asksomething/asksomething/include"]}] AND DEV; 2015-04-22 23:31:05.386 [notice] <0.63.0>@lager_app:132 Deprecated lager_file_backend config detected, please consider updating it 2015-04-22 23:31:06.036 [info] <0.7.0> Application lager started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.076 [info] <0.7.0> Application crypto started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.157 [info] <0.7.0> Application mimetypes started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.240 [info] <0.95.0> Starting Boss in development mode 2015-04-22 23:31:06.257 [info] <0.95.0>@boss_db:start:77 Start Database Adapter boss_db_adapter_mock options [{adapter,mock},{cache_enable,false},{cache_prefix,db},{shards,[[{db_host,"localhost"},{db_adapter,mongodb},{db_port,27017},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database"},{db_shard_id,asksomething},{db_shard_models,[saved_client]}],[{db_host,"localhost"},{db_adapter,mock},{db_port,1978},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database2"},{db_shard_id,asksomething2},{db_shard_models,[ip_database]}]]},{is_master_node,true}] 2015-04-22 23:31:06.355 [info] <0.7.0> Application mongodb started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.512 [info] <0.95.0> Starting master services on 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.544 [info] <0.7.0> Application tinymq started on node 'asksomething@mert-VirtualBox' 2015-04-22 23:31:06.638 [info] <0.95.0> SSL:[] 2015-04-22 23:31:06.640 [info] <0.95.0> Starti
Re: [chicagoboss] Re: ChicagoBoss and Riak 2.0 with Solr beta testers needed
I can wait, but I'd love to get my hands on the CMS. I love the idea of having a CMS in erlang. --Kai Sent from my non-google-device > On Apr 17, 2015, at 13:37, Karim Dahmani wrote: > > Hi Kai, > > We looked into releasing it but we are using a theme that is not open source > and we are therefore not allowed to share it, we are going to create a > different theme in bootstrap and will be releasing it as soon as it is done, > or even better if someone would volunteer to do that > > >> I would be interested in your CMS as well >> >> Sent from my iPhone >> >>> On Apr 16, 2015, at 22:38, Karim Dahmani wrote: >>> >>> Hi Nick, >>> >>> There is one issue we found with it, after you create a record, it takes >>> riak about one second to show it, in our example we used it for a CMS and >>> once we would create a new post and would return to the list of posts we >>> could not see the last post unless we refreshed the page. >>> >>> We have since abandoned the project and decided to use Phoenix with Elixir. >>> We may just open source the CMS where we left it if anyone is interested >>> please let me know and we will release the code for it. >>> On Thursday, April 16, 2015 at 1:03:33 PM UTC-6, Nick Golovin wrote: Hi, Karim, i've already wrote to from another account, can you please give me more info on Riak 2.0 and Solr usage with CB? > On Friday, January 2, 2015 at 10:45:19 PM UTC+3, Karim Dahmani wrote: > Hi, > > We have added support for Riak 2.0 to ChicagoBoss with the indexer for > Solr is anybody interested in helping us beta test this functionality? > > Thanks, > Karim > Systrix >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/chicagoboss. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/chicagoboss/85904a48-4f28-4077-b96c-178cad720a81%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/72c6199b-6bbc-4ed5-a794-7eddba4fc5b2%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/1FB03658-3357-44EB-AD24-CA3F392A92BE%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: ChicagoBoss and Riak 2.0 with Solr beta testers needed
I would be interested in your CMS as well Sent from my iPhone > On Apr 16, 2015, at 22:38, Karim Dahmani wrote: > > Hi Nick, > > There is one issue we found with it, after you create a record, it takes riak > about one second to show it, in our example we used it for a CMS and once we > would create a new post and would return to the list of posts we could not > see the last post unless we refreshed the page. > > We have since abandoned the project and decided to use Phoenix with Elixir. > We may just open source the CMS where we left it if anyone is interested > please let me know and we will release the code for it. > >> On Thursday, April 16, 2015 at 1:03:33 PM UTC-6, Nick Golovin wrote: >> Hi, Karim, i've already wrote to from another account, can you please give >> me more info on Riak 2.0 and Solr usage with CB? >> >>> On Friday, January 2, 2015 at 10:45:19 PM UTC+3, Karim Dahmani wrote: >>> Hi, >>> >>> We have added support for Riak 2.0 to ChicagoBoss with the indexer for Solr >>> is anybody interested in helping us beta test this functionality? >>> >>> Thanks, >>> Karim >>> Systrix > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/85904a48-4f28-4077-b96c-178cad720a81%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/3BB94B6E-09FC-4836-A897-2DB2978B2AAD%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Cowboy Webserver and Nginx
You can use a firewall rule for that, too. Sent from my iPhone > On Apr 5, 2015, at 15:18, asksomethin...@gmail.com wrote: > > Hello, > > I have a CB app using cowboy and websockets and getting ready for production. > Maybe this is a obvious question but i couldnt find the solution. > Is it possible to set nginx in front of a CB app working with cowboy > webserver? > I need this because i need to forward my domain to 8001 port. Domain only > works with example: mydomain.com:8001 > Any sources or before implementation would be great. > > Thanks > Mert > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/f877f57e-ca3d-4e43-913c-6992e36e50ee%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/4A001F4B-7325-43CB-BC25-815C29F954DF%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Chicago Boss make error
Which version of Erlang did you install? Which version of Ubuntu are you running? --Kai Sent from my iPhone > On Mar 13, 2015, at 12:11, Darren Daly wrote: > > Hi all, > > I am getting an error when running make on chicago boss folder. > I am using Ubuntu. > > Procedure: > Installed erlang: > wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb > sudo dpkg -i erlang-solutions_1.0_all.deb > sudo apt-get update > sudo apt-get install erlang > > Chicago Boss: > git clone https://github.com/ChicagoBoss/ChicagoBoss.git > cd ChicagoBoss/ > git checkout tags/v0.8.14 > make > > make gives me an error as follows: > > Cloning into 'uuid'... > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > ERROR: git clone -n git://gitorious.org/avtobiff/erlang-uuid.git uuid failed > with error: 128 and output: > Cloning into 'uuid'... > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > > ERROR: 'get-deps' failed while processing > /home/darren/git/ChicagoBoss/deps/boss_db: rebar_abort > Makefile:11: recipe for target 'all' failed > make: *** [all] Error 1 > > Stuck on this for hours now, if anyone has come across this before I would > love to hear how you got past it. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/733c593b-30a0-4e8f-b8da-dda31231396a%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/C49B98AE-CABB-417E-9442-09195FBD377F%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] postgresql and relationship between models
Shouldn't that be role_id in the table? Sent from my iPhone > On Feb 28, 2015, at 2:45 PM, David Jacobs wrote: > > Hi, > > I need an example of a relationship between two models and how the migration > tables need to be for postgresql. > > I want to model roles and users which can all have one and only one role. > > role.erl: > > -module(role, [Id, Role_short, Role_long]). > -compile(export_all). > > migration: > > CREATE TABLE roles( > id serial unique > , role_short text not null > , role_long text not null > ); > > > user.erl > > -module(user, [Id, Name, Vpe, RoleId]). > -compile(export_all). > > migration: > > CREATE TABLE users( > id SERIAL UNIQUE PRIMARY KEY > , name text not null > , vpe text > , roleid integer not null > ); > > > Everything compiles, tables are created on db. But when I go to admin-page > and continue to model user, then there's an error (listed below). I guess > line 4 gives the most detail: "bad arithmetic expression in > boss_record_lib:dummy_record/1"? > > What do I need to adjust? I tried several different variations - but no > success. > > Thanks in advance! > david > > error from console.log: > 2015-02-28 20:37:23.007 [info] <0.308.0> Route: "/model/model/user"Url > [] > 2015-02-28 20:37:23.009 [notice] > <0.308.0>@boss_controller_adapter_pmod:action:91 Request Method: 'GET', > Tokens: ["user"] > 2015-02-28 20:37:23.009 [error] <0.295.0> gen_server <0.295.0> terminated > with reason: bad arithmetic expression in boss_record_lib:dummy_record/1 line > 76 > 2015-02-28 20:37:23.010 [error] <0.295.0> CRASH REPORT Process <0.295.0> with > 1 neighbours exited with reason: bad arithmetic expression in > boss_record_lib:dummy_record/1 line 76 in gen_server:terminate/7 line 804 > 2015-02-28 20:37:23.010 [error] <0.98.0> Supervisor {<0.98.0>,poolboy_sup} > had child boss_db_controller started with > {boss_db_controller,start_link,undefined} at <0.295.0> exit with reason bad > arithmetic expression in boss_record_lib:dummy_record/1 line 76 in context > child_terminated > 2015-02-28 20:37:23.014 [error] > <0.308.0>@boss_web_controller:call_controller_action:319 Error in controller > exit:{{badarith, > [{boss_record_lib,dummy_record,1, >[{file,"src/boss_record_lib.erl"},{line,76}]}, >{boss_record_lib,database_columns,1, >[{file,"src/boss_record_lib.erl"},{line,93}]}, >{boss_db_adapter_pgsql,build_conditions,2, >[{file,"src/db_adapters/boss_db_adapter_pgsql.erl"}, > {line,337}]}, >{boss_db_adapter_pgsql,count,3, > > [{file,"src/db_adapters/boss_db_adapter_pgsql.erl"},{line,76}]}, >{boss_db_controller,handle_call,3, >[{file,"src/boss_db_controller.erl"},{line,138}]}, > > {gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,607}]}, >{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,639}]}, >{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}, > {gen_server,call,[<0.295.0>,{count,user,[]},3]}} Stacktrace: > [{gen_server,call,3,[{file,"gen_server.erl"},{line,190}]},{boss_pool,call,3,[{file,"src/boss_pool.erl"},{line,12}]},{cb_admin_model_controller,model,4,[{file,"/home/david/projects/erlang/cb_admin/src/controller/cb_admin_model_controller.erl"},{line,34}]},{boss_web_controller,call_controller_action,3,[{file,"src/boss/boss_web_controller.erl"},{line,316}]},{boss_web_controller,apply_action,4,[{file,"src/boss/boss_web_controller.erl"},{line,308}]},{boss_web_controller,execute_action_inner,9,[{file,"src/boss/boss_web_controller.erl"},{line,287}]},{boss_web_controller_handle_request,process_dynamic_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,254}]},{boss_web_controller_handle_request,process_request,5,[{file,"src/boss/boss_web_controller_handle_request.erl"},{line,244}]}] > 2015-02-28 20:37:23.017 [error] <0.308.0> Error in controller, see > console.log for details > > 2015-02-28 20:37:23.017 [error] <0.308.0> GET /admin/model/model/user > [cb_admin] 500 0ms > > > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/af0a1c1f-275a-425d-bdc6-0b0d0327c364%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To
Re: [chicagoboss] problem with the rough introduction tutorial : 11:48:35.584 [error] CRASH REPORT Process <0.659.0> with 0 neighbours exited with reason: no match of right hand value {error,eacces} i
A port number less than 1024 requires root access rights; meaning the project must be run by root. Not a good idea. --Kai Sent from my iPhone > On Feb 11, 2015, at 6:57 AM, Roelof Wobben wrote: > > Hello, > > I have done all steps of that tutorial to see hello world, > But as soon as I do ./init-dev.sh I see this error message : > > 11:48:35.584 [error] CRASH REPORT Process <0.659.0> with 0 neighbours exited > with reason: no match of right hand value {error,eacces} in > ranch_acceptors_sup:init/1 line 38 in gen_serv > er:init_it/6 line 330 > > and no pages are shown. > > you can find my code here : > https://github.com/roelof1967/test_chicago_boss.git > the only thing I did was making a test_greeting_controller and change the > port in boss.config. > > Roelof > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/0d4530c7-f28f-4caf-830e-c68885008e60%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CB989F37-78DC-4016-B735-0CDC22FCE4BA%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: chicagoboss and jquery
I usually stick CSS/JavaScript/images/staticstuff into their respective subdirectories in /priv/static/ --Kai Sent from my tricorder > On Jan 28, 2015, at 17:08, Dmitry Polyanovsky > wrote: > > you should put it into /priv/static directory > > >> On Thursday, January 29, 2015 at 12:07:46 AM UTC+2, 杨小东 wrote: >> Dear Friends: >> I have read the document "tutorial.pdf" in the chicagoboss homepage, and >> I found that in page 28 the example code import jquery from >> "http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js";, but now, >> I have downloaded jquery and want to import the lib locally, so which >> directory should I put the jquery.js in or should I modify some configure? > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/29257960-0808-4c61-b2de-df65aa0a0bc1%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/DD9A1B38-C452-4694-BF86-2ED621B35AF1%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Application hooks for gen_X modules.
Hi, You can add and start extra modules in the priv/init/_01_news.erl script. If you need to stop a module a specific way then you can provide a shutdown sequence as well. --Kai Sent from my non-google-device > On Jan 12, 2015, at 10:46, Emacs the Viking wrote: > > Are there *standard* boss ways of implementing conventional gen_server and > gen_fsm modules and having them initialised at startup time. > > In other words, how do I manage non CB controllers as part of a larger > application...is it easy or does it work the other way around in that I have > to create an pplication of which the CB part is just part of a bigger project > ? > > Thanks, > Sean > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/2931d2d6-5c4d-4fff-add3-e06afe7dea0a%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/744462AE-3972-4E29-B3C7-4A1B87D92714%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Development mode automatic recompile of source... the rules?
Sent from my non-google-device > On Jan 11, 2015, at 16:45, Emacs the Viking wrote: > > > >> On Sunday, 11 January 2015 21:37:54 UTC, Kai Janson wrote: >> I just re-read your issues; the recompiling works ... as long as you don't >> add new functions. >> If you perform a code change on ANYTHING existing, it works. > > Well, adding new functions is kind of what development mode is all about > isn't it! > Totally agree. It should be a no-brainer, but I do recall that due to the > parameterized modules (and Erlang's lack of support now) the compilation is a > lot more taxing. > That also explains why your code did not work when compiled from within > Emacs. > All the magic is done in the ChicagoBoss compiler chain for the module to > work. >> >> Controllers: >> There is actually a ticket open to fix this very annoying bug. I >> troubleshot this even with Evan and it's a pesky error. I hope that someone >> in the core team fixes this very soon. >> Elixir is able to recompile and pick up the newly added function(s), so it >> is not a short coming of the Erlang VM itself, it's ChicagoBoss dropping the >> ball somewhere in the modified compiler-chain(s). >> > Bummer. > Yup, I'd say so. See above, CB compilation is a non-trivial task. > >> Other code directories (lib and others): >> The reloader doesn't pickup added functions up as well (see above). >> Adding new modules works, but again, newly added functions are >> skipped/ignored. >> > Why is it apparently so complicated to just reload a changed file? I am also > finding it hard to create debuggable BEAM files too. I think I may end up > porting to yaws at this rate despite the great vibe CB ives me. :( > > Yaws is great, but ... it's a tank! I love yaws, but it might not fit your > bill 100% either. You will still need to add database support and the like. > But, performance-wise it is awesome and it offers a lot for the so inclined > developer. Your mileage might vary. > > >> Also, I think I had seen that you had referred to one of the controllers >> just by _web_controller and not smsengine_web:* ; if that's the case, that >> would be a user error. That could also explain why it does not work in >> either mode, development as well as production. >> > > I spotted that and fixed it shortly after I posted but the problem persists. > Good call! > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/8f6b21dc-01ae-459a-98b4-869d4c29863c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/91F587CF-D821-4DBA-AA78-9F5B2FFA6549%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Development mode automatic recompile of source... the rules?
Hi, Well, ChicagoBoss is nice and dandy _as far as it is_ ... Personally, I have started writing my new projects in Elixir / Ecto / Phoenix. It is all Erlang based and one can access Erlang native functions and modules from within Elixir. It's powerful and not just lipstick on the pig. I have done several projects in ChicagoBoss in the past and it worked out okay. Just my $0.02. --Kai Sent from my non-google-device > On Jan 11, 2015, at 16:45, Emacs the Viking wrote: > > > >> On Sunday, 11 January 2015 21:37:54 UTC, Kai Janson wrote: >> I just re-read your issues; the recompiling works ... as long as you don't >> add new functions. >> If you perform a code change on ANYTHING existing, it works. > > Well, adding new functions is kind of what development mode is all about > isn't it! > > >> >> Controllers: >> There is actually a ticket open to fix this very annoying bug. I >> troubleshot this even with Evan and it's a pesky error. I hope that someone >> in the core team fixes this very soon. >> Elixir is able to recompile and pick up the newly added function(s), so it >> is not a short coming of the Erlang VM itself, it's ChicagoBoss dropping the >> ball somewhere in the modified compiler-chain(s). >> > Bummer. > > >> Other code directories (lib and others): >> The reloader doesn't pickup added functions up as well (see above). >> Adding new modules works, but again, newly added functions are >> skipped/ignored. >> > Why is it apparently so complicated to just reload a changed file? I am also > finding it hard to create debuggable BEAM files too. I think I may end up > porting to yaws at this rate despite the great vibe CB ives me. :( > > > > >> Also, I think I had seen that you had referred to one of the controllers >> just by _web_controller and not smsengine_web:* ; if that's the case, that >> would be a user error. That could also explain why it does not work in >> either mode, development as well as production. >> > > I spotted that and fixed it shortly after I posted but the problem persists. > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/8f6b21dc-01ae-459a-98b4-869d4c29863c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/8B880389-3305-4EB3-90C7-DBFB62D22922%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Development mode automatic recompile of source... the rules?
I just re-read your issues; the recompiling works ... as long as you don't add new functions. If you perform a code change on ANYTHING existing, it works. Controllers: There is actually a ticket open to fix this very annoying bug. I troubleshot this even with Evan and it's a pesky error. I hope that someone in the core team fixes this very soon. Elixir is able to recompile and pick up the newly added function(s), so it is not a short coming of the Erlang VM itself, it's ChicagoBoss dropping the ball somewhere in the modified compiler-chain(s). Other code directories (lib and others): The reloader doesn't pickup added functions up as well (see above). Adding new modules works, but again, newly added functions are skipped/ignored. Also, I think I had seen that you had referred to one of the controllers just by _web_controller and not smsengine_web:* ; if that's the case, that would be a user error. That could also explain why it does not work in either mode, development as well as production. Cheers, --Kai Sent from my non-google-device > On Jan 11, 2015, at 16:26, Emacs the Viking wrote: > > Ironically it seems to be consistently rebuilding both but only logging to > the console...perhaps there is something up with lager configuration? Here > are the first few lines of both controllers: > > -module(smsengine_inbound_controller, [Req]). > -compile(export_all). > and: > -module(smsengine_web_controller, [Req]). > -compile(export_all). > > I have spent more time digging around the boss source code to no avail. I > even ran "observer:start()" and in development and deploy modes, the number > of boss routes was the same (three) and looked to be correct. > > > > > > >> On Sunday, 11 January 2015 19:18:25 UTC, Kai Janson wrote: >> The nofile message means it's in development mode and just reloading the >> code. Confusing, yes, but it is working. Sort of. I recall that at times >> it doesn't load the changed code. >> >> But the main issue is that it is in development mode and not production. >> >> --Kai >> >> Sent from my non-google-device >> >>> On Jan 11, 2015, at 05:53, emacstheviking wrote: >>> >>> Even odder: I have two controller files, both in "src/controller" and one >>> of them does not recompile when I make changes and one of them does. >>> >>> Sigh. I hate stuff like this! >>> >>> If I add three blank lines to the end of "smsengine_inbound_controller.erl" >>> nothing happens but adding three blank lines to >>> "smsengine_web_controller.erl" gives: >>> Reloading smsengine_web_controller ... fail: nofile. >>> >>> What gives? Ironically this is the *same* controller that doesn't work in >>> "deploy" mode. >>> >>> >>> >>> :( >>> >>> Stopping because it is Sunday and I don't want the stress this early in the >>> day! >>> >>> >>>> On 11 January 2015 at 10:46, Emacs the Viking wrote: >>>> Whilst investing a route related problem I have noticed that one error I >>>> had: >>>> >>>> Unhandled Error: error:undef. Stacktrace: [{utils,no_auth,[[ >>>> >>>> Seems to be caused by the fact that files "src/controller" seem to be >>>> ercompiled on a save from Emacs but when I changed the code in a file in >>>> the "src/lib" folder, the change was not detected and so my new function >>>> was not present. >>>> >>>> Can somebody state clearly what folders are subject to auto-rebuild of >>>> their content? >>>> >>>> Thanks. >>>> >>>> Sean. >>>> >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "ChicagoBoss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to chicagoboss...@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/chicagoboss. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/chicagoboss/903de0c3-914a-4a2f-83ad-413087c6fdb2%40googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >
Re: [chicagoboss] Development mode automatic recompile of source... the rules?
Also, show us the first few lines of the controller, please. That will make troubleshooting a whole lot easier. Sent from my non-google-device > On Jan 11, 2015, at 05:53, emacstheviking wrote: > > Even odder: I have two controller files, both in "src/controller" and one of > them does not recompile when I make changes and one of them does. > > Sigh. I hate stuff like this! > > If I add three blank lines to the end of "smsengine_inbound_controller.erl" > nothing happens but adding three blank lines to > "smsengine_web_controller.erl" gives: > Reloading smsengine_web_controller ... fail: nofile. > > What gives? Ironically this is the *same* controller that doesn't work in > "deploy" mode. > > > > :( > > Stopping because it is Sunday and I don't want the stress this early in the > day! > > >> On 11 January 2015 at 10:46, Emacs the Viking wrote: >> Whilst investing a route related problem I have noticed that one error I had: >> >> Unhandled Error: error:undef. Stacktrace: [{utils,no_auth,[[ >> >> Seems to be caused by the fact that files "src/controller" seem to be >> ercompiled on a save from Emacs but when I changed the code in a file in the >> "src/lib" folder, the change was not detected and so my new function was not >> present. >> >> Can somebody state clearly what folders are subject to auto-rebuild of their >> content? >> >> Thanks. >> >> Sean. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/903de0c3-914a-4a2f-83ad-413087c6fdb2%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAEiEuULLknrTHh%2BCVGpSBazAhEVzLDcNuvQQeCskpHOSRSvy6A%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/05A6819A-EA9B-4161-8C26-F32A7C7A9A71%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Development mode automatic recompile of source... the rules?
The nofile message means it's in development mode and just reloading the code. Confusing, yes, but it is working. Sort of. I recall that at times it doesn't load the changed code. But the main issue is that it is in development mode and not production. --Kai Sent from my non-google-device > On Jan 11, 2015, at 05:53, emacstheviking wrote: > > Even odder: I have two controller files, both in "src/controller" and one of > them does not recompile when I make changes and one of them does. > > Sigh. I hate stuff like this! > > If I add three blank lines to the end of "smsengine_inbound_controller.erl" > nothing happens but adding three blank lines to > "smsengine_web_controller.erl" gives: > Reloading smsengine_web_controller ... fail: nofile. > > What gives? Ironically this is the *same* controller that doesn't work in > "deploy" mode. > > > > :( > > Stopping because it is Sunday and I don't want the stress this early in the > day! > > >> On 11 January 2015 at 10:46, Emacs the Viking wrote: >> Whilst investing a route related problem I have noticed that one error I had: >> >> Unhandled Error: error:undef. Stacktrace: [{utils,no_auth,[[ >> >> Seems to be caused by the fact that files "src/controller" seem to be >> ercompiled on a save from Emacs but when I changed the code in a file in the >> "src/lib" folder, the change was not detected and so my new function was not >> present. >> >> Can somebody state clearly what folders are subject to auto-rebuild of their >> content? >> >> Thanks. >> >> Sean. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/903de0c3-914a-4a2f-83ad-413087c6fdb2%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAEiEuULLknrTHh%2BCVGpSBazAhEVzLDcNuvQQeCskpHOSRSvy6A%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/2EB87CBC-7266-4F13-8FB8-ADC0AD561550%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Compiling problem about my heroku deployment
The file BSON.erl cannot be parsed. That's where the compilation stops. Take a peek at that file ... Sent from my non-google-device > On Jan 2, 2015, at 06:58, Mert Öztürk wrote: > > Hello, > > I am developing my own project with Erlang and ChicagoBoss with ubuntu for 2 > months and everything works fine in my local. So i decided to deploy the work > i have done so far to test on other computers. Actually i am struggling with > the heroku deployment for 1 week and still have no result. > What i have done so far is, i make a new project with ChicagoBoss and changed > the app layout to the same as: https://github.com/vorn/ChicagoBoss-on-Heroku > My app compile without any errors and start in production mode as i run > run.sh in my local. For heroku, i will write what i have done to deploy my > app succeffully; > > 1- heroku create mynewapp -s cedar > 2- heroku config:add > BUILDPACK_URL="https://github.com/archaelus/heroku-buildpack-erlang.git"; -a > mynewapp > 3-git push heroku master > > I deploy the app without any errors with the OTP selection. (I tried all the > versions). After deployment done i watch the logs with heroku logs -t and i > put them in a txt file here. > As you can see from the text i get the following errors while making > ChicagoBoss deps folder. And i have no results and no deployments. > Sometimes it writes that starting boss in production mode but after > completing 60 seconds it gets a timeout and crash happens. > > Any help would be great. > > Thanks > Mert > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/58f68ca4-03ee-4ed4-a402-168bd1785137%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/27948371-051A-4737-99D8-AAAF8F5DF008%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] src directories
Try the lib directory Sent from my tricorder > On Dec 29, 2014, at 22:08, aloharich wrote: > > Searched a bit and looked through the docs, and feel perhaps I'm missing > something basic: > > Is there a way to add additional/different source directories? I tried adding > a src/foo/bar.erl and it just never seems to get compiled. I can't figure out > any place to add additional src directories, and it seems something in the CB > bootstrap that looks for specific source directories? > > Thanks, > Rich > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/ddcc74b4-dd2e-427e-b275-e619ab48c8e5%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/1886AD2B-799F-41D9-B750-0F825C48950B%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: RAW QUERY
The version that ships with ChicagoBoss is adopted to ChicagoBoss. You should use one standalone Erlang version that's not part of the CB package. --Kai Sent from my tricorder > On Nov 28, 2014, at 21:11, ENTR0PY wrote: > > commands not working > > I am using the version of MongoDB that ships with CB, the below command is > not working > > mongo:do(safe,master,Conn,my_batabase_name_here,fun()-> > mongo:find(my_collection_name_here,{}) end). > > > >> On Thursday, November 27, 2014 12:29:24 AM UTC-4, ENTR0PY wrote: >> Does anyone know if CB can perform raw query again Mongodb? >> >> SQL >> select * from some_table - this works with boss_db:execute(" select * from >> some_table"). >> >> Mongo >> db.some_table.find({}) - this does not work at all > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/4def2644-379e-4c55-b3bf-b5b6a7de00fe%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/9565DE32-4A7B-4270-AF0A-4B9E588FEE20%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Access to the underline databae connection
Hi, If you do a git clone https://github.com/ChicagoBoss/ChicagBoss.git there is a sample config directory that holds a sample config file for MongoDB that I wrote a longer time ago. Also, if you wish to get low level access to the MongoDB's database driver there is an article to be found here : https://github.com/comtihon/mongodb-erlang In this article he describes how to connect to the database on a low level for all your needed RAW access. As a side note, it's up to you how many different databases you want to connect to from within one ChicagoBoss application, these are usually set up as shards in boss.config --Kai Sent from my non-google-device > On Nov 27, 2014, at 16:46, ENTR0PY wrote: > > Hello is there a way to get access to boss_db database connection? > In a recent post i learned boss_db currently did not facilitate raw queries > againts MongoDB. A leter reply pointed out that MongoDB drivers were > available as part of CB, this has led to this question. I know i could > instanciate a connecton , but with boss_db already having a conneciton to the > mongodb configured in the boss.config file i figured i should use that > connection > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/c80a3351-3e94-4f81-a645-043f379d73f0%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/2B1B8983-7872-456E-99B8-0A0FEA5AA2A2%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: RAW QUERY
Most of the really needed database functionality has been included into the MongoDB driver and Evan did a great job in doing so. I hardly ever had the need or desire to poke around in the not supported calls in MongoDB since it did what it was supposed to do from within the given driver. I used MongoDB on many projects in conjunction with ChicagoBoss and I still love both. I'll keep looking for your questions and see if I can answer them for you. --Kai Sent from my tricorder > On Nov 27, 2014, at 10:55, ENTR0PY wrote: > > > Thnaks for the replies , both were quick clear and to the point. > However; I am new to Erlang and to CB , I am not up to writing a back end > just yet. > > >> On Thursday, November 27, 2014 12:29:24 AM UTC-4, ENTR0PY wrote: >> Does anyone know if CB can perform raw query again Mongodb? >> >> SQL >> select * from some_table - this works with boss_db:execute(" select * from >> some_table"). >> >> Mongo >> db.some_table.find({}) - this does not work at all > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/e1bf22d3-1eab-491e-8970-fefb0cba0adb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/F40DAFB9-1291-47C1-B137-14C153CD252E%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] RAW QUERY
No, boss_db cannot run a raw query against the database. That functionality never made it into it. Sent from my non-google-device > On Nov 26, 2014, at 23:29, ENTR0PY wrote: > > Does anyone know if CB can perform raw query again Mongodb? > > SQL > select * from some_table - this works with boss_db:execute(" select * from > some_table"). > > Mongo > db.some_table.find({}) - this does not work at all > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/13983a7c-16dc-475a-9f3d-43500bf83e5c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/297785EA-42A9-4934-A64D-18701DD543F5%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: Automatically recompile if code changes
Install virtualbox on windows, then install LINUX on it and all your problems are history. Sent from my tricorder > On Oct 18, 2014, at 13:50, James L wrote: > > Oh, I'm running in Windows 7. It doesn't recompile automatically. > > >> On Saturday, October 18, 2014 3:27:11 PM UTC+8, James L wrote: >> How do I config to recompile if the controllers and models have updated with >> new code? > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/c392ca4b-4a26-4a35-bb92-3f2f7f01a883%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/4532B3E0-8503-4F1E-B724-5A00884412CB%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Error: ChicagoBoss configuration with mnesia
You are using the port number of the mock DB for mnesia. Also, make sure you start your app first, then execute mnesia:stop(), mnesia:create_database(node()). Theo Restkarten, all Seouls be good New ... Sent from my non-google-device > On Sep 19, 2014, at 17:36, Graeme Defty wrote: > > Hi, > > Can you post the source for your 'sessions' model. > > It looks like something in there may be causing problems. > > g > >> On 20 September 2014 05:34, Rana Aich wrote: >> Hi All, >> >> I've started working with Chicagoboss quite recently. I've gone through the >> cb_tutorial and it is working fine. Now I want cb_tutorial to run with >> mnesia. I want to persist the data to my local directory. So far I've done >> the following: >> >> (1) Changed cb_tutorial boss.config with mnesia inputs - I have put a >> nodename also called 'cb_tutorial" (created the directory also) as shown >> below: >> >>{session_adapter, mnesia}, >> >>{session_key, "_boss_session"}, >> >>{session_exp_time, 525600}, >> >>{session_cookie_http_only, false}, >> >>{session_cookie_secure, false}, >> >>{session_enable, true}, >> >>{session_mnesia_nodes, ['cb_tutorial@mynodename']}, % <- replace >> "node()" with a node name >> >> Also in the app configuration section I'm mentioning the directory path for >> mnesia where data should persist: >> >> { cb_tutorial, [ >> >>{path, "../cb_tutorial"}, >> >>{base_url, "/"}, >> >> %{domains, all}, >> >> %{static_prefix, "/static"}, >> >> %{doc_prefix, "/doc"}, >> >>{mnesia, "/MyDirectory/Documents/Tests/amnesia/cb_tutorial"}, % I want >> to persist the the data in this directory >> >>{dummy, true} >> >> ]} >> >> in DB configuration section: >> >>{db_host, "localhost"}, >> >>{db_port, 1978}, >> >>{db_adapter, mnesia}, >> >>{db_username, "boss"}, >> >>{db_password, "boss"}, >> >>{db_database, "boss"}, >> >> In the priv/init directory I've put the util file that does all the >> initialization stuff for mnesia >> (https://github.com/ChicagoBoss/ChicagoBoss/wiki/Database-Setup). >> >> Now I'm calling the init() at cb_tutorial_01_news.erl as: >> >> init() -> >> >> cb_tutorial_util:init(), >> >>{ok, []}. >> >> However, when running init-dev.sh I'm getting following error: >> >> === >> >> 14:57:43.713 [info] Starting master services on 'cb_tutorial@mynodename' >> >> 14:57:43.714 [info] SSL:[] >> >> 14:57:43.714 [info] Starting cowboy... on 'cb_tutorial@ mynodename' >> >> 14:57:43.714 [info] Starting http listener... on 0.0.0.0:8001 >> >> 14:57:43.728 [info] Loading application cb_tutorial >> >> 14:57:43.736 [notice] Compile file >> "/Users/T316538/Documents/cb_tutorial/src/model/cb_tutorial_greeting_model.erl" >> with options >> [debug_info,{pre_revert_transform,#Fun},{token_transform,#Fun},{out_dir,undefined},{include_dirs,["/Users/T316538/Documents/cb_tutorial/include"]},{compiler_options,[{parse_transform,lager_transform},return_errors]}] >> >> 14:57:43.737 [info] Tokens >> [{'-',{1,1}},{atom,{1,2},module},{'(',{1,8}},{atom,{1,9},greeting},{',',{1,17}},{'[',{1,19}},{var,{1,20},'Id'},{',',{1,22}},{var,{1,24},'GreetingText'},{']',{1,36}},{')',{1,37}},{dot,{1,38}},{'-',{2,1}},{atom,{2,2},compile},{'(',{2,9}},{atom,{2,10},export_all},{')',{2,20}},{dot,{2,21}}] >> >> 14:57:43.737 [notice] Module "greeting" Parameters ['Id','GreetingText'] >> Attributes[{compile,export_all}] >> >> 14:57:43.754 [info] Compile Modules "src/view/lib/tag_html" >> cb_tutorial_view_lib_tags >> >> 14:57:43.763 [notice] Compile file >> "/Users/T316538/Documents/cb_tutorial/priv/init/cb_tutorial_01_news.erl" >> with options >> [{include_dirs,["/Users/T316538/Documents/cb_tutorial/include"]}] >> >> 14:57:43.785 [info] Start Database Adapter boss_db_adapter_mnesia options >> [{adapter,mnesia},{cache_enable,false},{cache_prefix,db},{shards,[]},{is_master_node,true},{db_database,"boss"},{db_password,"boss"},{db_username,"boss"},{db_host,"localhost"},{db_port,1978}] >> >> 14:57:44.786 [warning] lager_error_logger_h dropped 78 messages in the last >> second that exceeded the limit of 50 messages/sec >> >> 14:57:44.786 [info] Creating mnesia table for nodes >> ['cb_tutorial@mynodename'] >> >> 14:57:44.787 [error] Error creating mnesia table for sessions: >> {bad_type,boss_session,disc_copies,'cb_tutorial@IAT-mynodename'} >> >> --- >> >> Am I missing something? >> >> Thanking all in advance. >> >> RA >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/m
Re: [chicagoboss] Re: Storing MongoDB with Objects
I might be totally off but I think you MUST use > -compile(export_all). as well here (due to the magic of the parse_transform step) Sent from my tricorder > On Aug 21, 2014, at 18:32, jason stewart wrote: > > As you can see there is not much to it, a very simple insert > > Model > -- > -module(clientList, [Id, Listname, Email, Datablock]).-compile(export_all). > --- > > Controller > > -module(pigeon_mdbtest_controller, [Req]). > > -export([hello/2]). > > hello('GET', [])-> > ClientList = clientList:new(id, > "Bill","b...@email.com",[{"0","Field1"},{"1","Field2"},{"2","Field3"}]), > boss_db:transaction ( fun()-> ClientList:save() end), > {output, ["test done"]}. > -- > > Error > -- > [error] Error in controller error function_clause > [{bson_binary,put_field_accum, > ["0","Field1",<<>>], > [{file,"src/bson_binary.erl"},{line,93}]}, > {bson,doc_foldlN,5,[{file,"src/bson.erl"},{line,37}]}, > {bson_binary,put_document,1, > [{file,"src/bson_binary.erl"},{line,91}]}, > {bson_binary,put_field,2, > [{file,"src/bson_binary.erl"},{line,33}]}, > {bson_binary,put_value_accum,2, > [{file,"src/bson_binary.erl"},{line,115}]}, > {lists,foldl,3,[{file,"lists.erl"},{line,1261}]}, > {bson_binary,put_array,1, > [{file,"src/bson_binary.erl"},{line,112}]}, > {bson_binary,put_field,2, > [{file,"src/bson_binary.erl"},{line,34}]}] > > > --- > > >> On Thursday, 21 August 2014 08:49:10 UTC+10, Kai Janson wrote: >> Care to share your model and controller code in question? >> >> Sent from my non-google-device >> >>> On Aug 20, 2014, at 18:18, jason stewart wrote: >>> >>> I tried that with >>> >>> ClientList = clientList:new(id, >>> "Bill","b...@email.com",{{"0","Field1"},{"1","Field2"},{"2","Field3"}}) >>> >>> but then I get a bson error message >>> >>> [error] Error in controller error function_clause >>> [{bson_binary,put_field_accum,["0","Field1",<<>>],[{file,"src/bson_binary.erl"},{line,93}]} >>> >>> >>> >>>> On Wednesday, 20 August 2014 03:48:18 UTC+10, can2nac wrote: >>>> try [{"0","Field1"},{"1","Field2"},{"2","Field3"}] >>>> >>>>> On Tuesday, August 19, 2014 3:30:44 AM UTC+4, jason stewart wrote: >>>>> I am trying to add an bson object to a field in my mongodb database using >>>>> bossRecord >>>>> >>>>> Model >>>>> >>>>> -module(clientList, [Id, Listname, Email, Datablock]). >>>>> -compile(export_all). >>>>> >>>>> Code >>>>> >>>>> ClientList = clientList:new(id, >>>>> "Bill","bi...@email.com",{{"0","Field1"},{"1","Field2"},{"2","Field3"}}) >>>>> boss_db:transaction ( fun()-> ClientList:save() end). >>>>> >>>>> Error >>>>> >>>>> [error] Error in controller error undef >>>>> >>>>> >>>>> I understand that a bossRecord is not the same as a bson object, but I am >>>>> unsure how to get it in there, is there a converter, do I need to create >>>>> a new boss record. >>>>> >>>>> Also if anyone know any site that explains anything to do with Chicago >>>>> boss database access could you let me know, I am finding that the >>>>> documentation for it is useless or its just I am not getting it >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/chicagoboss. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/chicagoboss/48ae2c19-0fb0-4e42-99fd-e3e011d924bf%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/2905c933-35c2-4dde-840b-4167ebdfcded%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/F2731193-32AB-40F8-8B8F-FA8BD6C27C96%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: Storing MongoDB with Objects
Care to share your model and controller code in question? Sent from my non-google-device > On Aug 20, 2014, at 18:18, jason stewart wrote: > > I tried that with > > ClientList = clientList:new(id, > "Bill","b...@email.com",{{"0","Field1"},{"1","Field2"},{"2","Field3"}}) > > but then I get a bson error message > > [error] Error in controller error function_clause > [{bson_binary,put_field_accum,["0","Field1",<<>>],[{file,"src/bson_binary.erl"},{line,93}]} > > > >> On Wednesday, 20 August 2014 03:48:18 UTC+10, can2nac wrote: >> try [{"0","Field1"},{"1","Field2"},{"2","Field3"}] >> >>> On Tuesday, August 19, 2014 3:30:44 AM UTC+4, jason stewart wrote: >>> I am trying to add an bson object to a field in my mongodb database using >>> bossRecord >>> >>> Model >>> >>> -module(clientList, [Id, Listname, Email, Datablock]). >>> -compile(export_all). >>> >>> Code >>> >>> ClientList = clientList:new(id, >>> "Bill","bi...@email.com",{{"0","Field1"},{"1","Field2"},{"2","Field3"}}) >>> boss_db:transaction ( fun()-> ClientList:save() end). >>> >>> Error >>> >>> [error] Error in controller error undef >>> >>> >>> I understand that a bossRecord is not the same as a bson object, but I am >>> unsure how to get it in there, is there a converter, do I need to create a >>> new boss record. >>> >>> Also if anyone know any site that explains anything to do with Chicago boss >>> database access could you let me know, I am finding that the documentation >>> for it is useless or its just I am not getting it >>> > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/48ae2c19-0fb0-4e42-99fd-e3e011d924bf%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/EEF9E4C0-DFCC-4921-AB3D-0D8BE16A2C48%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Storing MongoDB with Objects
Hi Jason, Try your saving without the transaction. --Kai Sent from my non-google-device > On Aug 18, 2014, at 18:30, jason stewart wrote: > > I am trying to add an bson object to a field in my mongodb database using > bossRecord > > Model > > -module(clientList, [Id, Listname, Email, Datablock]). > -compile(export_all). > > Code > > ClientList = clientList:new(id, > "Bill","b...@email.com",{{"0","Field1"},{"1","Field2"},{"2","Field3"}}) > boss_db:transaction ( fun()-> ClientList:save() end). > > Error > > [error] Error in controller error undef > > > I understand that a bossRecord is not the same as a bson object, but I am > unsure how to get it in there, is there a converter, do I need to create a > new boss record. > > Also if anyone know any site that explains anything to do with Chicago boss > database access could you let me know, I am finding that the documentation > for it is useless or its just I am not getting it > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/7c6c4513-aebd-4c1b-bf9f-7747220f7187%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/68717AC6-5E21-4AE8-BB10-9F67FCA5C93B%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Messages
This "feature" was turned on right before you took the project over. All these extra messages need to go. Agreed. --Kai Sent from my non-google-device > On Jun 27, 2014, at 20:18, Graeme Defty wrote: > > OK so the next issue I have encountered on the jourmey to currency is that I > get 10^27 info and warning and so on messages every time CB processes > something, which makes it nigh on impossible to see the error messages. > > I am sure this is a config option, but where? > > Thanks all, > > g > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAKF5fiA7q6mBT_Ej0N0J6fhRnahmAHGo9eiOTJ-pCwJeSzWnhw%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/3029F1F0-097F-47DD-88E4-0EB328EDEF8A%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Conditional include of templates
As far as I remember templates should end in html... Sent from my non-google-device > On Jun 26, 2014, at 9:19, mpeter wrote: > > Thanks for the suggestion. > > > As I mentioned the correct branch gets executed. > It must be something with the file names. Probably it gets confused by the > samename.html.variation naming? > > Peter > >> On Thursday, June 26, 2014 2:30:10 PM UTC+2, Kai Janson wrote: >> Did you check the value of "type"? It might be empty. >> >> Sent from my non-google-device >> >>> On Jun 26, 2014, at 7:11, mpeter wrote: >>> >>> >>> >>> Hi, >>> >>> Back in the good old days it was possible to put something like this into >>> the template and have the included templates in view/music/... >>> >>> {% if type=="spot" %} >>> >>> {% include "music/edit.html.spot" %} >>> {% elif type=="control" %} >>> >>> {% include "music/edit.html.control" %} >>> {% else %} >>> >>> {% include "music/edit.html.default" %} >>> {% endif %} >>> >>> After the mongodb connection issue was fixed last day I have upgraded CB >>> and noticed that this no longer works. Specifically, it always includes (in >>> this case) the edit.html.spot even if not the 1st branch runs (so I will >>> see bbb or cc in the generated page. >>> Is there a way to restore the old behavior? >>> >>> >>> Thank you! >>> >>> Best, >>> Peter >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/chicagoboss. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/chicagoboss/84c28755-8764-436e-8cf7-9dc9e455301e%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/a4fcc7bf-6bb6-4340-afe9-d74a6f2af545%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/70B7ECA6-5187-4B3A-91CE-55767D2595D1%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Conditional include of templates
Did you check the value of "type"? It might be empty. Sent from my non-google-device > On Jun 26, 2014, at 7:11, mpeter wrote: > > > > Hi, > > Back in the good old days it was possible to put something like this into the > template and have the included templates in view/music/... > > {% if type=="spot" %} > > {% include "music/edit.html.spot" %} > {% elif type=="control" %} > > {% include "music/edit.html.control" %} > {% else %} > > {% include "music/edit.html.default" %} > {% endif %} > > After the mongodb connection issue was fixed last day I have upgraded CB and > noticed that this no longer works. Specifically, it always includes (in this > case) the edit.html.spot even if not the 1st branch runs (so I will see bbb > or cc in the generated page. > Is there a way to restore the old behavior? > > > Thank you! > > Best, > Peter > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/84c28755-8764-436e-8cf7-9dc9e455301e%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/A9221178-5749-4FC1-A9B3-E848328CE4FF%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Re: Different configs for dev / production?
Named environment boss.configs might be the easiest. Easy to manage, too. + 1 Sent from my non-google-device > On May 30, 2014, at 19:38, Jesse Gumm wrote: > > I'm torn on whether or not to use dev-specific config files onto have > dynamically loaded config sections of a single config. > > I wouldn't feel terribly comfortable doing *too* much hackery by way of > precompiling config dynamically. > > That said, having it explicitly load a boss-dev.config or something like that > would probably be the simplest change to add prod/dev config splits. > > -- > Jesse Gumm > Owner, Sigma Star Systems > 414.940.4866 || sigma-star.com || @jessegumm > >> On May 30, 2014 11:55 AM, "Evgeny M" wrote: >> At the moment I just use another boss.config file for production, named >> boss.config.rel - my build script copies it over development one into the >> build directory from which .deb, .rpm and .tar.gz packages are generated by >> the same script. >> >> It would be nice to have something like boss.config and boss.config.dev - >> .dev should be loaded automatically with init-dev.sh (or load boss.config if >> boss.config.dev does not exist), init.sh should load boss.config. Having >> just one file with ifs' would be impractical when the app is getting >> packaged into a package such as .deb - in this case boss.config file is >> usually marked as 'config file', this prevents blind overwriting of it by a >> package manager in case when user did any modifications to the old config >> file. When developer makes changes to this file (and developers do this >> often), even in developer 'if' branch, package manager sees this file as >> modified (a new branch of this file) and will show an unnecessary prompt to >> the user - what to do with the changed config file. Imo having two separate >> config files would be fine and easier to implement. >> >> пятница, 30 мая 2014 г., 15:09:14 UTC+4 пользователь David Welton написал: >>> >>> I asked this on the Erlang list: >>> >>> http://erlang.org/pipermail/erlang-questions/2014-May/079310.html >>> >>> The ideal thing would really be to have a common config file, with >>> perhaps some kind of if/else for small differences. Or auxiliary >>> files for dev and production that contain additional configuration for >>> those. >>> >>> Thoughts? >>> -- >>> David N. Welton >>> >>> http://www.welton.it/davidw/ >>> >>> http://www.dedasys.com/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/e47b2e94-d39b-4180-a441-544d591185ac%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAPTXyXeqawzQzSOq8Q1mhBAm15wV368BQk2sw6Tnhjt-jsW2ng%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/A7C940AD-A996-45DB-82A2-1AC2C81974F8%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Different configs for dev / production?
Hi David, I like the idea with conditional logic for different environments. Maybe the easiest way to get there would be to have a tuple that points to a different section or a different config file. {development, "development_settings.conf"}, %% on file system or {development, DevelopmentSettings} %%(which would be a section within the boss.config file) and triggering this by a switch for the compiling process, ./init.sh --env development ; ./init.sh --env production There is also a pull request on GitHub for simplifying boss.config Best, --Kai Sent from my non-google-device > On May 30, 2014, at 7:09, David Welton wrote: > > I asked this on the Erlang list: > > http://erlang.org/pipermail/erlang-questions/2014-May/079310.html > > The ideal thing would really be to have a common config file, with > perhaps some kind of if/else for small differences. Or auxiliary > files for dev and production that contain additional configuration for > those. > > Thoughts? > -- > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CA%2Bb9R_tEZNxEYvBWEUjVGLY2N-fMM8eOQEHOEgVLBFyzXonRuQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/724666DB-2C65-49FE-90AF-B1836B061974%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] How can I allow ip addresses (other than localhost) in CB Admin
Hi Mark, You can add more ip addresses int the list by quoting each IP address and separate them by commas. Example: {allow_ip_blocks, ["127.0.0.1", "192.168.1.2", "172.4.5.6"}]}, Hope that helps. --Kai Sent from my tricorder > On Mar 21, 2014, at 11:00, mark.mckin...@drycappuccino.com wrote: > > can I change {allow_ip_blocks, ["127.0.0.1"]}, in boss.config to allow > additional hosts, if so How ? > > { cb_admin, [ > {path, "../cb_admin"}, > {allow_ip_blocks, ["127.0.0.1"]}, > {base_url, "/admin"} > ]} > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/006fad1d-136a-4e12-981f-796c564c3162%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/DE8FE92C-630D-43A4-8ACD-176FFF8F69A5%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Please welcome Jesse Gumm to CB
Hi Karim, I'd be interested in the CMS/blogging application. --Kai Sent from my non-google-device > On Mar 11, 2014, at 1:09 AM, Karim Dahmani wrote: > > Hi Jesse, > > Good to have you on board! My team has started a fork of CB Admin that we > should put back into the main release, we have developed some improvements > that we will be announcing soon. We are also in the middle of building a > blog/cms in CB that we will be open sourcing soon, if anyone is interested in > seeing it, I can send you the link. > > Thanks, > Karim > >> On Thursday, March 6, 2014 8:19:41 PM UTC-6, Jesse Gumm wrote: >> Thanks for the kind intro, Evan! (and the BracketPal plug!) >> >> I'm happy to be here! >> >> While my knowledge with ChicagoBoss is still very basic, I do have a >> few things I'd like to do from the get-go: goals that I have set for the >> future of ChicagoBoss: >> >> 1) SimpleBridge 2.0, which is still in alpha, supports a websocket >> abstraction layer over Yaws, Cowboy, and all other Erlang web servers, >> even if those servers don't natively support Websockets (Inets, >> Mochiweb prior to a few months ago, Webmachine). Further, it >> simplifies the configuration and API thus allowing us to do away any >> server-specific code currently in CB (such as initializing >> cowboy/mochiweb). This is something that I had been planning on adding >> to SimpleBridge, and with Evan regularly prodding me to finally do it, >> it's mostly done. My goal will be to replace the cowboy-specific >> websocket support in CB with SimpleBridge websocket bridge, allowing CB >> to run websockets on any webserver. >> >> SimpleBridge 2.0 Alpha Branch: >> https://github.com/nitrogen/simple_bridge/tree/ws >> >> 2) Rework ChicagoBoss.org to actually run on ChicagoBoss, including >> live examples with the full code samples for each demo. Personally, I >> tend to learn much faster from demos with code - and seeing the >> underlying code for each component in the MVC for a page would be, I >> think, highly illuminating, and provide excellent context for new and >> veteran users alike. >> >> Providing byte-sized examples (see what I did there?) makes for easy >> digestion of new material, so long as the code is short enough and >> commented well enough to be reasoned through. CB's powerful backend >> functionality can definitely provide some interesting examples, such >> as (oh, I don't know) viewing emails sent to the a demo email like >> "exa...@chicagoboss.org" in realtime with comet/websockets, >> demonstrating BossMQ. Miscellaneous examples like that would help >> illuminate just how much can be done with so little code when using >> CB/Erlang. They then serve as both a learning tool and as effective >> propaganda. >> >> Being able to say "The homepage for our framework actually runs our >> framework, and here are some cool things you can see it do" helps lend >> it more credibility, in my opinion. >> >> N) I do have a freak long-term idea of trying to get ChicagoBoss >> optionally supporting the Nitrogen rendering, wiring, and postback >> engine. Maybe this is a Frankenstein monster of an idea that should be >> shot on sight, but I want to do it anyway "because science" (and >> because writing HTML and Javascript with Erlang strings sucks). >> >> Ultimately, my main goal here is to help accelerate us toward a >> stable 1.0 release and to make CB as approachable as possible. >> Erlang is incredibly well suited for web development (preaching to the >> choir here, I'm sure), and I want to do everything I can to make it more >> appealing to new developers and businesses alike. >> >> For now, though, I'm learning the ropes, and taking in as much as I >> can as quickly as I can, so bear with me as I learn and possibly ask >> noob questions. >> >> I'm idling in #chicagoboss, my username is "chops". Feel free to ping >> me. I use IRCCloud, so I'm always connected, and (usually) get mobile >> notifications if you ping me directly. >> >> So anyways, it's nice to meet you all, and I look forward to working >> with you to make CB the best it can be. And take solace in knowing >> that if do something stupid, I'm in Chicago frequently enough that Evan >> can easily find me and punch me in the face. >> >> Happy Hacking! >> >> -Jesse >> >> >> On Thu, Mar 6, 2014 a
Re: [chicagoboss] Please welcome Jesse Gumm to CB
Welcome Jesse! I am glad you're onboard. Let's make CB version 1.0 and many more versions afterwards a reality! --Kai Sent from my tricorder > On Mar 6, 2014, at 17:35, Evan Miller wrote: > > Hi all, > > There were vague intimations before, but I wanted to write and let everyone > know that there's officially a new sheriff in town. Jesse Gumm (@choptastic > on GitHub) has agreed to take over Zach's duties as Project Point Man. You > might already know Jesse from his work as the maintainer of Nitrogen and > SimpleBridge, the latter of which is used extensively in Chicago Boss. I got > to know Jesse through SimpleBridge, and I think CB is lucky to have an > experienced Erlang programmer and conscientious release manager like Jesse on > board. > > Like Zach when he started, Jesse is relatively new to the CB code base, so > try to cut him a little slack as he learns the ropes. In the coming days > Jesse will be reviewing open pull requests and picking up where Zach left off > in the push towards 1.0 -- but I'll let him tell you more in his own words. > In the meantime, if you play league volleyball, you should definitely check > out Jesse's business, BracketPal: > > http://bracketpal.com/ > > So -- welcome, Jesse! I'm definitely looking forward to watching the next > chapter of CB unfold. > > Evan > > -- > Evan Miller > http://www.evanmiller.org/ > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAP2VJ785TgDYLj47x31fyVBYC3uZ769US8ySF%3D_Urm6Yn%3DX2zA%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/812E1B15-3FAE-4E16-82D2-F1C3A7B392FA%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [chicagoboss] Big things coming for CB
Yes of course! Please share what you have and share what you can share. That's fantastic news --Kai Sent from my non-google-device > On Feb 25, 2014, at 10:26 PM, Karim Dahmani wrote: > > Just a short 3 weeks ago, we were pondering whether to use CB or Zotonic, and > I managed to convince my python programmers to start programming in Erlang > and CB, my programmers have a strong background in Django, we have already > successfully taken huge steps with CB Admin, and are about to release our > changes back to the community. We are planning to become major contributors > to the project and hope to drive more adoption of CB. > > We have introduced the creation of a CRUD from the models and we are working > on customized forms too, we should be releasing the changes by the end of > this week, if anybody wants to see it in action please let me know. > > We are also working on creating a CMS/Blog based on CB that we will also open > source. > > Karim Dahmani > CEO - GamblingQ/Systrix > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/323fb60c-633e-428e-ba28-57c017be81a6%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/BCFF521D-1E42-4793-8A87-D9C40EE7D36A%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Re: New Model Setup
... and CouchDB ... Sent from my non-google-device > On Feb 25, 2014, at 7:48 AM, simon wrote: > > redis support would be great! > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/345a0007-6846-409e-8ee1-f249f7bb6676%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/3D56F265-663F-4502-BE75-BD5DD4D22F31%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Issue Cowboy Server
Makes me wonder which version of erlang you're running and how you installed it. Maybe get a fresh copy for your OS from erlang-solutions.com. Get 16B02 and try again. --Kai Sent from my tricorder > On Feb 5, 2014, at 13:11, Hunt Graham wrote: > > Thanks for the response Cuong. I just tried downloading that, decompressing > it, and then run 'make'. It compiles for a while and then I get the > following error: > > ERROR: Compiling template src/boss/boss_html_error_template.dtl failed: > {ok,boss_html_error_template} > ERROR: compile failed while processing /home/hunt/ChicagoBoss-0.8.9: > rebar_abort > make: *** [all] Error 1 > > Just to be specific I downloaded the "ChicagoBoss-0.8.9.tar.gz" stable > version. This is the compile error I got before-- If I run it again and then > again it will finish successfully but then the server won't run properly. > >> On Wednesday, February 5, 2014 4:59:38 AM UTC-5, Cuong Thai wrote: >> Hi Hunt Graham, >> >> There's an error when compiling latest development version, so download >> v8.9.0 and follow the tutorial. >> I've checked, there's no problem with cb_tutorial app. >> >> Make sure you don't miss request parameter: >> >> -module(cb_tutorial_greeting_controller, [Req]). >> >> >> Regards, >> Cuong Th. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/e2310409-5da8-47af-97e9-9eef91999850%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/8A6D2E9B-443C-474F-8A8D-8BB1EC957ADC%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Issue Cowboy Server
By any chance, did you rename the directory that the code lives in? --Kai Sent from my non-google-device > On Feb 4, 2014, at 1:59 PM, Hunt Graham wrote: > > Sorry I should have been more specific. All I have is a single controller > src/controller/cb_tutorial_greeting_controller.erl. > > This is from the Chicago Boss: A Rough Tutorial pdf. I literally can't even > get the "Hello World" to work! I think its a compiling issue though... I had > to run make 3 times for it finish succesfully. > > My linux box is at home so I'll post the 'make' output when I get back. > Thanks. Here's the code in the controller: > > -module(cb_tutorial_greeting_controller, [Req]). > -compile(export_all). > > hello('GET', []) -> > {output, "Hello, world!"}. > > > > >> On Tuesday, February 4, 2014 8:58:38 AM UTC-8, David Welton wrote: >> Maybe you can post a bit more information about what you are trying to >> do, and what your code looks like? >> >> I would try and make sure your code runs ok by first doing something >> really simple. >> >> -- >> David N. Welton >> >> http://www.welton.it/davidw/ >> >> http://www.dedasys.com/ > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/4f7a7a77-02e4-4052-870c-c627ffef9f5a%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/999B4376-720B-495A-9FC8-9DB6B03C2B36%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Failed to setup HTTPS configuration
Take a look at the history of the file. The newer write up has some issues. Sent from my non-google-device > On Jan 21, 2014, at 11:54 AM, Nicolas Michel > wrote: > > Hi, > > I have a CB app which works fine in clear HTTP. > But I need to make it work with HTTPS. > I followed the recipe (copy/paste) I found here : > > https://github.com/ChicagoBoss/ChicagoBoss/wiki/Https-example-setup > > But it does not work. I've the following error : > > 17:52:33.010 [error] application: mochiweb, "Accept failed error", > "{error,{keyfile,{badmatch,{error,{asn1,{invalid_length,6}}" > 17:52:33.012 [error] CRASH REPORT Process <0.162.0> with 0 neighbours exited > with reason: {error,accept_failed} in mochiweb_acceptor:init/3 line 33 > 17:52:33.014 [error] > {mochiweb_socket_server,295,{acceptor_error,{error,accept_failed}}} > 17:52:33.016 [error] application: mochiweb, "Accept failed error", > "{error,{keyfile,{badmatch,{error,{asn1,{invalid_length,6}}" > 17:52:33.017 [error] CRASH REPORT Process <0.163.0> with 0 neighbours exited > with reason: {error,accept_failed} in mochiweb_acceptor:init/3 line 33 > 17:52:33.018 [error] application: mochiweb, "Accept failed error", > "{error,{keyfile,{badmatch,{error,{asn1,{invalid_length,6}}" > 17:52:33.019 [error] CRASH REPORT Process <0.164.0> with 0 neighbours exited > with reason: {error,accept_failed} in mochiweb_acceptor:init/3 line 33 > 17:52:33.022 [error] application: mochiweb, "Accept failed error", > "{error,{keyfile,{badmatch,{error,{asn1,{invalid_length,6}}" > 17:52:33.022 [error] CRASH REPORT Process <0.165.0> with 0 neighbours exited > with reason: {error,accept_failed} in mochiweb_acceptor:init/3 line 33 > 17:52:33.111 [error] > {mochiweb_socket_server,295,{acceptor_error,{error,accept_failed}}} > 17:52:33.212 [error] > {mochiweb_socket_server,295,{acceptor_error,{error,accept_failed}}} > 17:52:33.313 [error] > {mochiweb_socket_server,295,{acceptor_error,{error,accept_failed}}} > > Any idea ? > > br > > Nicolas - > > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CAAQ9oZox__LiOQPTj3x-ninrbZzhugmG-yZ_pFogr6PBbaHURA%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/170066BD-0BD2-440C-96BB-78913F778332%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
[chicagoboss] Re: Scaffolding Generator Poll
As it stands right now, it's very easy to use any Javascript frameworks. I've used AngularJS and Sencha and also jQuery and plain ole Javascript with ChicagoBoss. No issues, except for the typical JS issues. But that's not a fault on CB's side. --Kai On Friday, January 17, 2014 7:18:27 AM UTC-5, somers...@gmail.com wrote: > > > Hi > Personally I think the idea of integrating one of the JavaScript frame > works would be a great idea - Ive only started using CB but I come from a > nodejs background and have been bitten by Meteor in the past > > My preference would be Angular followed next by Backbone though in the > next year angularjs will be the dominate front end framework IMO - would it > take much work in changing the backend of CB for this purpose I see some > areas where this is necessary in particular to templating and may make some > of the view redundant in there present form > > Martin > > > > > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/621b9794-87ab-4be3-8576-ed4590fa859a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[chicagoboss] Re: convention for naming controllers
Since Erlang doesn't have namespaces, that's one way to "create one". --Kai On Wednesday, January 15, 2014 10:31:17 PM UTC-5, Romu wrote: > > I think 'myapp_foobar_controller' is ugly. Why do we have to include > 'myapp' and 'controller' in the naming? > > Thanks > Simon > > On Tuesday, January 7, 2014 4:28:21 AM UTC+8, Dmitry Polyanovsky wrote: >> >> Hello Bosses, >> >> there is important question to all CB community, regarding one of the CB >> features. I proposed to get rid of %appname% in name of controllers, as it >> was prior v0.6. Actually, %appname% was added as requirement to allow >> running few apps on same server without conflicts. Proposed change is to >> automatically prepand %appname% to controller name, as currently happens >> with views.To minimize breakage we should probably use the existing >> convention for the compiled controller -- actually, to be 100% backward >> compatible we could simply prefix the application name if it isn't there >> already, i.e. >> >> myapp_foobar_controller.erl -> myapp_foobar_controller.beam >> foobar_controller.erl -> myapp_foobar_controller.beam >> >> Pros: >> * code portability/re-usage >> you can easily move controllers across apps (i.e. have some kind of >> packages by having related controllers, models and views moved together). >> >> Cons >> * The main issue for me is that automatically prefixing the app name >> creates another layer of mystery. Right now if I create >> myapp_foobar_controller, I can debug it in the console because I know the >> module name is myapp_foobar_controller. With the auto-prefix I create >> foobar_controller, but then I don't see any such module loaded in the >> console. (Evan) >> * additional development and breaking things >> * Using Wrangler is preferred option >> * common practice is to use separate apps, so code portability/re-usage >> of controllers is not even an issue. (no packages needed) >> >> Vote! add your thoughts! >> >> -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/26d3cf7e-f80b-49be-bb4a-c3108837d5ef%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] MongoDB Erlang driver
I have no doubt in my mind that the official driver is a mess. Evan and I had some "fun" dealing with it. Long story short, the official driver is a prime example of poor engineering. The code that handles MongoDB's strong suit, "ReplSet" is pretty much unusable. This is ONLY true for the Erlang driver, all other languages are fine and work well with ReplSets. :( off Sent from my non-google-device > On Jan 8, 2014, at 6:01 AM, Samuel Rose wrote: > > I have just done a test myself with latest CB from > https://github.com/ChicagoBoss/ChicagoBoss using erlang R16B02 on > Ubuntu 12.04 with Mongodb installed. I am able to successfully connect > CB with Mongodb. So, if you can provide more information on the errors > you see, we can help > >> On Wed, Jan 8, 2014 at 5:58 AM, Zachary Kessin wrote: >> What errors are you getting from the compiler? >> >> --Zach >> >> >> >>> On 1/8/14, 6:17 AM, hehehahahehah...@gmail.com wrote: >>> >>> Hello, >>> >>> Am I correct that ChicagoBoss uses MongoDB? >>> >>> I have been trying for 2 days to get the MongoDB Erlang driver as >>> referenced on the MongoDB website to work. It won't compile using rebar, it >>> won't do this, it won't do that, and when I 'hack' the code by hand to get >>> it to compile, and then stick it in the Erlang lib directories, it just >>> doesn't work. >>> >>> The thing seems old and unmaintained. How does ChicagoBoss utilize this >>> thing? Any tips from anyone using it? >>> >>> I'd really like to try MongoDB out, but I also have little patience for >>> this kind of slop in software. It tends to force me onto more 'tried and >>> true' stuff that "works," but at the same time I can never experiment or try >>> out something cool or cutting edge or different. I hate that. >>> >>> Anyway, thanks. >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss+unsubscr...@googlegroups.com. >>> Visit this group at http://groups.google.com/group/chicagoboss. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/chicagoboss/b17d229a-ab48-462f-849d-4fe33db5fc57%40googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/chicagoboss. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/chicagoboss/52CD2F61.7090702%40gmail.com. >> >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CA%2BH5g6oAQWoENtjauQif5DZifnYZnw5RrN10DUdVkNJOJPeDXA%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/E23BE697-C790-4BDC-84F6-4F8878A8C150%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Re: Chicago Boss role
Lucas, We might actually have a chance to see 1.0 fairly soon now. Just sit tight and enjoy the ride. --Kai Sent from my non-google-device > On Dec 23, 2013, at 12:00 AM, Lucas Introne wrote: > > Yup, that's us! We're still trying to decide whether ChicagoBoss is > something we can use for our every day development. It scares me that Evan > is an economist and not a full time ChicagoBoss wizard. What does the future > hold? Will there ever be a CB1.0? Is the community strong enough to pick up > the ball and run with it? These are the questions that keep me up at night. > > >> On Monday, December 9, 2013 4:49:03 PM UTC-5, Tim McNamara wrote: >> Happened to come across this >> >> http://totally-erlang.com/en/page/750/chicago-boss > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [chicagoboss] Scaffolding Generator Poll
I think the idea was just to see "how general" the interface(s) need to be. --Kai > On Dec 18, 2013, at 12:53 PM, Tim McNamara wrote: > > Being able to know to easily plug in a front-end system seamlessly, or close > enough to seemlessly, does seem quite neat. I don't know how this could be > made modular and flexible, but if that's possible then great. My concern is > around producing a bias for any particular framework. > > Tim McNamara > @timClicks > > >> On 18 December 2013 22:00, Nicolas Michel >> wrote: >> Hi, >> >> I definitely agree with that : a core "I know what I do" (ChicagoBoss) >> layer, with some nice "use me if you want" tools built above. >> Both layer must clearly be separated. >> >> Nicolas - >> >> >> >> 2013/12/18 Zachary Kessin >>> HI Tim >>> >>> My plan is that it will be an add on, that will be totally optional, >>> but will allow those that want to use it skip a bunch of busy work. It >>> will probably live in its own github repo anyway >>> >>> --Zach >>> >>> On Wed, Dec 18, 2013 at 7:49 AM, Tim McNamara >>> wrote: >>> > -0 on an app scaffold. >>> > >>> > Strong -1 on aligning CB to any particular front-end framework. >>> > >>> > On 18/12/2013 8:36 AM, "Zachary Kessin" wrote: >>> >> >>> >> Hi Everyone, >>> >> >>> >> I am working on a bunch of improvements to Chicago Boss with the idea of >>> >> moving to a 1.0 release in the next few months. There are a number of >>> >> things >>> >> I want to do but one of them is to add a scaffolding generator that will >>> >> create model, controller, templates and some javascript. I want this to >>> >> integrate with one of the popular Javascript MVC frontends (Backbone, >>> >> Ember, >>> >> Angular etc) and would like to know which of those people would find most >>> >> useful. >>> >> >>> >> If everyone could take 5 minutes to look at my survey it would be a great >>> >> help to me >>> >> https://www.surveymonkey.com/s/XNLR5JF >>> >> --Zach >>> >> >>> >> -- >>> >> You received this message because you are subscribed to the Google Groups >>> >> "ChicagoBoss" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> >> email to chicagoboss+unsubscr...@googlegroups.com. >>> >> For more options, visit https://groups.google.com/groups/opt_out. >>> > >>> > -- >>> > You received this message because you are subscribed to the Google Groups >>> > "ChicagoBoss" group. >>> > To unsubscribe from this group and stop receiving emails from it, send an >>> > email to chicagoboss+unsubscr...@googlegroups.com. >>> > For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >>> -- >>> Zach Kessin >>> Mostly Erlang Podcast >>> Twitter: @zkessin >>> Skype: zachkessin >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ChicagoBoss" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to chicagoboss+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ChicagoBoss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to chicagoboss+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chicagoboss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.